Description Usage Arguments Value References Examples
sim_data
is used to generate simulate estimated with sparse linear. Assume Y = -5D + 25var1_square + u and D = -5var1_square.
1 | sim_data(nunber_sample, number_covariate)
|
nunber_sample |
number of sample in simulated data. |
number_covariate |
number of covariates. |
A dataframe containing follows:
vari |
ith control |
vari_square |
squated ith control |
Y |
Outcome correlated with var1 |
D |
Treatment correlated with var2 |
No.
1 | sim <- sim_data(nunber_sample = 1000, number_covariate = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.