wrap.lm: Linear regression

View source: R/wrap.lm.R

wrap.lmR Documentation

Linear regression

Description

Performs linear regression analyses. The function delegates the primary computations to lm and lm.beta. Note that the confidence intervals are computed using a central t distribution. In the output, R^2 is not adjusted.

Usage

wrap.lm(formula, standardized = FALSE)

Arguments

formula

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

## Linear regression with unstandardized coefficients
wrap.lm(formula = bdata$DV7 ~ bdata$DV5 * bdata$DV6, standardized = FALSE)

# Linear regression with standardized coefficients
wrap.lm(formula = bdata$DV7 ~ bdata$DV5 * bdata$DV6, standardized = TRUE)

michaelkardas/bwrappers documentation built on Nov. 13, 2022, 1:14 a.m.