Learn R Programming

sasLM (version 0.3.0)

GLM: General Linear Model similar to SAS PROC GLM

Description

GLM is the main function of this package.

Usage

GLM(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 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

Details

It performs the core function of SAS PROC GLM.

Examples

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

Run the code above in your browser using DataLab