Description Usage Arguments Value
This function generates the needed data frame for the simulations, which includes 10 covariates of a specified distribution, a treatment indicator, and a binary outcome variable.
1 | generateData(cov_dist, alpha_0_treat, alpha_0_outcome, beta)
|
cov_dist |
The covariate distribution. An integer 1-5 or one of the following: 'Ind Norm', 'Corr Norm', '5 Bern', '9 Bern', '10 Bern' |
alpha_0_treat |
The calculated value of alpha_0_treat, obtained from calcAlpha0() |
alpha_0_outcome |
The calculated value alpha_0_outcome, obtained from calcAlpha0() |
beta |
The calculated value of beta, obtained from calcBeta() |
A data frame with columns for the covariates, treatment indicator, and binary outcome, as well as the logit and regular probabilities of treatment and outcome that were used to generate them.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.