Learn R Programming

piecewiseSEM (version 1.2.1)

get.scaled.data: Scales data frame

Description

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

Usage

get.scaled.data(modelList, data, standardize)

Arguments

modelList

a list of regressions representing the structural equation model.

data

a data.frame used to construct the structured equations.

standardize

specifies the type of standardization to perform: "none", "scale", "range".

Value

Returns a data.frame with the scaled (transformed) variables.

Details

Automatically calculates and scales variables that are transformed in the model formulae.

See Also

scale