Learn R Programming

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

sasLM (version 0.6.6)

'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.6

License

GPL-3

Maintainer

Kyun-Seop Bae

Last Published

February 19th, 2022

Functions in sasLM (0.6.6)

CONTR

F Test with a Set of Contrasts
BEdata

An Example Data of Bioequivalence Study
CIest

Confidence Interval Estimation
BY

Analysis BY variable
CV

Coefficient of Variation in percentage
Coll

Collinearity Diagnostics
Cor.test

Correlation test of multiple numeric columns
ANOVA

Analysis of Variance similar to SAS PROC ANOVA
BasicUtil

Internal Functions
LCL

Lower Confidence Limit
Range

Range
SD

Standard Deviation
af

Convert some columns of a data.frame to factors
est

Estimate Linear Functions
UNIV

Univariate Descriptive Statistics
estmb

Estimability Check
Max

Max without NA
Mean

Mean without NA
tsum3

Table Summary 3 independent(x) variables
GLM

General Linear Model similar to SAS PROC GLM
G2SWEEP

Generalized inverse matrix of type 2, g2 inverse
QuartileRange

Inter-Quartile Range
Median

Median without NA
EMS

Expected Mean Square Formula
cSS

Sum of Square with a Given Contrast Set
ESTM

Estimate Linear Function
LSM

Least Square Means
Diffogram

Plot Pairwise Differences
Kurtosis

Kurtosis
REG

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

F Test with Slice
SEM

Standard Error of the Sample Mean
e1

Get a Contrast Matrix for Type I SS
e2

Get a Contrast Matrix for Type II SS
Skewness

Skewness
SS

Sum of Square
Min

Min without NA
Pcor.test

Partial Correlation test of multiple columns
PDIFF

Pairwise Difference
aov1

ANOVA with Type I SS
SkewnessSE

Standard Error of Skewness
regD

Regression of Conventional Way with Rich Diagnostics
T3MS

Type III Expected Mean Square Formula
KurtosisSE

Standard Error of Kurtosis
is.cor

Is it a corrleation matrix?
tsum1

Table Summary 1 independent(x) variable
sasLM-package

'SAS' Linear Model
ModelMatrix

Model Matrix
N

Number of observations
tsum2

Table Summary 2 independent(x) variables
lr

Linear Regression with g2 inverse
e3

Get a Contrast Matrix for Type III SS
lr0

Simple Linear Regressions with Each Independent Variable
satt

Satterthwaite Approximation of Pooled Variance and Degree of Freedom
lfit

Linear Fit
T3test

Test Type III SS using error term other than MSE
pB

Plot Confidence and Prediction Bands for Simple Linear Regression
pD

Diagnostic Plot for Regression
aov2

ANOVA with Type II SS
geoCV

Geometric Coefficient of Variation in percentage
geoMean

Geometric Mean without NA
aov3

ANOVA with Type III SS
bk

Beautify the output of knitr::kable
UCL

Upper Confidence Limit
trimmedMean

Trimmed Mean
tsum

Table Summary
tsum0

Table Summary 0 independent(x) variable