expandModelData: Add rows of predictor variable values to model data frame

View source: R/wald.R

expandModelDataR Documentation

Add rows of predictor variable values to model data frame

Description

Generates additional rows of a predictor data frame so that factors retain the levels of the factors in the model data frame, provided no new values are introduced.

Usage

expandModelData(model, add)

Arguments

add

a data frame containing values to be added.

mod

a model from which a model data frame can be extracted with getModelData.

Value

a data frame with concatenating the rows of the model data frame and the rows of 'add' together with an additional variable '.source' with the value 'model' or 'add' showing the provenance of the row.


gmonette/spida2 documentation built on Aug. 20, 2023, 7:21 p.m.