Description Usage Arguments Value
The form of the treatment and outcome regressions require values of alpha_0_outcome or alpha_0_treat. In order to achieve a desired outcome or treatment rate with a given covariate distribution, this value must be calculated. It is not analytically solvable and thus it is approximated using a simulation and bisection method.
1 | calcAlpha0(desired_prop, cov_dist, tol = 1e-04)
|
desired_prop |
The desired event rate |
cov_dist |
The covariate distribution. An integer 1-5 or one of the following: 'Ind Norm', 'Corr Norm', '5 Bern', '9 Bern', '10 Bern' |
tol |
The maximum difference between the upper and lower estimate |
A numeric to be used as alpha_0_treat or alpha_0_outcome.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.