GLM: General Linear Model similar to SAS PROC GLM

Description Usage Arguments Details Value Author(s) Examples

View source: R/GLM.R

Description

GLM is the main function of this package.

Usage

1
GLM(Formula, Data, lsm=FALSE, conf.level=0.95, eps=1e-8)

Arguments

Formula

a conventional formula for a linear model.

Data

a data.frame to be analyzed

lsm

if TRUE, least square mean will be in the output

conf.level

confidence level for the confidence limit of the least square mean

eps

Less than this value is considered as zero.

Details

It performs the core function of SAS PROC GLM. Least square means for the tnteraction term of three variables is not supported yet.

Value

The result is comparable to that of SAS PROC GLM.

ANOVA

ANOVA table for the model

Type I

Type I sum of square table

Type II

Type II sum of square table

Type III

Type III sum of square table

Parameter

Parameter table with standard error, t value, p value. TRUE is 1, and FALSE is 0 in the Estimable column.

Least Square Mean

Least square mean table with confindence limit

Author(s)

Kyun-Seop Bae k@acr.kr

Examples

1
2
GLM(uptake ~ Type*Treatment + conc, CO2[-1,]) # Making data unbalanced
GLM(uptake ~ Type*Treatment + conc, CO2[-1,], lsm=TRUE)

sasLM documentation built on July 14, 2021, 9:07 a.m.