Description Usage Arguments Value
For a logistic regression model that includes one main effect
and zero or more adjustors, obtain marginal probalities for
the outcome variable with respect to the main effect.
This reproduces the behavior of running margins x
after
fitting the logistic regression model in Stata.
1 | get_margins(model_data, betas, sigma, main_effect, over)
|
model_data |
The data used to fit the Logistic Regression model |
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 name of the variable corresponding to the main effect in your model. |
over |
A Boolean variable. If |
The marginal probabilities, their standard errors, and their variance-covariance matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.