- mod
A model object. The model should be regression model for limited dependent variables, such as a logistic regression.
- design.matrix
Design matrix of values for the independent variables in the regression model.
- compare
A set of four rows in the design matrix to use for computing the fitted values that are used in the calculation of second differences. For example, compare(a,b,c,d) results in computing the fitted values for rows a, b, c, and d of the design matrix, respectively, and then computing the following second difference: (a - b) - (c - d). Only four rows may be compared at a time.
- alpha
The alpha value for confidence intervals. Default is .05.
- rounded
The number of decimal places to round the output. The default is 3.
- bootstrap
By default, inference is based on the Delta Method, as implemented in the marginaleffects package. Alternatively, inference can be based upon a bootstrapped sampling distirbution. To do so, change this to "yes"
- num.sample
num.sample is the number samples drawn to compute the sampling distibution when using bootstrapping. Default is 1,000
- prop.sample
prop.sample is the proportion of the original sample to include in the sampling distibution samples when using bootstrapping. Default is .9
- data
For nonparametric inference, provide the data used in the original model statement.
- seed
For models using bootstrapped inference. The seed ensures reproducible results across runs. Default is 1234, but may be changed.
- cum.probs
For ordinal logistic regression models, including mixed effects models, do you want the first differences to be based on probabilities of the response categories or cumulative probabilities of the response categories. The default is cum.probs=="no" corresponding to non-cumulative probabilities. Change cum.probs to "yes" for cumulative probabilities.