Package: cg 1.0-3

Bill Pikounis

cg: Compare Groups, Analytically and Graphically

Comprehensive data analysis software, and the name "cg" stands for "compare groups." Its genesis and evolution are driven by common needs to compare administrations, conditions, etc. in medicine research and development. The current version provides comparisons of unpaired samples, i.e. a linear model with one factor of at least two levels. It also provides comparisons of two paired samples. Good data graphs, modern statistical methods, and useful displays of results are emphasized.

Authors:Bill Pikounis [aut, cre, cph], John Oleynick [aut], Eva Ye [ctb]

cg_1.0-3.tar.gz
cg_1.0-3.tar.gz(r-4.5-noble)cg_1.0-3.tar.gz(r-4.4-noble)
cg_1.0-3.tgz(r-4.4-emscripten)cg_1.0-3.tgz(r-4.3-emscripten)
cg.pdf |cg.html
cg/json (API)
NEWS

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

Peer review:

Datasets:

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

2.54 score 86 scripts 226 downloads 4 mentions 82 exports 78 dependencies

Last updated 9 years agofrom:fd39ff2ca2. Checks:OK: 1 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 03 2024
R-4.5-linuxNOTENov 03 2024

Exports:boxplot.cgOneFactorDatacomparisonscomparisonsgraphcomparisonsGraphcomparisonsGraph.cgOneFactorComparisonsTablecomparisonsGraph.cgPairedDifferenceComparisonsTablecomparisonsTablecomparisonsTable.cgOneFactorFitcomparisonsTable.cgPairedDifferenceFitcorrelationTablecorrelationTable.cgPairedDifferenceDatadescriptiveTabledescriptiveTable.cgOneFactorDatadescriptiveTable.cgPairedDifferenceDatadiffGraphdiffGraph.cgPairedDifferenceDatadownweightedTabledownweightedTable.cgOneFactorFitdownweightedTable.cgPairedDifferenceFiterrorbargrapherrorBarGrapherrorBarGraph.cgOneFactorFitfactorInSeqfitfit.cgOneFactorDatafit.cgPairedDifferenceDataglobalTestglobalTest.cgOneFactorFitgrpSummaryTablekmGraphkmGraph.cgOneFactorDatapointGraphpointGraph.cgOneFactorDataprepareprepareCGOneFactorDataprepareCGPairedDifferenceDataprint.cgOneFactorComparisonsTableprint.cgOneFactorDescriptiveTableprint.cgOneFactorDownweightedTableprint.cgOneFactorFitprint.cgOneFactorGlobalTestprint.cgOneFactorGrpSummaryTableprint.cgOneFactorSampleSizeTableprint.cgPairedDifferenceComparisonsTableprint.cgPairedDifferenceCorrelationTableprint.cgPairedDifferenceDescriptiveTableprint.cgPairedDifferenceDownweightedTableprint.cgPairedDifferenceFitprint.cgPairedDifferenceSampleSizeTableprint.cgPairedDifferenceVarianceTableprofileGraphprofileGraph.cgPairedDifferenceDataqqGraphqqGraph.cgOneFactorFitqqGraph.cgPairedDifferenceFitsamplesizeGraphsamplesizeGraph.cgOneFactorSampleSizeTablesamplesizeGraph.cgPairedDifferenceSampleSizeTablesamplesizeTablesamplesizeTable.cgOneFactorFitsamplesizeTable.cgPairedDifferenceFitshow.cgOneFactorComparisonsTableshow.cgOneFactorDescriptiveTableshow.cgOneFactorDownweightedTableshow.cgOneFactorGlobalTestshow.cgOneFactorGrpSummaryTableshow.cgOneFactorSampleSizeTableshow.cgPairedDifferenceComparisonsTableshow.cgPairedDifferenceCorrelationTableshow.cgPairedDifferenceDescriptiveTableshow.cgPairedDifferenceDownweightedTableshow.cgPairedDifferenceSampleSizeTableshow.cgPairedDifferenceVarianceTableshowObjshowObj.cgOneFactorFitshowObj.cgPairedDifferenceFitsummary.cgOneFactorFitsummary.cgPairedDifferenceFitvarianceGraphvarianceGraph.cgOneFactorFitvarianceTablevarianceTable.cgPairedDifferenceFit

Dependencies:backportsbase64encbslibcachemcheckmatecliclustercodetoolscolorspacedata.tabledigestevaluatefansifarverfastmapfontawesomeforeignFormulafsggplot2gluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclemagrittrMASSMatrixMatrixModelsmemoisemgcvmimemultcompmunsellmvtnormnlmennetpillarpkgconfigpolsplinequantregR6rappdirsRColorBrewerrlangrmarkdownrmsrpartrstudioapisandwichsassscalesSparseMstringistringrsurvivalTH.datatibbletinytexutf8vctrsVGAMviridisviridisLitewithrxfunyamlzoo

Readme and manuals

Help Manual

Help pageTopics
Compare Groups, Analytically and Graphicallycg-package cg
AnorexiaFT Data Set in the cg packageanorexiaFT
Box Plot Graph of Groups from a cgOneFactorData objectboxplot,cgOneFactorData-method boxplot.cgOneFactorData
Canine Data Set in the cg packagecanine
Canine Data Set in the cg packagecanine.listfmt
cg package Internal Virtual Classesaftfit-class cgInternalClasses characterOrExpression-class characterOrNULL-class dataframeMatrixOrNULL-class dataframeOrNULL-class numericOrNULL-class olsfit-class rrfit-class uvfit-class
cg package Internal UtilitiesblockDiag boxplotcensoreddata boxplotStamp catCharExpr cg.largest.empty cgDevice cgInternalUtilities cgMessage chop.matrix chopZeroes comparisonsGraphStamp contrastMatrix descriptive.censoreddata errorBarGraphApproximateStamp errorBarGraphStamp factorInSeq fmtDifference fmtPercent fmtPvalue fmtRatio fmtRatioToPercent fround fround.charcens geoMean getNumDigits graphStampCG grpsummary isAllEqual makeCensored makeContrastVec makeEndptLabel makeTickMarks makeZeroScore minmaxTicks multcompDone multcompInform pairwisecompsmatrix paragraphWrap pctToRatio plotGrpNameTicks qminmin rangeExtend residualgrptrend.helper rmTicks samplesize samplesize.default samplesizegraph scaleVar seeHelpFile setupAxisTicks setupGrpNameTicks setupLog10AxisTicks stndErr stripmiss trimWhiteSpace tryAgain unpaste unwind unwrap xTicksCex yTicksCex
Color Choice order for Graph LinescgLineColors
cg package Validity CheckscgValidity getDotsArgName parsePartialName reportInvalidArg validAddConstant validAft validAlpha validArgDigits validArgMatch validArgModel validAtomicVec validBoolean validCensor validCGOneFacGroupColDfr validCGOneFacListedDfr validCharacter validComparisonType validCutoffWt validDataFormat validDenDf validDotsArg validDotsArgs validEqualLength validErrorDf validEstimates validFitType validGrpNames validList validN validNumeric validNumericOrCensored validPower validZeroScore
Create a table of comparisons amongst groupscomparisons
Create an graph of comparisonscomparisonsgraph
Graph comparisons specified amongst groupscomparisonsGraph
Create an graph of the comparisons in a cgOneFactorComparisonsTable objectcomparisonsGraph,cgOneFactorComparisonsTable-method comparisonsGraph.cgOneFactorComparisonsTable
Create an graph of the comparisons in a cgPairedDifferenceComparisonsTable objectcomparisonsGraph,cgPairedDifferenceComparisonsTable-method comparisonsGraph.cgPairedDifferenceComparisonsTable
Create a Table of Comparisons amongst GroupscomparisonsTable
Create a table of comparisons amongst groups with the cgOneFactorFit objectcgOneFactorComparisonsTable cgOneFactorComparisonsTable-class comparisonsTable,cgOneFactorFit-method comparisonsTable.cgOneFactorFit
Create a table of comparisons between two groups with the cgPairedDifferenceFit objectcgPairedDifferenceComparisonsTable cgPairedDifferenceComparisonsTable-class comparisonsTable,cgPairedDifferenceFit-method comparisonsTable.cgPairedDifferenceFit
Compute CorrelationscorrelationTable
Compute Correlations from a cgPairedDifferenceData objectcgPairedDifferenceCorrelationTable cgPairedDifferenceCorrelationTable-class correlationTable,cgPairedDifferenceData-method correlationTable.cgPairedDifferenceData
Compute Descriptive Summary Statistics of GroupsdescriptiveTable
Compute Descriptive Summary Statistics of Groups in a cgOneFactorData objectcgOneFactorDescriptiveTable cgOneFactorDescriptiveTable-class descriptiveTable,cgOneFactorData-method descriptiveTable.cgOneFactorData
Compute Descriptive Summary Statistics of Groups in a cgPairedDifferenceData objectcgPairedDifferenceDescriptiveTable cgPairedDifferenceDescriptiveTable-class descriptiveTable,cgPairedDifferenceData-method descriptiveTable.cgPairedDifferenceData
Graph Paired DifferencesdiffGraph
Graph Paired Differences from a cgPairedDifferenceData objectdiffGraph,cgPairedDifferenceData-method diffGraph.cgPairedDifferenceData
Create a table of downweighted observations from a Resistant & Robust fit.downweightedTable
Create a table of downweighted observations from a Resistant & Robust fit.cgOneFactorDownweightedTable cgOneFactorDownweightedTable-class downweightedTable,cgOneFactorFit-method downweightedTable.cgOneFactorFit
Create a table of downweighted observations from a Resistant & Robust fit.cgPairedDifferenceDownweightedTable cgPairedDifferenceDownweightedTable-class downweightedTable,cgPairedDifferenceFit-method downweightedTable.cgPairedDifferenceFit
Create an error bar graph based on pairwise multiple comparisonserrorbargraph
Create an Error Bar graph amongst groupserrorBarGraph
Create an Error Bar graph amongst groups in a cgOneFactorFit objecterrorBarGraph,cgOneFactorFit-method errorBarGraph.cgOneFactorFit
Fit models to datafit
Fit models to a cgOneFactorData objectcgOneFactorFit cgOneFactorFit-class fit,cgOneFactorData-method fit.cgOneFactorData
Fit models to a cgPairedDifferenceData objectcgPairedDifferenceFit cgPairedDifferenceFit-class fit,cgPairedDifferenceData-method fit.cgPairedDifferenceData
Perform a global test of significanceglobalTest
Perform a global Test of significance with cgOneFactorFit objectcgOneFactorGlobalTest cgOneFactorGlobalTest-class globalTest,cgOneFactorFit-method globalTest.cgOneFactorFit
GM-CSF censored data set in the cg packagegmcsfcens
GM-CSF censored data set in the cg packagegmcsfcens.listfmt gmcsfcens.listfmt1 gmcsfcens.listfmt2 gmcsfcens.listfmt3
Create a table of estimated group means and variabilitygrpSummaryTable
Create a table of estimated group means and variability with a cgOneFactorFit object.cgOneFactorGrpSummaryTable cgOneFactorGrpSummaryTable-class grpSummaryTable,cgOneFactorFit-method grpSummaryTable.cgOneFactorFit
Graph Distribution Functions of GroupskmGraph
Graph Distribution Functions of Groups in a cgOneFactorData objectkmGraph,cgOneFactorData-method kmGraph.cgOneFactorData
Graph Individual Data Points of GroupspointGraph
Graph Individual Data Points in a cgOneFactorData objectpointGraph,cgOneFactorData-method pointGraph.cgOneFactorData
Prepare a cg data object from a data frameprepare
Prepare data object from a data frame for One Factor / One-Way / Unpaired Samples evaluationscgOneFactorData cgOneFactorData-class prepareCGOneFactorData
Prepare data object from a data frame for Paired Samples evaluationscgPairedDifferenceData cgPairedDifferenceData-class prepareCGPairedDifferenceData
Print One Factor Comparisons Table object with some format optionsprint,cgOneFactorComparisonsTable-method print.cgOneFactorComparisonsTable
Print a One Factor Descriptive Table object with some format optionsprint,cgOneFactorDescriptiveTable-method print.cgOneFactorDescriptiveTable
Print Downweighted Observations Table object with some format optionsprint,cgOneFactorDownweightedTable-method print.cgOneFactorDownweightedTable
Print One Factor Model Fit object with some format optionsprint,cgOneFactorFit-method print.cgOneFactorFit
Print One Factor Global F-test object with some format optionsprint,cgOneFactorGlobalTest-method print.cgOneFactorGlobalTest
Print One Factor Group Summary Table object with some format optionsprint,cgOneFactorGrpSummaryTable-method print.cgOneFactorGrpSummaryTable
Print a One Factor Sample Size Table object with some format optionsprint,cgOneFactorSampleSizeTable-method print.cgOneFactorSampleSizeTable
Print Paired Difference Comparisons Table object with some format optionsprint,cgPairedDifferenceComparisonsTable-method print.cgPairedDifferenceComparisonsTable
Print a Paired Difference Correlation Table object with some format optionsprint,cgPairedDifferenceCorrelationTable-method print.cgPairedDifferenceCorrelationTable
Print a Paired Difference Descriptive Table object with some format optionsprint,cgPairedDifferenceDescriptiveTable-method print.cgPairedDifferenceDescriptiveTable
Print Downweighted Observations Table object with some format optionsprint,cgPairedDifferenceDownweightedTable-method print.cgPairedDifferenceDownweightedTable
Print One Factor Model Fit object with some format optionsprint,cgPairedDifferenceFit-method print.cgPairedDifferenceFit
Print a Paired Difference Sample Size Table object with some format optionsprint,cgPairedDifferenceSampleSizeTable-method print.cgPairedDifferenceSampleSizeTable
Print a Paired Difference Variance Table object with some format optionsprint,cgPairedDifferenceVarianceTable-method print.cgPairedDifferenceVarianceTable
Graph Profiles of Experimental UnitsprofileGraph
Graph Profiles of Experimental Unit Pairs in a cgPairedDifferenceData objectprofileGraph,cgPairedDifferenceData-method profileGraph.cgPairedDifferenceData
Quantile-Quantile GraphsqqGraph
Quantile-Quantile (QQ) Graphs of a cgOneFactorFit objectqqGraph,cgOneFactorFit-method qqGraph.cgOneFactorFit
Quantile-Quantile (QQ) Graphs of a cgPairedDifferenceFit objectqqGraph,cgPairedDifferenceFit-method qqGraph.cgPairedDifferenceFit
Graph Estimated Sample SizessamplesizeGraph
Graph estimated sample sizes from a cgOneFactorSampleSizeTable objectsamplesizeGraph,cgOneFactorSampleSizeTable-method samplesizeGraph.cgOneFactorSampleSizeTable
Graph estimated sample sizes from a cgPairedDifferenceSampleSizeTable objectsamplesizeGraph,cgPairedDifferenceSampleSizeTable-method samplesizeGraph.cgPairedDifferenceSampleSizeTable
Estimate Required Sample SizessamplesizeTable
Estimate Sample Sizes based on a cgOneFactorFit objectcgOneFactorSampleSizeTable cgOneFactorSampleSizeTable-class samplesizeTable,cgOneFactorFit-method samplesizeTable.cgOneFactorFit
Estimate Sample Sizes based on a cgPairedDifferenceFit objectcgPairedDifferenceSampleSizeTable cgPairedDifferenceSampleSizeTable-class samplesizeTable,cgPairedDifferenceFit-method samplesizeTable.cgPairedDifferenceFit
Show a One Factor Comparisons Table object from the cg packageshow,cgOneFactorComparisonsTable-method show.cgOneFactorComparisonsTable
Show a One Factor Descriptive Table object from the cg packageshow,cgOneFactorDescriptiveTable-method show.cgOneFactorDescriptiveTable
Show a One Factor Downweighted Table object from the cg packageshow,cgOneFactorDownweightedTable-method show.cgOneFactorDownweightedTable
Show a Global Test object from the cg packageshow,cgOneFactorGlobalTest-method show.cgOneFactorGlobalTest
Show a One Factor Group Summary Table object from the cg packageshow,cgOneFactorGrpSummaryTable-method show.cgOneFactorGrpSummaryTable
Show a One Factor Sample Size Table object from the cg packageshow,cgOneFactorSampleSizeTable-method show.cgOneFactorSampleSizeTable
Show a Paired Difference Data Comparisons Table object from the cg packageshow,cgPairedDifferenceComparisonsTable-method show.cgPairedDifferenceComparisonsTable
Show a Paired Difference Correlation Table object from the cg packageshow,cgPairedDifferenceCorrelationTable-method show.cgPairedDifferenceCorrelationTable
Show a Paired Difference Descriptive Table object from the cg packageshow,cgPairedDifferenceDescriptiveTable-method show.cgPairedDifferenceDescriptiveTable
Show a Paired Difference Downweighted Table object from the cg packageshow,cgPairedDifferenceDownweightedTable-method show.cgPairedDifferenceDownweightedTable
Show a Paired Difference Sample Size Table object from the cg packageshow,cgPairedDifferenceSampleSizeTable-method show.cgPairedDifferenceSampleSizeTable
Show a Paired Difference Variance Table object from the cg packageshow,cgPairedDifferenceVarianceTable-method show.cgPairedDifferenceVarianceTable
Show raw form of an object from the cg packageshowObj
Show a Fitted Model object from the cg packageshowObj,cgOneFactorFit-method showObj.cgOneFactorFit
Show a Fitted Model object from the cg packageshowObj,cgPairedDifferenceFit-method showObj.cgPairedDifferenceFit
Summary display of a One Factor Model Fit object with some format optionssummary,cgOneFactorFit-method summary.cgOneFactorFit
Summary display of a Paired Difference Model Fit object with some format optionssummary,cgPairedDifferenceFit-method summary.cgPairedDifferenceFit
Variance GraphsvarianceGraph
Equal Variance Graphs assessment of cgOneFactorFit objectvarianceGraph,cgOneFactorFit-method varianceGraph.cgOneFactorFit
Compute Variance ComponentsvarianceTable
Compute Variances from a cgPairedDifferenceFit objectcgPairedDifferenceVarianceTable cgPairedDifferenceVarianceTable-class varianceTable,cgPairedDifferenceFit-method varianceTable.cgPairedDifferenceFit