si.data | R Documentation |
Generate data for testing our main function MB
and hdMB
..
si.data(sample.size = 500, dimension = 10)
sample.size |
sample size for data, Default: 500, |
dimension |
dimension for covariate, it should be larger than 10, Default: 10. |
We first generate covariates X from standard normal distribution function. Then we will use the following propensity score model with the binomial distribution to generate treatment indicator T:
Pr(T = 1 | X) = 1/ (1 + exp(X_1 + ... + X_{10}))
Finally, the outcome model will be generated by Y = (X_1 + ... + X_{10}) + noise, where noise follows standard normal distribution.
data object with the following attributes:
X: covariates.
Tr: treatment indicator.
Y: observed outcome.
data <- si.data()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.