lr: Linear Regression with g2 inverse

View source: R/lr.R

lrR Documentation

Linear Regression with g2 inverse

Description

Coefficients calculated with g2 inverse. Output is similar to summary(lm()).

Usage

  lr(Formula, Data, eps=1e-8)

Arguments

Formula

a conventional formula for a linear model

Data

a data.frame to be analyzed

eps

Less than this value is considered as zero.

Details

It uses G2SWEEP to get g2 inverse. The result is similar to summary(lm()) without options.

Value

The result is comparable to that of SAS PROC REG.

Estimate

point estimate of parameters, coefficients

Std. Error

standard error of the point estimate

t value

value for t distribution

Pr(>|t|)

probability of larger than absolute t value from t distribution with residual's degree of freedom

Author(s)

Kyun-Seop Bae k@acr.kr

Examples

  lr(uptake ~ Plant + Type + Treatment + conc, CO2)
  lr(uptake ~ Plant + Type + Treatment + conc - 1, CO2)
  lr(uptake ~ Type, CO2)
  lr(uptake ~ Type - 1, CO2)

sasLM documentation built on Nov. 19, 2023, 5:12 p.m.