calc_exp_icc | R Documentation |
calc_exp_icc
calc_exp_icc( .pct_mobile = 0.2, .clust_cov = c(0.8, 0.1), .wt_vec = c(0.5, 0.5), .u_resid_var = 0.2, .gamma_z = 1, .gamma_x = c(10, 1.5), .var_x = 4, .var_r = 2 )
.clust_cov |
Numeric vector. The first element of the vector gives the
variance of all schools' predictors, z. If present, the second element gives
the covariance of z between schools k and k + 1. The values given in
|
.wt_vec |
A numeric vector with length equal to the maximum number
of schools attended by students in the data (in this simulation, the
maximum number is 2). The values in |
.u_resid_var |
Numeric scalar. Gives the residual variance of u0j (i.e., the variance unexplained after controlling for the school-level predictor, z). |
.gamma_z |
Numeric scalar. The school-level effect of the
|
.gamma_x |
Numeric vector with length p (where p is the number of model coefficients, including the intercept). |
.var_x |
Numeric scalar. The variance of the predictor, x. |
.var_r |
Numeric scalar. The variance of the person-level residual, r. |
A numeric scalar.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.