Description Usage Arguments Value
For the specified outcome regression, a value of beta must be specified as the log-odds ratio relating the treatment to the outcome. This beta will have a consequence on the true risk difference and thus beta must be calculated accordingly. It is not analytically tractable and thus we estimate it using simulation and the bisection method.
1 | calcBeta(true_risk_diff, cov_dist, alpha_0_outcome, tol = 1e-04)
|
true_risk_diff |
The desired treated risk minus control risk |
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_outcome |
The calculated value alpha_0_outcome, obtained from calcAlpha0() |
tol |
The maximum difference between the upper and lower estimate |
The value of beta that corresponds to the desired risk difference for the given covariate distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.