Learn R Programming

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

sasLM (version 0.9.4)

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

License

GPL-3

Maintainer

Kyun-Seop Bae

Last Published

January 7th, 2023

Functions in sasLM (0.9.4)

G2SWEEP

Generalized inverse matrix of type 2, g2 inverse
KurtosisSE

Standard Error of Kurtosis
Kurtosis

Kurtosis
Mean

Mean without NA
LCL

Lower Confidence Limit
Max

Max without NA
ESTM

Estimate Linear Function
GLM

General Linear Model similar to SAS PROC GLM
LSM

Least Square Means
Median

Median without NA
Min

Min without NA
ORinv

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

Number of observations
ORcmh

Odds Ratio of two groups with strata by CMH method
Pcor.test

Partial Correlation test of multiple columns
OR

Odds Ratio of two groups
PDIFF

Pairwise Difference
ModelMatrix

Model Matrix
ORmn

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

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

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

Relative Risk of two groups
ORmn1

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

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

Inter-Quartile Range
RD

Risk Difference between two groups
RDmn

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

Range
REG

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

Type III Expected Mean Square Formula
T3test

Test Type III SS using error term other than MSE
RRinv

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

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

Correlation test by Fisher's Z transformation
SD

Standard Deviation
cSS

Sum of Square with a Given Contrast Set
ScoreCI

Score CI of a proportion
UCL

Upper Confidence Limit
SS

Sum of Square
UNIV

Univariate Descriptive Statistics
e2

Get a Contrast Matrix for Type II SS
e1

Get a Contrast Matrix for Type I SS
e3

Get a Contrast Matrix for Type III SS
aov1

ANOVA with Type I SS
aov2

ANOVA with Type II SS
est

Estimate Linear Functions
SLICE

F Test with Slice
geoMean

Geometric Mean without NA
is.cor

Is it a corrleation matrix?
lr0

Simple Linear Regressions with Each Independent Variable
SEM

Standard Error of the Sample Mean
tsum

Table Summary
lr

Linear Regression with g2 inverse
lfit

Linear Fit
satt

Satterthwaite Approximation of Variance and Degree of Freedom
tsum0

Table Summary 0 independent(x) variable
pB

Plot Confidence and Prediction Bands for Simple Linear Regression
Skewness

Skewness
tsum3

Table Summary 3 independent(x) variables
sasLM-package

'SAS' Linear Model
regD

Regression of Conventional Way with Rich Diagnostics
SkewnessSE

Standard Error of Skewness
af

Convert some columns of a data.frame to factors
WhiteTest

White's Model Specification Test
estmb

Estimability Check
geoCV

Geometric Coefficient of Variation in percentage
pD

Diagnostic Plot for Regression
bk

Beautify the output of knitr::kable
pResD

Residual Diagnostic Plot for Regression
aov3

ANOVA with Type III SS
tsum2

Table Summary 2 independent(x) variables
trimmedMean

Trimmed Mean
tsum1

Table Summary 1 independent(x) variable
EMS

Expected Mean Square Formula
Diffogram

Plot Pairwise Differences
BasicUtil

Internal Functions
CIest

Confidence Interval Estimation
BEdata

An Example Data of Bioequivalence Study
BY

Analysis BY variable
Coll

Collinearity Diagnostics
Cor.test

Correlation test of multiple numeric columns
CV

Coefficient of Variation in percentage
CONTR

F Test with a Set of Contrasts