Learn R Programming

sasLM (version 0.5.0)

lr: 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.

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

Details

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

Examples

Run this code
# NOT RUN {
lr(uptake ~ Plant + Type + Treatment + conc, CO2)
# }

Run the code above in your browser using DataLab