getD: Get model data frame with optional additional rows

View source: R/wald.R

getDR Documentation

Get model data frame with optional additional rows

Description

Facilitates obtaining the data frame for a model along with optional additional creating rows of predictor values to graph fitted values.

Usage

getD(model, add = NULL)

Arguments

model

whose model frame is used to obtain variable names and, particularly, correct levels for factors used as predictors in the model.

add

a data frame with values of predictor variables

Details

Might supersede getData and other processes to create a predictor data frame. Relies on getModelData, which, in strong contrast with getData, does not use methods for each modelling methods. If some modelling methods don't work, then 'getD' will be come a generic function with the current definition as the default method.

Value

a data frame concatenating the rows of the model frame with those provided in 'add' with an additional variable '.source' with value 'model' or 'add' to indicated the source of the row.


gmonette/spida2 documentation built on July 14, 2024, 12:45 p.m.