r_test_c {RRI} | R Documentation |
Residual randomization test
Description
Implements the residual randomization test. The hypothesis tested is
Usage
r_test_c(y, X, lam, lam0, cluster_eps_r, use_perm, use_sign, num_R)
Arguments
y |
Vector of outcomes (n x 1). |
X |
Matrix of covariates (n x p). First column should be 1's. |
lam |
Vector of coefficients in linear H0 (p x 1). |
lam0 |
Scalar value for linear H0. |
cluster_eps_r |
A |
use_perm |
|
use_sign |
|
num_R |
Integer of how many randomization values to calculate. |
Details
H0: lam' beta = lam[1] * beta[1] + ... + lam[p] * beta[p] = lam0.
Value
A List
with the observed test statistic value (tobs
), and the randomization values (tvals
)
[Package RRI version 1.1 Index]