Learn R Programming

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

sasLM (version 0.5.0)

'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

1,004

Version

0.5.0

License

GPL-3

Maintainer

Kyun-Seop Bae

Last Published

February 15th, 2021

Functions in sasLM (0.5.0)

Coll

Collinearity Diagnostics
BY

Analysis BY variable
EMS

Expected Mean Square Formula
GLM

General Linear Model similar to SAS PROC GLM
Cor.test

Correlation test of multiple numeric columns
CIest

Confidence Interval Estimation
ANOVA

Analysis of Variance similar to SAS PROC ANOVA
BasicUtil

Internal Functions
G2SWEEP

Generalized inverse matrix of type 2, g2 inverse
Pcor.test

Partial Correlation test of multiple columns
SS

Sum of Square
BEdata

An Example Data of Bioequivalence Study
KurtosisSE

Standard Error of Kurtosis
lr0

Simple Linear Regressions with Each Independent Variable
e2

Get a Contrast Matrix for Type II SS
tsum0

Table Summary 0 independent(x) variable
Kurtosis

Kurtosis
e1

Get a Contrast Matrix for Type I SS
lr

Linear Regression with g2 inverse
Mean

Mean without NA
QuartileRange

Inter-Quartile Range
tsum

Table Summary
REG

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

Standard Deviation
SEM

Standard Error of the Sample Mean
ModelMatrix

Model Matrix
N

Number of observations
T3test

Test Type III SS using error term other than MSE
PDIFF

Pairwise Difference by Least Significant Difference
UCL

Upper Confidence Limit
Skewness

Skewness
satt

Satterthwaite Approximation of Pooled Variance and Degree of Freedom
af

Convert some columns of a data.frame to factors
Range

Range
aov1

ANOVA with Type I SS
LCL

Lower Confidence Limit
aov2

ANOVA with Type II SS
SkewnessSE

Standard Error of Skewness
aov3

ANOVA with Type III SS
LSM

Least Square Means
T3MS

Type III Expected Mean Square Formula
pB

Plot Confidence and Prediction Bands for Simple Linear Regression
tsum3

Table Summary 3 independent(x) variables
pD

Diagnostic Plot for Regression
bk

Beautify the output of knitr::kable
trimmedMean

Trimmed Mean
cSS

Sum of Square with a Given Contrast Set
is.cor

Is it a corrleation matrix?
lfit

Linear Fit
tsum2

Table Summary 2 independent(x) variables
regD

Regression of Conventional Way with Rich Diagnostics
tsum1

Table Summary 1 independent(x) variable
e3

Get a Contrast Matrix for Type III SS
est

Estimate Linear Contrast
sasLM-package

'SAS' Linear Model