{
  "_id": "6a1b41531d7bb097a0a10740",
  "Package": "Greg",
  "Version": "2.0.3",
  "Title": "Regression Helper Functions",
  "Maintainer": "Max Gordon <max@gforge.se>",
  "Authors@R": "c(person(\"Max\", \"Gordon\", email = \"max@gforge.se\", role = c(\"aut\", \"cre\")),\nperson(\"Reinhard\", \"Seifert\", role = \"aut\", comment = \"Author of original plotHR\"))",
  "Description": "Methods for manipulating regression models and for\ndescribing these in a style adapted for medical journals.\nContains functions for generating an HTML table with crude and\nadjusted estimates, plotting hazard ratio, plotting model\nestimates and confidence intervals using forest plots,\nextending this to comparing multiple models in a single forest\nplots. In addition to the descriptive methods, there are\nfunctions for the robust covariance matrix provided by the\n'sandwich' package, a function for adding non-linearities to a\nmodel, and a wrapper around the 'Epi' package's Lexis()\nfunctions for time-splitting a dataset when modeling\nnon-proportional hazards in Cox regressions.",
  "License": "GPL (>= 3)",
  "URL": "http://gforge.se",
  "BugReports": "https://github.com/gforge/Greg/issues",
  "Biarch": "yes",
  "Encoding": "UTF-8",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.2",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev libxml2-dev",
  "Repository": "https://gforge.r-universe.dev",
  "Date/Publication": "2025-08-19 06:26:18 UTC",
  "RemoteUrl": "https://github.com/gforge/greg",
  "RemoteRef": "HEAD",
  "RemoteSha": "7a69b9db54f7b0e7cd6c19c347764fd103d02e9a",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-30 19:52:28 UTC",
    "User": "root"
  },
  "Author": "Max Gordon [aut, cre],\nReinhard Seifert [aut] (Author of original plotHR)",
  "MD5sum": "b48c984c1a141a3f458924ca217f3d94",
  "_user": "gforge",
  "_type": "src",
  "_file": "Greg_2.0.3.tar.gz",
  "_fileid": "b90dc99ef16e94595fcd0a5df447d8937a2b7bcf814c0e235fd40704c9b77852",
  "_filesize": 444300,
  "_sha256": "b90dc99ef16e94595fcd0a5df447d8937a2b7bcf814c0e235fd40704c9b77852",
  "_created": "2026-05-30T19:52:28.000Z",
  "_published": "2026-05-30T19:58:11.090Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78673605189,
      "time": 278,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7310925939"
    },
    {
      "job": 78673605188,
      "time": 295,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7310927563"
    },
    {
      "job": 78673605207,
      "time": 157,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7310913627"
    },
    {
      "job": 78673605208,
      "time": 134,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7310911416"
    },
    {
      "job": 78673333061,
      "time": 296,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7310897729"
    },
    {
      "job": 78673605179,
      "time": 137,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7310911548"
    },
    {
      "job": 78673605228,
      "time": 120,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7310909913"
    },
    {
      "job": 78673605236,
      "time": 192,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7310917854"
    },
    {
      "job": 78673605229,
      "time": 141,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7310912254"
    }
  ],
  "_buildurl": "https://github.com/r-universe/gforge/actions/runs/26693267977",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/gforge/greg",
  "_commit": {
    "id": "7a69b9db54f7b0e7cd6c19c347764fd103d02e9a",
    "author": "Max Gordon <max@gforge.se>",
    "committer": "Max Gordon <max@gforge.se>",
    "message": "Added project ID\n",
    "time": 1755584778
  },
  "_maintainer": {
    "name": "Max Gordon",
    "email": "max@gforge.se",
    "login": "gforge",
    "description": "",
    "uuid": 2198913
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "Gmisc",
      "version": ">= 1.0.3",
      "role": "Depends"
    },
    {
      "package": "forestplot",
      "role": "Depends"
    },
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "broom",
      "role": "Imports"
    },
    {
      "package": "Epi",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "htmlTable",
      "version": ">= 2.0.0",
      "role": "Imports"
    },
    {
      "package": "Hmisc",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "nlme",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "rms",
      "role": "Imports"
    },
    {
      "package": "sandwich",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "boot",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "cmprsk",
      "role": "Suggests"
    },
    {
      "package": "survival",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "parallel",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rmeta",
      "role": "Suggests"
    },
    {
      "package": "tidyverse",
      "role": "Suggests"
    }
  ],
  "_owner": "gforge",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-32",
      "n": 1
    },
    {
      "week": "2025-34",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 7,
  "_contributors": [
    {
      "user": "gforge",
      "count": 223,
      "uuid": 2198913
    }
  ],
  "_userbio": {
    "uuid": 2198913,
    "type": "user",
    "name": "Max Gordon"
  },
  "_downloads": {
    "count": 4853,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/Greg"
  },
  "_mentions": 4,
  "_devurl": "https://github.com/gforge/greg",
  "_searchresults": 190,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/Greg.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/gforge/greg",
  "_realowner": "gforge",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.2",
      "date": "2016-03-28"
    },
    {
      "version": "1.2.1",
      "date": "2018-03-20"
    },
    {
      "version": "1.2.2",
      "date": "2018-04-21"
    },
    {
      "version": "1.3",
      "date": "2019-01-07"
    },
    {
      "version": "1.3.1",
      "date": "2019-09-21"
    },
    {
      "version": "1.3.2",
      "date": "2019-11-16"
    },
    {
      "version": "1.3.3",
      "date": "2020-03-06"
    },
    {
      "version": "1.3.4",
      "date": "2020-06-25"
    },
    {
      "version": "1.4.0",
      "date": "2021-11-23"
    },
    {
      "version": "1.4.1",
      "date": "2022-08-07"
    },
    {
      "version": "2.0.0",
      "date": "2022-10-13"
    },
    {
      "version": "2.0.1",
      "date": "2022-11-16"
    },
    {
      "version": "2.0.2",
      "date": "2024-01-29"
    },
    {
      "version": "2.0.3",
      "date": "2025-08-19"
    }
  ],
  "_exports": [
    "addNonlinearity",
    "caDescribeOpts",
    "confint_robust",
    "forestplotCombineRegrObj",
    "forestplotRegrObj",
    "fpBoxSize",
    "getCrudeAndAdjustedModelData",
    "isFitCoxPH",
    "isFitLogit",
    "plotHR",
    "printCrudeAndAdjustedModel",
    "robcov_alt",
    "simpleRmsAnova",
    "timeSplitter"
  ],
  "_help": [
    {
      "page": "Greg-package",
      "title": "Regression Helper Functions",
      "topics": [
        "Greg-package",
        "Greg"
      ]
    },
    {
      "page": "addNonlinearity",
      "title": "Add a nonlinear function to the model",
      "topics": [
        "addNonlinearity",
        "addNonlinearity.negbin"
      ]
    },
    {
      "page": "caDescribeOpts",
      "title": "A function for gathering all the description options",
      "topics": [
        "caDescribeOpts"
      ]
    },
    {
      "page": "confint_robust",
      "title": "The confint function adapted for vcovHC",
      "topics": [
        "confint_robust"
      ]
    },
    {
      "page": "confint.ols",
      "title": "A 'confint' function for the 'ols'",
      "topics": [
        "confint.ols"
      ]
    },
    {
      "page": "forestplotCombineRegrObj",
      "title": "Compares different scores in different regression objects.",
      "concept": [
        "forestplot wrappers"
      ],
      "topics": [
        "forestplotCombineRegrObj"
      ]
    },
    {
      "page": "forestplotRegrObj",
      "title": "Forest plot for multiple models",
      "concept": [
        "forestplot wrappers"
      ],
      "topics": [
        "forestplotRegrObj",
        "forestplotRegrObj.coxph",
        "forestplotRegrObj.default",
        "forestplotRegrObj.glm",
        "forestplotRegrObj.list",
        "forestplotRegrObj.lm",
        "forestplotRegrObj.lrm",
        "fpBoxSize"
      ]
    },
    {
      "page": "isFitFn",
      "title": "Functions for checking regression type",
      "topics": [
        "isFitCoxPH",
        "isFitLogit"
      ]
    },
    {
      "page": "plotHR",
      "title": "Plot a spline in a Cox regression model",
      "topics": [
        "plot.plotHR",
        "plotHR",
        "print.plotHR"
      ]
    },
    {
      "page": "robcov_alt",
      "title": "Robust covariance matrix based upon the 'sandwich'-package",
      "topics": [
        "robcov_alt"
      ]
    },
    {
      "page": "tidy.rms",
      "title": "Tidy a(n) rms model object",
      "topics": [
        "tidy.rms"
      ]
    },
    {
      "page": "timeSplitter",
      "title": "A function for splitting a time according to time periods",
      "topics": [
        "timeSplitter"
      ]
    }
  ],
  "_readme": "https://github.com/gforge/greg/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "base64enc",
    "broom",
    "bslib",
    "cachem",
    "checkmate",
    "cli",
    "cluster",
    "cmprsk",
    "codetools",
    "colorspace",
    "cpp11",
    "data.table",
    "digest",
    "dplyr",
    "Epi",
    "etm",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "foreign",
    "forestplot",
    "Formula",
    "fs",
    "generics",
    "ggplot2",
    "glue",
    "Gmisc",
    "gridExtra",
    "gtable",
    "highr",
    "Hmisc",
    "htmlTable",
    "htmltools",
    "htmlwidgets",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "lubridate",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "memoise",
    "mgcv",
    "mime",
    "multcomp",
    "mvtnorm",
    "nlme",
    "nnet",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "plyr",
    "polspline",
    "purrr",
    "quantreg",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "rmarkdown",
    "rms",
    "rpart",
    "rstudioapi",
    "S7",
    "sandwich",
    "sass",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "TH.data",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "tinytex",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "XML",
    "yaml",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "timeSplitter.Rmd",
      "filename": "timeSplitter.html",
      "title": "How to use the timeSplitter",
      "author": "Max Gordon",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2015-12-26 20:23:53",
      "modified": "2022-10-13 20:35:15",
      "commits": 10
    },
    {
      "source": "printCrudeAndAdjustedModel.Rmd",
      "filename": "printCrudeAndAdjustedModel.html",
      "title": "Print crude and adjusted",
      "author": "Max Gordon",
      "engine": "knitr::rmarkdown",
      "headings": [
        "How to output crude and adjusted models",
        "Background",
        "The printCrudeAndAdjusted function",
        "Binding columns/rows",
        "Selecting column/rows using [",
        "More advanced models"
      ],
      "created": "2019-01-01 11:48:14",
      "modified": "2022-10-13 20:15:57",
      "commits": 4
    }
  ],
  "_score": 7.712951919274315,
  "_indexed": true,
  "_nocasepkg": "greg",
  "_universes": [
    "gforge"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.3",
      "date": "2026-05-30T19:56:10.000Z",
      "distro": "noble",
      "commit": "7a69b9db54f7b0e7cd6c19c347764fd103d02e9a",
      "fileid": "cc96712d6ba23ef595e96b9640cacbf15a3491343e36cd41a621c48c8029ec78",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gforge/actions/runs/26693267977"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.3",
      "date": "2026-05-30T19:56:27.000Z",
      "distro": "noble",
      "commit": "7a69b9db54f7b0e7cd6c19c347764fd103d02e9a",
      "fileid": "07b924d44794911425ec70de1c72acadcc6edf734398de00e0b18156ca570c44",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gforge/actions/runs/26693267977"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.3",
      "date": "2026-05-30T19:54:27.000Z",
      "commit": "7a69b9db54f7b0e7cd6c19c347764fd103d02e9a",
      "fileid": "accf3964c581d64cce8d2589aaca9b28134171ccc8138e54857de0b663d97e2c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gforge/actions/runs/26693267977"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.0.3",
      "date": "2026-05-30T19:54:14.000Z",
      "commit": "7a69b9db54f7b0e7cd6c19c347764fd103d02e9a",
      "fileid": "25504c5462011afb97af6161cc384f5ca2b72a40c05a93d792dcab0276aa004c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gforge/actions/runs/26693267977"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.3",
      "date": "2026-05-30T19:55:17.000Z",
      "commit": "7a69b9db54f7b0e7cd6c19c347764fd103d02e9a",
      "fileid": "d31a53522d93da0c60ec4378a359510f865a405962f3fcac1e45e4d92bb726c6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gforge/actions/runs/26693267977"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.3",
      "date": "2026-05-30T19:54:01.000Z",
      "commit": "7a69b9db54f7b0e7cd6c19c347764fd103d02e9a",
      "fileid": "cd8d3e0d21cc10ca64792f1147c523f345615429e3bbeae02cb00768127896a3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gforge/actions/runs/26693267977"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.3",
      "date": "2026-05-30T19:54:29.000Z",
      "commit": "7a69b9db54f7b0e7cd6c19c347764fd103d02e9a",
      "fileid": "d17490614d999e613614dff8d1b9c6b03a9d082851ca76a1b1209436a826d4d6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gforge/actions/runs/26693267977"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.0.3",
      "date": "2026-05-30T19:54:03.000Z",
      "commit": "7a69b9db54f7b0e7cd6c19c347764fd103d02e9a",
      "fileid": "084eebc77917607693bef0ac4a0f831b47ad51f27cf6eb0e7a7c850e5d1ddd32",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gforge/actions/runs/26693267977"
    }
  ]
}