Package: sasLM 0.10.5

Kyun-Seop Bae

sasLM: 'SAS' Linear Model

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

Authors:Kyun-Seop Bae [aut, cre]

sasLM_0.10.5.tar.gz
sasLM_0.10.5.tar.gz(r-4.5-noble)sasLM_0.10.5.tar.gz(r-4.4-noble)
sasLM_0.10.5.tgz(r-4.4-emscripten)sasLM_0.10.5.tgz(r-4.3-emscripten)
sasLM.pdf |sasLM.html
sasLM/json (API)
NEWS

# Install 'sasLM' in R:
install.packages('sasLM', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

3.17 score 3 packages 21 scripts 1.3k downloads 1 mentions 150 exports 1 dependencies

Last updated 2 months agofrom:0435fda09a. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 02 2024
R-4.5-linuxOKNov 02 2024

Exports:afaov1aov2aov3aspirinCHDbacteriabeanyieldbearingBEdatabkbLbondreturnBPbrandtarbulblifeBYccdyieldCheckAliasCIestCollCONTRCor.testcorFishercSSCumAlphaCVdampoll1dampoll2defect1defect2dietwtDiffogramDriftdstrengthdynamitee1e2e3edupgmEMSestESTMestmbexExitPfeedmice1feedmice2feedsheepfertpest1fertpest2g2invG2SWEEPgeoCVgeoMeanGLMGrpCodehlpumpis.corkeyspeedKurtosisKurtosisSELCLleprosylfitllsm0lrlr0LSMlsm0MaxMeanMedianMinModelMatrixmtestNonewayORORcmhORinvORmnORmn1pBPcor.testpDPDIFFpigfeedpivotJplotDiffplotDunnettPocockBoundpResDptensileqcpassQuartileRangeRangeRanTestRDRDinvRDmnRDmn1REGregDrosemiteRRRRinvRRmnRRmn1rsdata0sattscore1score2ScoreCISDSEMseqBoundseqCIsimxy1simxy2SkewnessSkewnessSESLICEsodiumsortColNameSSsumANOVAsumREGT3MST3testtemptrendtirewear1tirewear2tirewear3tmtesttoollifetransfattrimmedMeantsumtsum0tsum1tsum2tsum3TTESTtwowayUCLUNIVvtestWhiteHWhiteTestztest

Dependencies:mvtnorm

Readme and manuals

Help Manual

Help pageTopics
'SAS' Linear ModelsasLM-package sasLM
Convert some columns of a data.frame to factorsaf
ANOVA with Type I SSaov1
ANOVA with Type II SSaov2
ANOVA with Type III SSaov3
An example data for meta-analysis - aspirin in coronary heart diseaseaspirinCHD
An Example Data of Bioequivalence StudyBEdata
Beautify the output of knitr::kablebk
Analysis BY variableBY
Confidence Interval EstimationCIest
Collinearity DiagnosticsColl
F Test with a Set of ContrastsCONTR
Correlation test of multiple numeric columnsCor.test
Correlation test by Fisher's Z transformationcorFisher
Sum of Square with a Given Contrast SetcSS
Cumulative Alpha for the Fixed Z-valueCumAlpha
Coefficient of Variation in percentageCV
Plot Pairwise DifferencesDiffogram
Drift defined by Lan and DeMets for Group Sequential DesignDrift
Get a Contrast Matrix for Type I SSe1
Get a Contrast Matrix for Type II SSe2
Get a Contrast Matrix for Type III SSe3
Expected Mean Square FormulaEMS
Estimate Linear Functionsest
Estimate Linear FunctionESTM ESTMIMATE
Estimability Checkestmb
Exit Probability with cumulative Z-test in Group Sequential DesignExitP
Generalized type 2 inverse matrix, g2 inverseg2inv
Generalized inverse matrix of type 2 for linear regressionG2SWEEP
Geometric Coefficient of Variation in percentagegeoCV
Geometric Mean without NAgeoMean
General Linear Model similar to SAS PROC GLMGLM
Is it a correlation matrix?is.cor
KurtosisKurtosis
Standard Error of KurtosisKurtosisSE
Lower Confidence LimitLCL
Linear Fitlfit
Linear Regression with g2 inverselr
Simple Linear Regressions with Each Independent Variablelr0
Least Square MeansLSM
Max without NAMax
Mean without NAMean
Median without NAMedian
Min without NAMin
Model MatrixModelMatrix
Independent two groups t-test similar to PROC TTEST with summarized inputmtest
Number of observationsN
Odds Ratio of two groupsOR
Odds Ratio of two groups with strata by CMH methodORcmh
Odds Ratio of two groups with strata by inverse variance methodORinv
Odds Ratio and Score CI of two groups with strata by MN methodORmn
Odds Ratio and Score CI of two groups without strata by the MN methodORmn1
Plot Confidence and Prediction Bands for Simple Linear RegressionpB
Partial Correlation test of multiple columnsPcor.test
Diagnostic Plot for RegressionpD
Pairwise DifferencePDIFF
Pocock (fixed) Bound for the cumulative Z-test with a final target alpha-valuePocockBound
Residual Diagnostic Plot for RegressionpResD
Inter-Quartile RangeQuartileRange
RangeRange
Test with Random EffectsRanTest
Risk Difference between two groupsRD
Risk Difference between two groups with strata by inverse variance methodRDinv
Risk Difference and Score CI between two groups with strata by the MN methodRDmn
Risk Difference and Score CI between two groups without strata by the MN methodRDmn1
Regression of Linear Least Square, similar to SAS PROC REGREG
Regression of Conventional Way with Rich DiagnosticsregD
Relative Risk of the two groupsRR
Relative Risk of two groups with strata by inverse variance methodRRinv
Relative Risk and Score CI of two groups with strata by the MN methodRRmn
Relative Risk and Score CI of two groups without strata by by MN methodRRmn1
Satterthwaite Approximation of Variance and Degree of Freedomsatt
Score Confidence Interval for a Proportion or a Binomial DistributionScoreCI
Standard DeviationSD
Standard Error of the Sample MeanSEM
Sequential bounds for cumulative Z-test in Group Sequential DesignseqBound
Confidence interval with the last Z-value for the group sequential designseqCI
SkewnessSkewness
Standard Error of SkewnessSkewnessSE
F Test with SliceSLICE
Sum of SquareSS
Type III Expected Mean Square FormulaT3MS
Test Type III SS using error term other than MSET3test
Independent two means test similar to t.test with summarized inputtmtest
Trimmed MeantrimmedMean
Table Summarytsum
Table Summary 0 independent(x) variabletsum0
Table Summary 1 independent(x) variabletsum1
Table Summary 2 independent(x) variablestsum2
Table Summary 3 independent(x) variablestsum3
Independent two groups t-test comparable to PROC TTESTTTEST
Upper Confidence LimitUCL
Univariate Descriptive StatisticsUNIV
F-Test for the ratio of two groups' variancesvtest
White's Model Specification TestWhiteTest
Test for the difference of two groups' meansztest