lr0: Simple Linear Regressions with Each Independent Variable

View source: R/lr0.R

lr0R Documentation

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. Intercept will be added always.

Data

a data.frame to be analyzed

Details

It performs .

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

Author(s)

Kyun-Seop Bae k@acr.kr

Examples

lr0(uptake ~ Plant + Type + Treatment + conc, CO2)
lr0(mpg ~ ., mtcars)

sasLM documentation built on Sept. 5, 2022, 5:11 p.m.