model_utils: Utility functions for generating model predictions

Description Usage Arguments Value

Description

These functions get information and data from regression models.

Usage

1
2
3
4
5
6
7
get_offset_name(model)

get_weights(model, data)

get_data(model, formula = NULL, warn = TRUE, ...)

get_response_name(model, ...)

Arguments

model

The model (e.g., lm, glm, merMod, svyglm)

data

For get_weights(), the data used to fit the model.

formula

The formula for model, if desired. Otherwise get_formula() is called.

warn

For get_data(), should there be a warning when model.frame() won't work because of variable transformations? Default is TRUE but this may not be desired when get_data() is used inside of another function or used multiple times.

...

Arguments passed to get_formula()

Value


jtools documentation built on Sept. 5, 2021, 5:51 p.m.