Description Usage Arguments Value
Generate data for simulation study
1 2 3 4 5 6 7 8 9 10 | generate_data(
seed_no,
nobs,
gamma,
omega_sq,
nrep = 3,
tau_sq,
sigma_sq,
beta = 0.2
)
|
seed_no |
seed no. used to generate data |
nobs |
number of observations |
gamma |
Cov(X,Z) / Var(X) |
omega_sq |
Var(X|Z) |
nrep |
number of replicates of X_star (defaults to 3) |
tau_sq |
extra variance due to measurement error in error-prone measure X_star |
sigma_sq |
Var(Y|X,Z) |
beta |
estimand, defaults to 0.2 |
Data.frame with variables Z, X, X_star_1, ..., X_star_nrep and Y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.