Learn R Programming

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

sasLM (version 0.9.2)

'SAS' Linear Model

Description

This is a core implementation of 'SAS' procedures for linear models - GLM, REG, ANOVA, FREQ, and UNIVARIATE. 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

730

Version

0.9.2

License

GPL-3

Maintainer

Kyun-Seop Bae

Last Published

October 5th, 2022

Functions in sasLM (0.9.2)

LCL

Lower Confidence Limit
Min

Min without NA
ORmn

Odds Ratio and Score CI of two groups with strata by MN method
ORinv

Odds Ratio of two groups with strata by inverse variance method
OR

Odds Ratio of two groups
N

Number of observations
PDIFF

Pairwise Difference
Pcor.test

Partial Correlation test of multiple columns
ORmn1

Odds Ratio and Score CI of two groups without strata by MN method
ModelMatrix

Model Matrix
ORcmh

Odds Ratio of two groups with strata by CMH method
RRmn

Relative Risk and Score CI of two groups with strata by MN method
REG

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

Relative Risk of two groups
RD

Risk Difference between two groups
RDinv

Risk Difference between two groups with strata by inverse variance method
RDmn1

Risk Difference and Score CI between two groups without strata by MN method
QuartileRange

Inter-Quartile Range
RRmn1

Relative Risk and Score CI of two groups without strata by MN method
RDmn

Risk Difference and Score CI between two groups with strata by MN method
Skewness

Skewness
SEM

Standard Error of the Sample Mean
SkewnessSE

Standard Error of Skewness
ScoreCI

Score CI of a proportion
SS

Sum of Square
af

Convert some columns of a data.frame to factors
SLICE

F Test with Slice
bk

Beautify the output of knitr::kable
cSS

Sum of Square with a Given Contrast Set
aov1

ANOVA with Type I SS
UCL

Upper Confidence Limit
RRinv

Relative Risk of two groups with strata by inverse variance method
geoCV

Geometric Coefficient of Variation in percentage
geoMean

Geometric Mean without NA
lfit

Linear Fit
pResD

Residual Diagnostic Plot for Regression
T3test

Test Type III SS using error term other than MSE
Range

Range
is.cor

Is it a corrleation matrix?
T3MS

Type III Expected Mean Square Formula
UNIV

Univariate Descriptive Statistics
lr0

Simple Linear Regressions with Each Independent Variable
corFisher

Correlation test by Fisher's Z transformation
regD

Regression of Conventional Way with Rich Diagnostics
lr

Linear Regression with g2 inverse
e1

Get a Contrast Matrix for Type I SS
satt

Satterthwaite Approximation of Variance and Degree of Freedom
sasLM-package

'SAS' Linear Model
tsum3

Table Summary 3 independent(x) variables
e2

Get a Contrast Matrix for Type II SS
pB

Plot Confidence and Prediction Bands for Simple Linear Regression
tsum2

Table Summary 2 independent(x) variables
pD

Diagnostic Plot for Regression
e3

Get a Contrast Matrix for Type III SS
tsum0

Table Summary 0 independent(x) variable
tsum1

Table Summary 1 independent(x) variable
trimmedMean

Trimmed Mean
est

Estimate Linear Functions
aov3

ANOVA with Type III SS
SD

Standard Deviation
tsum

Table Summary
estmb

Estimability Check
aov2

ANOVA with Type II SS
Diffogram

Plot Pairwise Differences
EMS

Expected Mean Square Formula
BEdata

An Example Data of Bioequivalence Study
CV

Coefficient of Variation in percentage
CONTR

F Test with a Set of Contrasts
BY

Analysis BY variable
Coll

Collinearity Diagnostics
Cor.test

Correlation test of multiple numeric columns
CIest

Confidence Interval Estimation
BasicUtil

Internal Functions
LSM

Least Square Means
Mean

Mean without NA
Max

Max without NA
Median

Median without NA
GLM

General Linear Model similar to SAS PROC GLM
ESTM

Estimate Linear Function
Kurtosis

Kurtosis
KurtosisSE

Standard Error of Kurtosis
G2SWEEP

Generalized inverse matrix of type 2, g2 inverse