Description Usage Arguments Details Value
Implements the residual randomization test. The hypothesis tested is
1 | r_test_c(y, X, lam, lam0, cluster_eps_r, use_perm, use_sign, num_R)
|
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. |
H0: lam' beta = lam[1] * beta[1] + ... + lam[p] * beta[p] = lam0.
A List
with the observed test statistic value (tobs
), and the randomization values (tvals
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.