get_new_data: get new dataset for making predictions

View source: R/get_new_data.R

get_new_dataR Documentation

get new dataset for making predictions

Description

get new dataset for making predictions

Usage

get_new_data(data, predictor, fixed_vals)

Arguments

data

a fitted model object created by lm() or glm() or geeglm() or glmmTMB()

predictor

the covariate for which to make predictions. other predictors in the model will be held constant at their median value, or the most commonly observed value in the dataset.

fixed_vals

a one-row data frame containing values to use for predictors other than the predictor of interest, obtained by a call to get_fixed

Value

A data frame for which all variables except predictor have fixed values


stacyderuiter/s245 documentation built on July 31, 2023, 11:04 p.m.