Learn R Programming

sasLM (version 0.5.0)

lr0: Simple Linear Regressions with Each Independent Variable

Description

Usually the first step to mulitple linear regression is the simple linear regressions with single independent variable.

Usage

lr0(Formula, Data)

Arguments

Formula

a conventional formula for a linear model

Data

a data.frame to be analyzed

Value

Each row means one simple linear regression with that row name as the only independent variable.

Intercept

estimate of the intecept

SE(Intercept)

standard error of the intercept

Slope

estimate of the slope

SE(Slope)

standard error of the slope

Rsq)

R-squared for the simple linear model

Pr(>F

p-value of slope or the model

Details

It performs .

Examples

Run this code
# NOT RUN {
lr0(uptake ~ Plant + Type + Treatment + conc, CO2)
lr0(mpg ~ ., mtcars)
# }

Run the code above in your browser using DataLab