Package: Greg 2.0.3

Greg: Regression Helper Functions

Methods for manipulating regression models and for describing these in a style adapted for medical journals. Contains functions for generating an HTML table with crude and adjusted estimates, plotting hazard ratio, plotting model estimates and confidence intervals using forest plots, extending this to comparing multiple models in a single forest plots. In addition to the descriptive methods, there are functions for the robust covariance matrix provided by the 'sandwich' package, a function for adding non-linearities to a model, and a wrapper around the 'Epi' package's Lexis() functions for time-splitting a dataset when modeling non-proportional hazards in Cox regressions.

Authors:Max Gordon [aut, cre], Reinhard Seifert [aut]

Greg_2.0.3.tar.gz
Greg_2.0.3.zip(r-4.7)Greg_2.0.3.zip(r-4.6)Greg_2.0.3.zip(r-4.5)
Greg_2.0.3.tgz(r-4.6-any)Greg_2.0.3.tgz(r-4.5-any)
Greg_2.0.3.tar.gz(r-4.7-any)Greg_2.0.3.tar.gz(r-4.6-any)
Greg_2.0.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
Greg/json (API)

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

Bug tracker:https://github.com/gforge/greg/issues

On CRAN:

Conda:

7.73 score 7 stars 190 scripts 5.0k downloads 4 mentions 14 exports 95 dependencies

Last updated from:7a69b9db54. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK268
source / vignettesOK233
linux-release-x86_64OK265
macos-release-arm64OK172
macos-oldrel-arm64OK167
windows-develOK183
windows-releaseOK152
windows-oldrelOK149
wasm-releaseOK149

Exports:addNonlinearitycaDescribeOptsconfint_robustforestplotCombineRegrObjforestplotRegrObjfpBoxSizegetCrudeAndAdjustedModelDataisFitCoxPHisFitLogitplotHRprintCrudeAndAdjustedModelrobcov_altsimpleRmsAnovatimeSplitter

Dependencies:abindbackportsbase64encbroombslibcachemcheckmatecliclustercmprskcodetoolscolorspacecpp11data.tabledigestdplyrEpietmevaluatefarverfastmapfontawesomeforeignforestplotFormulafsgenericsggplot2glueGmiscgridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclelubridatemagrittrMASSMatrixMatrixModelsmemoisemgcvmimemultcompmvtnormnlmennetnumDerivpillarpkgconfigplyrpolsplinepurrrquantregR6rappdirsRColorBrewerRcppRcppArmadillorlangrmarkdownrmsrpartrstudioapiS7sandwichsassscalesSparseMstringistringrsurvivalTH.datatibbletidyrtidyselecttimechangetinytexutf8vctrsviridisLitewithrxfunXMLyamlzoo

How to use the timeSplitter
Background | The problem with non-proportional hazards | Addressing non-proportional hazards | Using strata | Using the tt argument | Using the timeSplitter | Poor-mans time split | Other options | How the timeSplitter works | A real example | A few tips and notes | Drop unnecessary variables | Choose adequate interval length | Using the time-splitted model | Warning: don't use the I() option

Last update: 2022-10-13
Started: 2015-12-26

Print crude and adjusted
How to output crude and adjusted models | Background | The printCrudeAndAdjusted function | Binding columns/rows | Selecting column/rows using [ | More advanced models

Last update: 2022-10-13
Started: 2019-01-01

Readme and manuals

Help Manual

Help pageTopics
Regression Helper FunctionsGreg-package Greg
Add a nonlinear function to the modeladdNonlinearity addNonlinearity.negbin
A function for gathering all the description optionscaDescribeOpts
The confint function adapted for vcovHCconfint_robust
A 'confint' function for the 'ols'confint.ols
Compares different scores in different regression objects.forestplotCombineRegrObj
Forest plot for multiple modelsforestplotRegrObj forestplotRegrObj.coxph forestplotRegrObj.default forestplotRegrObj.glm forestplotRegrObj.list forestplotRegrObj.lm forestplotRegrObj.lrm fpBoxSize
Functions for checking regression typeisFitCoxPH isFitLogit
Plot a spline in a Cox regression modelplot.plotHR plotHR print.plotHR
Robust covariance matrix based upon the 'sandwich'-packagerobcov_alt
Tidy a(n) rms model objecttidy.rms
A function for splitting a time according to time periodstimeSplitter