Learn R Programming

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

sasLM (version 0.6.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.6.0

License

GPL-3

Maintainer

Kyun-Seop Bae

Last Published

June 15th, 2021

Functions in sasLM (0.6.0)

Coll

Collinearity Diagnostics
CONTR

F Test with a Set of Contrasts
Diffogram

Plot Pairwise Differences
BasicUtil

Internal Functions
Cor.test

Correlation test of multiple numeric columns
CIest

Confidence Interval Estimation
BY

Analysis BY variable
CV

Coefficient of Variation in percentage
ANOVA

Analysis of Variance similar to SAS PROC ANOVA
BEdata

An Example Data of Bioequivalence Study
LCL

Lower Confidence Limit
ESTM

Estimate Linear Function
Min

Min without NA
EMS

Expected Mean Square Formula
Median

Median without NA
SS

Sum of Square
Skewness

Skewness
Range

Range
Max

Max without NA
Mean

Mean without NA
SD

Standard Deviation
QuartileRange

Inter-Quartile Range
T3MS

Type III Expected Mean Square Formula
SkewnessSE

Standard Error of Skewness
LSM

Least Square Means
REG

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

Get a Contrast Matrix for Type III SS
sasLM-package

'SAS' Linear Model
GLM

General Linear Model similar to SAS PROC GLM
N

Number of observations
ModelMatrix

Model Matrix
G2SWEEP

Generalized inverse matrix of type 2, g2 inverse
e1

Get a Contrast Matrix for Type I SS
aov1

ANOVA with Type I SS
bk

Beautify the output of knitr::kable
af

Convert some columns of a data.frame to factors
Kurtosis

Kurtosis
KurtosisSE

Standard Error of Kurtosis
cSS

Sum of Square with a Given Contrast Set
SLICE

F Test with Slice
aov2

ANOVA with Type II SS
SEM

Standard Error of the Sample Mean
aov3

ANOVA with Type III SS
lfit

Linear Fit
est

Estimate Linear Functions
lr

Linear Regression with g2 inverse
trimmedMean

Trimmed Mean
tsum2

Table Summary 2 independent(x) variables
e2

Get a Contrast Matrix for Type II SS
tsum

Table Summary
tsum3

Table Summary 3 independent(x) variables
Pcor.test

Partial Correlation test of multiple columns
T3test

Test Type III SS using error term other than MSE
UCL

Upper Confidence Limit
PDIFF

Pairwise Difference
satt

Satterthwaite Approximation of Pooled Variance and Degree of Freedom
estmb

Estimability Check
lr0

Simple Linear Regressions with Each Independent Variable
pB

Plot Confidence and Prediction Bands for Simple Linear Regression
is.cor

Is it a corrleation matrix?
pD

Diagnostic Plot for Regression
regD

Regression of Conventional Way with Rich Diagnostics
tsum0

Table Summary 0 independent(x) variable
tsum1

Table Summary 1 independent(x) variable