Learn R Programming

piecewiseSEM (version 1.1.1)

get.scaled.model: Scales data frame

Description

A helper function for sem.coefs that updates a model object with a scaled data frame (by mean and standard deviation, or range).

Usage

get.scaled.model(model, newdata, modelList)

Arguments

model
a linear model.
newdata
a data.frame from get.scaled.data.
modelList
a list of regressions representing the structural equation model.

Value

  • Returns a model object fit to the new data.

See Also

scale