Learn R Programming

⚠️There's a newer version (0.10.5) of this package.Take me there.

sasLM (version 0.5.2)

'SAS' Linear Model

Description

This is a core implementation of 'SAS' procedures for linear models - GLM, REG, and ANOVA. Some R packages provide type II and type III SS. However, the results of nested and complex designs are often different from those of 'SAS.' Different results does not necessarily mean incorrectness. However, many wants the same results to SAS. This package aims to achieve that. Reference: Littell RC, Stroup WW, Freund RJ (2002, ISBN:0-471-22174-0).

Copy Link

Version

Install

install.packages('sasLM')

Monthly Downloads

729

Version

0.5.2

License

GPL-3

Maintainer

Kyun-Seop Bae

Last Published

April 14th, 2021

Functions in sasLM (0.5.2)

EMS

Expected Mean Square Formula
Coll

Collinearity Diagnostics
ANOVA

Analysis of Variance similar to SAS PROC ANOVA
CV

Coefficient of Variation in percentage
BY

Analysis BY variable
KurtosisSE

Standard Error of Kurtosis
N

Number of observations
SD

Standard Deviation
Range

Range
ModelMatrix

Model Matrix
G2SWEEP

Generalized inverse matrix of type 2, g2 inverse
PDIFF

Pairwise Difference by Least Significant Difference
Pcor.test

Partial Correlation test of multiple columns
LCL

Lower Confidence Limit
T3test

Test Type III SS using error term other than MSE
T3MS

Type III Expected Mean Square Formula
Kurtosis

Kurtosis
GLM

General Linear Model similar to SAS PROC GLM
SS

Sum of Square
SEM

Standard Error of the Sample Mean
Skewness

Skewness
aov1

ANOVA with Type I SS
UCL

Upper Confidence Limit
tsum3

Table Summary 3 independent(x) variables
af

Convert some columns of a data.frame to factors
SkewnessSE

Standard Error of Skewness
lfit

Linear Fit
is.cor

Is it a corrleation matrix?
tsum1

Table Summary 1 independent(x) variable
REG

Regression of Linear Least Square, similar to SAS PROC REG
cSS

Sum of Square with a Given Contrast Set
QuartileRange

Inter-Quartile Range
LSM

Least Square Means
aov2

ANOVA with Type II SS
lr

Linear Regression with g2 inverse
e2

Get a Contrast Matrix for Type II SS
lr0

Simple Linear Regressions with Each Independent Variable
aov3

ANOVA with Type III SS
Mean

Mean without NA
bk

Beautify the output of knitr::kable
pD

Diagnostic Plot for Regression
satt

Satterthwaite Approximation of Pooled Variance and Degree of Freedom
pB

Plot Confidence and Prediction Bands for Simple Linear Regression
tsum2

Table Summary 2 independent(x) variables
regD

Regression of Conventional Way with Rich Diagnostics
e3

Get a Contrast Matrix for Type III SS
sasLM-package

'SAS' Linear Model
tsum

Table Summary
est

Estimate Linear Contrast
e1

Get a Contrast Matrix for Type I SS
estmb

Estimability Check
tsum0

Table Summary 0 independent(x) variable
trimmedMean

Trimmed Mean
BEdata

An Example Data of Bioequivalence Study
Cor.test

Correlation test of multiple numeric columns
CIest

Confidence Interval Estimation
BasicUtil

Internal Functions