wrap.lm: Linear regression

Description Usage Arguments See Also Examples

View source: R/wrap.lm.R

Description

Performs linear regression analyses. The function delegates the primary computations to lm and lm.beta.

Usage

1
wrap.lm(model, standardized = FALSE)

Arguments

model

The linear model

standardized

A logical argument: if FALSE, the function returns unstandardized coefficients; if TRUE, the function returns standardized coefficients

See Also

lm, lm.beta

Examples

1
2
3
4
5
## Linear regression with unstandardized coefficients
wrap.lm(model = bdata$DV3 ~ bdata$DV1 * bdata$DV2, standardized = FALSE)

# Linear regression with standardized coefficients
wrap.lm(model = bdata$DV3 ~ bdata$DV1 * bdata$DV2, standardized = TRUE)

michaelkardas/behavioralwrappers documentation built on Jan. 2, 2020, 7:46 a.m.