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 multiple linear regression is simple linear regressions with a single independent variable.

Usage

  lr0(Formula, Data)

Arguments

Formula

a conventional formula for a linear model. Intercept will always be added.

Data

a data.frame to be analyzed

Details

It performs simple linear regression for each independent variable.

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 Oct. 2, 2024, 9:06 a.m.