get_or_from_beta: Get the Odds Ratio using the Beta Estimate

Description Usage Arguments

View source: R/get_or_from_beta.R

Description

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 ...).

Usage

1
get_or_from_beta(betas, sigma, main_effect)

Arguments

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.


jameshenegan/dmsepmlr documentation built on Jan. 1, 2021, 4:27 a.m.