View source: R/get_or_from_beta.R
If beta_mar_var
is the Beta Estimate for the marginal variable mar_var
obtained after fitting a Logistic regression model, then this function returns
the Odd Ratio obatined by exponentiating this Beta Estimate: epx(beta_mar_var)
.
For reference, this is the the Odds Ratio that would be obtained
by using the logistic
command in Stata( logistic outcome mar_var ...
).
1 | get_or_from_beta(betas, sigma, main_effect)
|
betas |
The beta coefficients obtained from fitting the Logistic Regression model |
sigma |
The variance-covariance matrix obtained from fitting the Logistic Regression model |
main_effect |
The variable name of the main effect in your model. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.