API for marginaleffects
Predictions, Comparisons, Slopes, Marginal Means, and Hypothesis Tests

Global functions
...get Source code
...mget Source code
.onAttach Source code
.onLoad Source code
add_attributes Source code
add_by Source code
add_default_values Source code
add_degrees_of_freedom Source code
add_epsilon_values Source code
add_functions_and_labels Source code
add_hypothesis Source code
add_model_matrix_attribute Source code
add_model_matrix_attribute_data Source code
add_newdata Source code
add_numderiv Source code
add_numeric_shortcuts Source code
add_prediction_functions Source code
add_rowid Source code
add_variables Source code
add_wts_column Source code
align_jacobian_vcov Source code
align_vcov_to_coef Source code
apply_unconditional_hypothesis_phi Source code
as_data_table_select Source code
average_draws Source code
avg_comparisons Man page Source code
avg_predictions Man page Source code
avg_slopes Man page Source code
backtransform Source code
check_variable_class Source code
cjdt Source code
clone_nlsModel Source code
coef.comparisons Source code
comparison_call Source code
comparison_call_args Source code
comparison_gradient_exact Source code
comparison_plan_build Source code
comparison_plan_build_frequentist Source code
comparison_subset_newdata Source code
comparison_validate_result Source code
comparisons Man page Source code
components Man page
components.marginaleffects Man page Source code
compute_analytic_plan_jacobian Source code
condition_shortcuts Source code
conformal_cv_plus Source code
conformal_full Source code
conformal_quantile Source code
conformal_split Source code
conformity_test_full Source code
construct_call Source code
contrast_categories_shortcuts Source code
datagrid Man page Source code
datagrid_newdata_to_list Source code
detect_variable_class Source code
df.residual.comparisons Source code
do_call Source code
drop_trivial_group Source code
equivalence Source code
error Source code Source code
eval_string_hypothesis Source code
expand_wildcard Source code
expect_comparisons Man page Source code
expect_hypotheses Man page Source code
expect_margins Man page Source code
expect_predictions Man page Source code
expect_slopes Man page Source code
extract_calling_function Man page Source code
finalize_estimates Source code
get_by Source code
get_ci Source code
get_ci_draws Source code
get_ci_internal Source code
get_coef Man page Source code
get_coef.DirichletRegModel Man page Source code
get_coef.afex_aov Man page Source code
get_coef.betareg Man page Source code
get_coef.bracl Man page Source code
get_coef.brmsfit Man page Source code
get_coef.brmultinom Man page Source code
get_coef.clmm2 Man page Source code
get_coef.data.frame Man page Source code
get_coef.default Man page Source code
get_coef.gam Man page Source code
get_coef.gamlss Man page Source code
get_coef.glmgee Man page Source code
get_coef.glmmTMB Man page Source code
get_coef.gnm Man page Source code
get_coef.lmerMod Man page
get_coef.lmerModLmerTest Man page
get_coef.mblogit Man page Source code
get_coef.merMod Man page Source code
get_coef.mlm Man page Source code
get_coef.mmrm Man page Source code
get_coef.multinom Man page Source code
get_coef.multinom_weightit Man page Source code
get_coef.nestedLogit Man page Source code
get_coef.nls Man page Source code
get_coef.polr Man page Source code
get_coef.predictions Source code
get_coef.scam Man page Source code
get_coef.selection Man page Source code
get_coef.svy_vglm Man page Source code
get_coef.svyolr Man page Source code
get_coef.systemfit Man page Source code
get_coef.workflow Man page Source code
get_comparison_functions Source code
get_comparisons_data Source code
get_comparisons_data_character Source code
get_comparisons_data_factor Source code
get_comparisons_data_logical Source code
get_comparisons_data_numeric Source code
get_conformal_bounds Source code
get_conformal_score Source code
get_dataset Man page Source code
get_dataset_data Source code
get_dataset_docs Source code
get_dataset_search Source code
get_delta_jacobian Source code
get_draws Man page Source code
get_eti Source code
get_group_names Man page Source code
get_group_names.bracl Man page
get_group_names.brmsfit Man page Source code
get_group_names.clm Man page
get_group_names.clmm2 Man page
get_group_names.default Man page Source code
get_group_names.hurdle Man page Source code
get_group_names.mblogit Man page Source code
get_group_names.mlm Man page Source code
get_group_names.multinom Man page Source code
get_group_names.nestedLogit Man page Source code
get_group_names.polr Man page Source code
get_group_names.svyolr Man page Source code
get_hdi Source code
get_hypotheses Source code
get_hypotheses_skeleton Source code
get_hypothesis Source code
get_jacobian Source code
get_jacobian_analytic Source code
get_jacobian_analytic.default Source code
get_jacobian_fd Source code
get_jacobian_fdcenter Source code
get_jacobian_fdforward Source code
get_jacobian_richardson Source code
get_labels Source code
get_mean_or_mode Source code
get_mean_or_mode.character Source code
get_mean_or_mode.data.frame Source code
get_mean_or_mode.default Source code
get_mean_or_mode.factor Source code
get_mean_or_mode.logical Source code
get_mode Source code
get_model_matrix Man page Source code
get_model_matrix.brglmFit Man page Source code
get_model_matrix.default Man page Source code
get_model_matrix.geeglm Man page Source code
get_model_matrix.glm Man page
get_model_matrix.ivreg Man page Source code
get_model_matrix.lm Man page Source code
get_model_matrix.lrm Man page
get_model_matrix.negbin Man page Source code
get_model_matrix.ols Man page Source code
get_model_matrix.rlm Man page Source code
get_model_matrix.rq Man page Source code
get_model_matrix.svyglm Man page Source code
get_model_matrix_rms Source code
get_modeldata Man page Source code
get_modeldata_mids Source code
get_modeldata_svy_vglm Source code
get_predict Man page Source code
get_predict.DirichletRegModel Man page Source code
get_predict.Learner Man page Source code
get_predict.MCMCglmm Man page Source code
get_predict.afex_aov Man page Source code
get_predict.aft Man page
get_predict.bart Man page Source code
get_predict.betareg Man page Source code
get_predict.bife Man page Source code
get_predict.biglm Man page Source code
get_predict.brmsfit Man page Source code
get_predict.brmultinom Man page
get_predict.clm Man page Source code
get_predict.clmm2 Man page Source code
get_predict.coxph Man page Source code
get_predict.crch Man page Source code
get_predict.default Man page Source code
get_predict.fixest Man page Source code
get_predict.flexsurvreg Man page Source code
get_predict.gamlss Man page Source code
get_predict.glimML Man page Source code
get_predict.glm Man page Source code
get_predict.glmgee Man page Source code
get_predict.glmmPQL Man page Source code
get_predict.glmmTMB Man page Source code
get_predict.gnm Man page Source code
get_predict.gsm Man page
get_predict.lda Man page Source code
get_predict.lm Man page Source code
get_predict.lmerMod Man page
get_predict.lmerModLmerTest Man page
get_predict.lrm Man page
get_predict.mblogit Man page Source code
get_predict.merMod Man page Source code
get_predict.mhurdle Man page Source code
get_predict.mlogit Man page Source code
get_predict.mmrm Man page Source code
get_predict.model_fit Man page Source code
get_predict.multinom Man page Source code
get_predict.nestedLogit Man page Source code
get_predict.ols Man page
get_predict.orm Man page
get_predict.polr Man page Source code
get_predict.pstpm2 Man page
get_predict.rlmerMod Man page Source code
get_predict.rms Man page Source code
get_predict.rq Man page Source code
get_predict.stanreg Man page
get_predict.stpm2 Man page Source code
get_predict.svy_vglm Man page Source code
get_predict.svyglm Man page Source code
get_predict.svyolr Man page Source code
get_predict.systemfit Man page Source code
get_predict.tobit1 Man page Source code
get_predict.workflow Man page
get_predict_error Source code
get_prediction_jacobian_spec Source code
get_prediction_jacobian_spec.brglmFit Source code
get_prediction_jacobian_spec.default Source code
get_prediction_jacobian_spec.geeglm Source code
get_prediction_jacobian_spec.glm Source code
get_prediction_jacobian_spec.ivreg Source code
get_prediction_jacobian_spec.lm Source code
get_prediction_jacobian_spec.lrm Source code
get_prediction_jacobian_spec.negbin Source code
get_prediction_jacobian_spec.ols Source code
get_prediction_jacobian_spec.rlm Source code
get_prediction_jacobian_spec.rq Source code
get_prediction_jacobian_spec.svyglm Source code
get_predictors Source code
get_se_delta Source code
get_tJac_clmm2 Source code
get_unconditional_aggregate_phi Source code
get_unconditional_allow_mismatch Source code
get_unconditional_auxdata Source code
get_unconditional_beta_dot Source code
get_unconditional_coef Source code
get_unconditional_comparison_base Source code
get_unconditional_correction Source code
get_unconditional_empirical_phi Source code
get_unconditional_known_scalar_comparison_phi Source code
get_unconditional_plan_jacobian Source code
get_unconditional_scalar_comparison_phi Source code
get_unconditional_vcov Source code
get_unique_index Source code
get_varcov_args Man page Source code
get_vcov Man page Source code
get_vcov.Learner Man page Source code
get_vcov.MCMCglmm Man page Source code
get_vcov.afex_aov Man page Source code
get_vcov.aft Man page
get_vcov.bart Man page Source code
get_vcov.biglm Man page Source code
get_vcov.brmsfit Man page Source code
get_vcov.clmm2 Man page Source code
get_vcov.comparisons Source code
get_vcov.default Man page Source code
get_vcov.gamlss Man page Source code
get_vcov.glimML Man page Source code
get_vcov.glmmTMB Man page Source code
get_vcov.gsm Man page
get_vcov.lda Man page Source code
get_vcov.mhurdle Man page Source code
get_vcov.mmrm Man page Source code
get_vcov.model_fit Man page Source code
get_vcov.nestedLogit Man page Source code
get_vcov.orm Man page Source code
get_vcov.pstpm2 Man page
get_vcov.scam Man page Source code
get_vcov.stpm2 Man page Source code
get_vcov.svy_vglm Man page Source code
get_vcov.systemfit Man page Source code
get_vcov.workflow Man page
get_vcov_label Source code
glance Man page
glance.marginaleffects_mids Source code
glance.slopes Source code
group_to_factor Source code
harmonize_by_types Source code
hush Source code
hypotheses Man page Source code
hypotheses_exact_jacobian Source code
hypothesis_compile Source code
hypothesis_compile_formula Source code
hypothesis_compile_wrapper Source code
hypothesis_expression_coefficients Source code
hypothesis_formula Source code
hypothesis_formula_groups Source code
hypothesis_function Source code
hypothesis_matrix Source code
hypothesis_matrix_reproduces Source code
hypothesis_promote_matrix Source code
hypothesis_string Source code
hypothesis_string_compile_expression Source code
hypothesis_string_eval_compiled Source code
in_formula_wrapped Source code
inferences Man page Source code
inferences_boot Source code
inferences_fwb Source code
inferences_rsample Source code
inferences_simulation Source code
inferences_simulation_summarize Source code
is_binary Source code
jacobian_analytic_aggregate Source code
jacobian_analytic_aggregate_contract Source code
jacobian_analytic_aggregate_direct Source code
jacobian_analytic_aggregate_weights Source code
jacobian_analytic_comparison_aggregate Source code
jacobian_analytic_comparison_exact Source code
jacobian_analytic_hypothesis Source code
jacobian_analytic_scale Source code
jacobian_analytic_weighted_columns Source code
joint_test Source code
knit_print.marginaleffects Man page Source code
main_marginaleffect_group Source code
marginaleffects_init Source code
marginaleffects_internal-class Man page
match_unconditional_source_modeldata Source code
matrix_all_finite Source code
matrix_apply_column Source code
mean_i Source code
mean_na Source code
merge_original_data Source code
model_has_effective_offset Source code
model_matrix_retry Source code
modelarchive_data Source code
modelarchive_model Source code
multcomp_test Source code
myTryCatch Source code
new_marginaleffects_internal Man page Source code
numeric_shortcut_values Source code
pad Source code
plan_groups_use_y Source code
plan_unconditional_se Source code
plot.comparisons Source code
plot.predictions Source code
plot.slopes Source code
plot_build Source code
plot_comparisons Man page Source code
plot_predictions Man page Source code
plot_preprocess Source code
plot_slopes Man page Source code
posterior_draws Man page
posterior_draws_center Source code
predict_gamlss Source code
prediction_jacobian_spec_glm_family Source code
prediction_jacobian_spec_linear Source code
prediction_plan_apply Source code
prediction_plan_apply_stages Source code
prediction_plan_build Source code
prediction_plan_build_bayesian Source code
prediction_plan_build_frequentist Source code
prediction_plan_predict Source code
prediction_prepare_newdata Source code
predictions Man page Source code
predictions_hi_lo Source code
predictions_hi_lo_bayesian Source code
predictions_hi_lo_frequentist Source code
prepare_elasticities Source code
print.marginaleffects Man page Source code
process_imputation Source code
prune Man page
prune.marginaleffects Man page Source code
prune_attributes Source code
record_plan_aggregation Source code
reexports Man page
refit Man page Source code
refit.comparisons Man page
refit.hypotheses Man page
refit.marginaleffects Man page Source code
refit.predictions Man page
refit.slopes Man page
resolve_by_rows Source code
resolve_unconditional_rowid Source code
rowsum_unconditional Source code
sanitize_by Source code
sanitize_condition Source code
sanitize_conf_level Source code
sanitize_cross Source code
sanitize_datagrid_factor Source code
sanitize_estimator Source code
sanitize_hypothesis_formula Source code
sanitize_inferences_method Source code
sanitize_internal_variables Source code
sanitize_model Source code
sanitize_model_specific Man page Source code
sanitize_model_specific.DirichletRegModel Man page Source code
sanitize_model_specific.Learner Man page Source code
sanitize_model_specific.bart Man page Source code
sanitize_model_specific.betareg Man page Source code
sanitize_model_specific.biglm Man page Source code
sanitize_model_specific.brmsfit Man page Source code
sanitize_model_specific.clm Man page Source code
sanitize_model_specific.clmm2 Man page Source code
sanitize_model_specific.coxph Man page Source code
sanitize_model_specific.default Man page Source code
sanitize_model_specific.fixest Man page Source code
sanitize_model_specific.gamlss Man page Source code
sanitize_model_specific.glimML Man page Source code
sanitize_model_specific.glmmTMB Man page Source code
sanitize_model_specific.lrm Man page
sanitize_model_specific.mblogit Man page Source code
sanitize_model_specific.merMod Man page Source code
sanitize_model_specific.mlogit Man page Source code
sanitize_model_specific.mmrm Man page Source code
sanitize_model_specific.ols Man page
sanitize_model_specific.orm Man page
sanitize_model_specific.plm Man page Source code
sanitize_model_specific.rms Man page Source code
sanitize_model_specific.rqs Man page Source code
sanitize_model_specific.svy_vglm Man page Source code
sanitize_model_specific.svyglm Man page
sanitize_model_specific.svyolr Man page Source code
sanitize_newdata Source code
sanitize_newdata_call Source code
sanitize_plan_predict_args Source code
sanitize_predictor_container Source code
sanitize_predictor_specs Source code
sanitize_transform Source code
sanitize_type Source code
sanitize_unconditional_plan Source code
sanitize_unconditional_vcov_arg Source code
sanitize_unconditional_vcov_request Source code
sanitize_vcov Source code
sanitize_vcov_request Source code
sanity_comparison Source code
sanity_dots Source code
sanity_inferences_conformal Source code
sanity_model_supported_class Source code
sanity_multcomp Source code
sanity_predict_numeric Source code
sanity_predict_vector Source code
sanity_reserved Source code
set_coef Man page Source code
set_coef.DirichletRegModel Man page Source code
set_coef.afex_aov Man page Source code
set_coef.aft Man page
set_coef.betareg Man page Source code
set_coef.clmm2 Man page Source code
set_coef.crch Man page Source code
set_coef.data.frame Man page Source code
set_coef.default Man page Source code
set_coef.flexsurvreg Man page Source code
set_coef.gamlss Man page Source code
set_coef.glimML Man page Source code
set_coef.glm Man page Source code
set_coef.glmgee Man page Source code
set_coef.glmmPQL Man page Source code
set_coef.glmmTMB Man page Source code
set_coef.glmx Man page Source code
set_coef.gnm Man page Source code
set_coef.gsm Man page
set_coef.hetprob Man page Source code
set_coef.hurdle Man page Source code
set_coef.hxlr Man page Source code
set_coef.ivpml Man page
set_coef.lm Man page Source code
set_coef.lme Man page Source code
set_coef.lmerMod Man page
set_coef.lmerModLmerTest Man page
set_coef.merMod Man page Source code
set_coef.mhurdle Man page Source code
set_coef.mlm Man page Source code
set_coef.mmrm Man page Source code
set_coef.model_fit Man page Source code
set_coef.multinom Man page Source code
set_coef.nestedLogit Man page Source code
set_coef.nls Man page Source code
set_coef.polr Man page Source code
set_coef.pstpm2 Man page
set_coef.rlmerMod Man page Source code
set_coef.scam Man page Source code
set_coef.selection Man page Source code
set_coef.stpm2 Man page Source code
set_coef.survreg Man page Source code
set_coef.svy_vglm Man page Source code
set_coef.svyolr Man page Source code
set_coef.systemfit Man page Source code
set_coef.tobit Man page
set_coef.workflow Man page Source code
set_coef.zeroinfl Man page
set_modeldata Man page Source code
settings_equal Source code
settings_get Source code
settings_read_persistent Source code
settings_rm Source code
settings_set Source code
slopes Man page Source code
sort_columns Source code
stage_jacobian_dense Source code
stage_probe_finite Source code
stage_probe_max_dim Source code
stage_probe_step Source code
std_error_from_jacobian Source code
stop_deprecate Source code
stop_sprintf Source code
stop_unconditional Source code
sub_named_vector Source code
subset_unconditional_delete_one_arg Source code
supported_engine Source code
tidy Man page
tidy.comparisons Source code
tidy.marginaleffects_mids Source code
type_dictionary_build Source code
unconditional_df_has_finite Source code
unique_s Source code
unpack_matrix_1col Source code
unpack_matrix_cols Source code
unpad Source code
untrace_function Source code
update_unconditional_vcov_transform Source code
validate_unconditional_fixest_plan Source code
validate_unconditional_model_support Source code
validate_unconditional_plan_target Source code
vcov.comparisons Source code
vcovUnconditional Man page Source code
warn_once Source code
warn_sprintf Source code
wmean Source code
marginaleffects documentation built on Sept. 3, 2026, 9:08 a.m.