Package: Greg 2.0.2

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.2.tar.gz
Greg_2.0.2.zip(r-4.5)Greg_2.0.2.zip(r-4.4)
Greg_2.0.2.tgz(r-4.4-any)
Greg_2.0.2.tar.gz(r-4.5-noble)Greg_2.0.2.tar.gz(r-4.4-noble)
Greg_2.0.2.tgz(r-4.4-emscripten)
Greg.pdf |Greg.html
Greg/json (API)
NEWS

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

Peer review:

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

On CRAN:

6.20 score 6 stars 66 scripts 642 downloads 4 mentions 14 exports 97 dependencies

Last updated 10 months agofrom:f21fdab583. Checks:OK: 3 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 26 2024
R-4.5-winNOTEOct 26 2024
R-4.5-linuxNOTEOct 26 2024
R-4.4-winOKOct 26 2024
R-4.4-macOKOct 26 2024

Exports:addNonlinearitycaDescribeOptsconfint_robustforestplotCombineRegrObjforestplotRegrObjfpBoxSizegetCrudeAndAdjustedModelDataisFitCoxPHisFitLogitplotHRprintCrudeAndAdjustedModelrobcov_altsimpleRmsAnovatimeSplitter

Dependencies:abindbackportsbase64encbroombslibcachemcheckmatecliclustercmprskcodetoolscolorspacecpp11data.tabledigestdplyrEpietmevaluatefansifarverfastmapfontawesomeforeignforestplotFormulafsgenericsggplot2glueGmiscgridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclelubridatemagrittrMASSMatrixMatrixModelsmemoisemgcvmimemultcompmunsellmvtnormnlmennetnumDerivpillarpkgconfigplyrpolsplinepurrrquantregR6rappdirsRColorBrewerRcppRcppArmadillorlangrmarkdownrmsrpartrstudioapisandwichsassscalesSparseMstringistringrsurvivalTH.datatibbletidyrtidyselecttimechangetinytexutf8vctrsviridisviridisLitewithrxfunXMLyamlzoo

How to use the timeSplitter

Rendered fromtimeSplitter.Rmdusingknitr::rmarkdownon Oct 26 2024.

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

Print crude and adjusted

Rendered fromprintCrudeAndAdjustedModel.Rmdusingknitr::rmarkdownon Oct 26 2024.

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

Readme and manuals

Help Manual

Help pageTopics
Regression Helper FunctionsGreg-package
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