get_margin_and_jacobian_row: Get an Estimated Predictive Margin and a Row of the Jacobian...

Description Usage Arguments Value

View source: R/get_margin_and_jacobian_row.R

Description

Helper function for get_margins_results.

Usage

1
get_margin_and_jacobian_row(model_data, betas, main_effect, value, over)

Arguments

model_data

The data used to fit the Logistic Regression model

betas

The beta coefficients obtained from fitting the Logistic Regression model

main_effect

The name of the variable corresponding to the main effect in your model.

value

0 or 1, corresponding the value of main_effect at this margin.

over

A Boolean variable. If TRUE, compute the equivalent of the Stata command margins, over(var_name). If FALSE, compute the equivalent of margins var_name.

Value

The mean of the predicted probabilities and the corresponding row of the Jacobian matrix.


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