{
  "_id": "6a140444acfb0bcc41d38ded",
  "Package": "finalfit",
  "Type": "Package",
  "Title": "Quickly Create Elegant Regression Results Tables and Plots when\nModelling",
  "Version": "1.1.1",
  "Authors@R": "c(\nperson(given = \"Ewen\", family = \"Harrison\", role = c(\"aut\", \"cre\"), email = \"ewen.harrison@ed.ac.uk\"),\nperson(given = \"Tom\", family = \"Drake\", role = c(\"aut\")),\nperson(given = \"Riinu\", family = \"Pius\", role = c(\"aut\")))",
  "Maintainer": "Ewen Harrison <ewen.harrison@ed.ac.uk>",
  "Description": "Generate regression results tables and plots in final\nformat for publication. Explore models and export directly to\nPDF and 'Word' using 'RMarkdown'.",
  "License": "MIT + file LICENCE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "BugReports": "https://github.com/ewenharrison/finalfit/issues",
  "URL": "https://github.com/ewenharrison/finalfit",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "cmake make libicu-dev libssl-dev libx11-dev\nzlib1g-dev",
  "Repository": "https://ewenharrison.r-universe.dev",
  "Date/Publication": "2025-10-27 14:22:52 UTC",
  "RemoteUrl": "https://github.com/ewenharrison/finalfit",
  "RemoteRef": "HEAD",
  "RemoteSha": "8c6e16214d71b8a318f1c32e787139f35b7604e4",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-25 08:06:25 UTC",
    "User": "root"
  },
  "Author": "Ewen Harrison [aut, cre],\nTom Drake [aut],\nRiinu Pius [aut]",
  "MD5sum": "546beef02018512c4ff62a2d9f4231c6",
  "_user": "ewenharrison",
  "_type": "src",
  "_file": "finalfit_1.1.1.tar.gz",
  "_fileid": "a984885925943c554cb29a871ea296826e94a8aaf8853627f0b3bdd6d3bf2d70",
  "_filesize": 20082811,
  "_sha256": "a984885925943c554cb29a871ea296826e94a8aaf8853627f0b3bdd6d3bf2d70",
  "_created": "2026-05-25T08:06:25.000Z",
  "_published": "2026-05-25T08:11:47.970Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77678395183,
      "time": 258,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7194330600"
    },
    {
      "job": 77678395146,
      "time": 270,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7194333438"
    },
    {
      "job": 77678395162,
      "time": 246,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7194318381"
    },
    {
      "job": 77678395158,
      "time": 203,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7194310825"
    },
    {
      "job": 77677580127,
      "time": 384,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7194265056"
    },
    {
      "job": 77678395164,
      "time": 177,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7194310140"
    },
    {
      "job": 77678395201,
      "time": 222,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7194321796"
    },
    {
      "job": 77678395221,
      "time": 203,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7194316867"
    },
    {
      "job": 77678395310,
      "time": 218,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7194320580"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ewenharrison/actions/runs/26390094230",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/ewenharrison/finalfit",
  "_commit": {
    "id": "8c6e16214d71b8a318f1c32e787139f35b7604e4",
    "author": "ewenharrison <mail@ewenharrison.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "No more travis",
    "time": 1761574972
  },
  "_maintainer": {
    "name": "Ewen Harrison",
    "email": "ewen.harrison@ed.ac.uk"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "bdsmatrix",
      "role": "Imports"
    },
    {
      "package": "boot",
      "role": "Imports"
    },
    {
      "package": "broom",
      "role": "Imports"
    },
    {
      "package": "cowplot",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "forcats",
      "role": "Imports"
    },
    {
      "package": "GGally",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "lme4",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "mice",
      "version": ">= 3.17.0",
      "role": "Imports"
    },
    {
      "package": "pillar",
      "role": "Imports"
    },
    {
      "package": "pROC",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "cmprsk",
      "role": "Suggests"
    },
    {
      "package": "coxme",
      "role": "Suggests"
    },
    {
      "package": "Hmisc",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lmtest",
      "role": "Suggests"
    },
    {
      "package": "readr",
      "role": "Suggests"
    },
    {
      "package": "rlang",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rstan",
      "role": "Suggests"
    },
    {
      "package": "sandwich",
      "role": "Suggests"
    },
    {
      "package": "survey",
      "role": "Suggests"
    },
    {
      "package": "survminer",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    }
  ],
  "_owner": "ewenharrison",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-36",
      "n": 1
    },
    {
      "week": "2025-40",
      "n": 1
    },
    {
      "week": "2025-44",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 273,
  "_contributors": [
    {
      "user": "ewenharrison",
      "count": 418,
      "uuid": 3391394
    },
    {
      "user": "kcrt",
      "count": 1,
      "uuid": 505011
    },
    {
      "user": "marius-mather",
      "count": 1,
      "uuid": 61438033
    }
  ],
  "_userbio": {
    "uuid": 3391394,
    "type": "user",
    "name": "ewenharrison"
  },
  "_downloads": {
    "count": 3182,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/finalfit"
  },
  "_mentions": 26,
  "_devurl": "https://github.com/ewenharrison/finalfit",
  "_searchresults": 1426,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/finalfit.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ewenharrison/finalfit",
  "_realowner": "ewenharrison",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.7.8",
      "date": "2018-06-27"
    },
    {
      "version": "0.8.1",
      "date": "2018-07-17"
    },
    {
      "version": "0.8.2",
      "date": "2018-07-24"
    },
    {
      "version": "0.8.3",
      "date": "2018-07-25"
    },
    {
      "version": "0.8.4",
      "date": "2018-08-01"
    },
    {
      "version": "0.8.5",
      "date": "2018-08-27"
    },
    {
      "version": "0.8.6",
      "date": "2018-08-30"
    },
    {
      "version": "0.8.7",
      "date": "2018-09-21"
    },
    {
      "version": "0.8.8",
      "date": "2018-11-09"
    },
    {
      "version": "0.8.9",
      "date": "2018-12-18"
    },
    {
      "version": "0.9.0",
      "date": "2019-02-15"
    },
    {
      "version": "0.9.1",
      "date": "2019-03-26"
    },
    {
      "version": "0.9.2",
      "date": "2019-05-31"
    },
    {
      "version": "0.9.3",
      "date": "2019-05-31"
    },
    {
      "version": "0.9.4",
      "date": "2019-07-19"
    },
    {
      "version": "0.9.5",
      "date": "2019-09-11"
    },
    {
      "version": "0.9.6",
      "date": "2019-11-20"
    },
    {
      "version": "0.9.7",
      "date": "2019-11-23"
    },
    {
      "version": "1.0.0",
      "date": "2020-02-20"
    },
    {
      "version": "1.0.1",
      "date": "2020-04-21"
    },
    {
      "version": "1.0.2",
      "date": "2020-07-03"
    },
    {
      "version": "1.0.3",
      "date": "2021-06-11"
    },
    {
      "version": "1.0.4",
      "date": "2021-12-05"
    },
    {
      "version": "1.0.5",
      "date": "2022-08-09"
    },
    {
      "version": "1.0.6",
      "date": "2023-01-14"
    },
    {
      "version": "1.0.7",
      "date": "2023-11-16"
    },
    {
      "version": "1.0.8",
      "date": "2024-07-24"
    },
    {
      "version": "1.1.0",
      "date": "2025-09-03"
    }
  ],
  "_exports": [
    "%<>%",
    "%>%",
    "%$%",
    "boot_compare",
    "boot_predict",
    "catTestfisher",
    "check_recode",
    "coefficient_plot",
    "condense_fit",
    "coxphmulti",
    "coxphuni",
    "crrmulti",
    "crruni",
    "dependent_label",
    "extract_fit",
    "extract_labels",
    "extract_variable_label",
    "ff_column_totals",
    "ff_expand",
    "ff_formula",
    "ff_glimpse",
    "ff_interaction",
    "ff_label",
    "ff_merge",
    "ff_metrics",
    "ff_mode",
    "ff_newdata",
    "ff_parse_formula",
    "ff_percent_only",
    "ff_permute",
    "ff_plot",
    "ff_relabel",
    "ff_relabel_df",
    "ff_remove_p",
    "ff_remove_ref",
    "ff_row_totals",
    "ff_stratify_helper",
    "finalfit",
    "finalfit_column_totals",
    "finalfit_expand",
    "finalfit_formula",
    "finalfit_glimpse",
    "finalfit_interaction",
    "finalfit_label",
    "finalfit_merge",
    "finalfit_mode",
    "finalfit_newdata",
    "finalfit_percent_only",
    "finalfit_permute",
    "finalfit_plot",
    "finalfit_relabel",
    "finalfit_relabel_df",
    "finalfit_remove_p",
    "finalfit_remove_ref",
    "finalfit_row_totals",
    "finalfit.coxph",
    "finalfit.glm",
    "finalfit.lm",
    "fit2df",
    "format_n_percent",
    "glmmixed",
    "glmmulti",
    "glmmulti_boot",
    "glmuni",
    "hr_plot",
    "is.survival",
    "labels_to_column",
    "labels_to_level",
    "lmmixed",
    "lmmulti",
    "lmuni",
    "metrics_hoslem",
    "missing_compare",
    "missing_df",
    "missing_glimpse",
    "missing_pairs",
    "missing_pattern",
    "missing_plot",
    "missing_predictorMatrix",
    "or_plot",
    "p_tidy",
    "plot_title",
    "remove_intercept",
    "remove_labels",
    "rm_duplicate_labels",
    "rm_duplicates",
    "rm_empty_block",
    "round_tidy",
    "summary_df",
    "summary_factorlist",
    "summary_factorlist_stratified",
    "surv_plot",
    "svyglmmulti",
    "svyglmuni",
    "variable_type"
  ],
  "_datasets": [
    {
      "name": "colon_s",
      "title": "Chemotherapy for Stage B/C colon cancer",
      "object": "colon_s",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "rx",
        "sex",
        "age",
        "obstruct",
        "perfor",
        "adhere",
        "nodes",
        "status",
        "differ",
        "extent",
        "surg",
        "node4",
        "time",
        "sex.factor",
        "rx.factor",
        "obstruct.factor",
        "perfor.factor",
        "adhere.factor",
        "differ.factor",
        "extent.factor",
        "surg.factor",
        "node4.factor",
        "status.factor",
        "age.factor",
        "loccomp",
        "loccomp.factor",
        "time.years",
        "mort_5yr",
        "age.10",
        "mort_5yr.num",
        "hospital"
      ],
      "rows": 929,
      "table": true,
      "tojson": true
    },
    {
      "name": "wcgs",
      "title": "Western Collaborative Group Study",
      "object": "wcgs",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "age",
        "height",
        "weight",
        "sbp",
        "dbp",
        "chol",
        "personality",
        "personality_2L",
        "ncigs",
        "smoking",
        "arcus",
        "chd",
        "typechd",
        "timechd"
      ],
      "rows": 3154,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "boot_compare",
      "title": "Compare bootstrapped distributions",
      "topics": [
        "boot_compare"
      ]
    },
    {
      "page": "boot_predict",
      "title": "Bootstrap simulation for model prediction",
      "topics": [
        "boot_predict"
      ]
    },
    {
      "page": "check_recode",
      "title": "Check accurate recoding of variables",
      "topics": [
        "check_recode"
      ]
    },
    {
      "page": "coefficient_plot",
      "title": "Produce a coefficient table and plot",
      "concept": [
        "finalfit plot functions"
      ],
      "topics": [
        "coefficient_plot"
      ]
    },
    {
      "page": "colon_s",
      "title": "Chemotherapy for Stage B/C colon cancer",
      "topics": [
        "colon_s"
      ]
    },
    {
      "page": "coxphmulti",
      "title": "Cox proprotional hazards multivariable models: 'finalfit' model wrapper",
      "concept": [
        "finalfit model wrappers"
      ],
      "topics": [
        "coxphmulti"
      ]
    },
    {
      "page": "coxphuni",
      "title": "Cox proprotional hazards univariable models: 'finalfit' model wrapper",
      "concept": [
        "finalfit model wrappers"
      ],
      "topics": [
        "coxphuni"
      ]
    },
    {
      "page": "crrmulti",
      "title": "Competing risks multivariable regression: 'finalfit' model wrapper",
      "concept": [
        "finalfit model wrappers"
      ],
      "topics": [
        "crrmulti"
      ]
    },
    {
      "page": "crruni",
      "title": "Competing risks univariable regression: 'finalfit' model wrapper",
      "concept": [
        "finalfit model wrappers"
      ],
      "topics": [
        "crruni"
      ]
    },
    {
      "page": "dependent_label",
      "title": "Make a label for the dependent variable",
      "topics": [
        "dependent_label"
      ]
    },
    {
      "page": "extract_variable_label",
      "title": "Extract variable labels from dataframe",
      "topics": [
        "extract_variable_label"
      ]
    },
    {
      "page": "ff_column_totals",
      "title": "Add column totals to 'summary_factorlist()' output",
      "topics": [
        "ff_column_totals",
        "finalfit_column_totals"
      ]
    },
    {
      "page": "ff_expand",
      "title": "Summarise with mode and mean/median and expand given factors",
      "topics": [
        "ff_expand",
        "finalfit_expand"
      ]
    },
    {
      "page": "ff_formula",
      "title": "Generate formula as character string",
      "topics": [
        "ff_formula",
        "finalfit_formula"
      ]
    },
    {
      "page": "ff_glimpse",
      "title": "Descriptive statistics for dataframe",
      "topics": [
        "ff_glimpse",
        "finalfit_glimpse"
      ]
    },
    {
      "page": "ff_interaction",
      "title": "Make an interaction variable and add to dataframe",
      "topics": [
        "ff_interaction",
        "finalfit_interaction"
      ]
    },
    {
      "page": "ff_label",
      "title": "Label a variable",
      "topics": [
        "ff_label",
        "finalfit_label"
      ]
    },
    {
      "page": "ff_merge",
      "title": "Merge a 'summary_factorlist()' table with any number of model results tables.",
      "topics": [
        "ff_merge",
        "finalfit_merge"
      ]
    },
    {
      "page": "ff_metrics",
      "title": "Generate common metrics for regression model results",
      "topics": [
        "ff_metrics",
        "ff_metrics.coxph",
        "ff_metrics.coxphlist",
        "ff_metrics.glm",
        "ff_metrics.glmerMod",
        "ff_metrics.glmlist",
        "ff_metrics.lm",
        "ff_metrics.lmerMod",
        "ff_metrics.lmlist"
      ]
    },
    {
      "page": "ff_mode",
      "title": "Return the most frequent level in a factor",
      "topics": [
        "ff_mode",
        "finalfit_mode"
      ]
    },
    {
      "page": "ff_newdata",
      "title": "Generate newdata for simulations",
      "topics": [
        "ff_newdata",
        "finalfit_newdata"
      ]
    },
    {
      "page": "ff_parse_formula",
      "title": "Parse a formula to finalfit grammar",
      "topics": [
        "ff_parse_formula"
      ]
    },
    {
      "page": "ff_percent_only",
      "title": "Include only percentages for factors in 'summary_factorlist' output",
      "topics": [
        "ff_percent_only",
        "finalfit_percent_only"
      ]
    },
    {
      "page": "ff_permute",
      "title": "Permuate explanatory variables to produce multiple output tables for common regression models",
      "topics": [
        "ff_permute",
        "finalfit_permute"
      ]
    },
    {
      "page": "ff_plot",
      "title": "Produce a table and plot",
      "concept": [
        "finalfit plot functions"
      ],
      "topics": [
        "ff_plot",
        "finalfit_plot"
      ]
    },
    {
      "page": "ff_relabel",
      "title": "Relabel variables in a data frame",
      "topics": [
        "ff_relabel",
        "finalfit_relabel"
      ]
    },
    {
      "page": "ff_relabel_df",
      "title": "Relabel variables from data frame after tidyverse functions",
      "topics": [
        "ff_relabel_df",
        "finalfit_relabel_df"
      ]
    },
    {
      "page": "ff_remove_p",
      "title": "Remove p-value from output",
      "topics": [
        "ff_remove_p",
        "finalfit_remove_p"
      ]
    },
    {
      "page": "ff_remove_ref",
      "title": "Remove regression reference level row from table",
      "topics": [
        "ff_remove_ref",
        "finalfit_remove_ref"
      ]
    },
    {
      "page": "ff_row_totals",
      "title": "Add row totals to 'summary_factorlist()' output",
      "topics": [
        "ff_row_totals",
        "finalfit_row_totals"
      ]
    },
    {
      "page": "ff_stratify_helper",
      "title": "Help making stratified summary_factorlist tables",
      "topics": [
        "ff_stratify_helper"
      ]
    },
    {
      "page": "finalfit",
      "title": "Final output tables for common regression models",
      "concept": [
        "finalfit all-in-one functions"
      ],
      "topics": [
        "finalfit",
        "finalfit.coxph",
        "finalfit.glm",
        "finalfit.lm"
      ]
    },
    {
      "page": "fit2df",
      "title": "Extract model fit results to dataframe (generic): 'finalfit' model extractors",
      "concept": [
        "finalfit model extractors"
      ],
      "topics": [
        "fit2df",
        "fit2df.coxme",
        "fit2df.coxph",
        "fit2df.coxphlist",
        "fit2df.crr",
        "fit2df.crrlist",
        "fit2df.glm",
        "fit2df.glmboot",
        "fit2df.glmerMod",
        "fit2df.glmlist",
        "fit2df.lm",
        "fit2df.lmerMod",
        "fit2df.lmlist",
        "fit2df.mipo",
        "fit2df.stanfit",
        "fit2df.svyglmlist"
      ]
    },
    {
      "page": "format_n_percent",
      "title": "Format n and percent as a character",
      "topics": [
        "format_n_percent"
      ]
    },
    {
      "page": "glmmixed",
      "title": "Mixed effects binomial logistic regression models: 'finalfit' model wrapper",
      "concept": [
        "finalfit model wrappers"
      ],
      "topics": [
        "glmmixed"
      ]
    },
    {
      "page": "glmmulti",
      "title": "Binomial logistic regression multivariable models: 'finalfit' model wrapper",
      "concept": [
        "finalfit model wrappers"
      ],
      "topics": [
        "glmmulti"
      ]
    },
    {
      "page": "glmmulti_boot",
      "title": "Binomial logistic regression multivariable models with bootstrapped confidence intervals: 'finalfit' model wrapper",
      "concept": [
        "finalfit model wrappers"
      ],
      "topics": [
        "glmmulti_boot"
      ]
    },
    {
      "page": "glmuni",
      "title": "Binomial logistic regression univariable models: 'finalfit' model wrapper",
      "concept": [
        "finalfit model wrappers"
      ],
      "topics": [
        "glmuni"
      ]
    },
    {
      "page": "hr_plot",
      "title": "Produce a hazard ratio table and plot",
      "concept": [
        "finalfit plot functions"
      ],
      "topics": [
        "hr_plot"
      ]
    },
    {
      "page": "labels_to_column",
      "title": "Labels to column names",
      "topics": [
        "labels_to_column"
      ]
    },
    {
      "page": "labels_to_level",
      "title": "Labels to level",
      "topics": [
        "labels_to_level"
      ]
    },
    {
      "page": "lmmixed",
      "title": "Mixed effects linear regression models: 'finalfit' model wrapper",
      "concept": [
        "finalfit model wrappers"
      ],
      "topics": [
        "lmmixed"
      ]
    },
    {
      "page": "lmmulti",
      "title": "Linear regression multivariable models: 'finalfit' model wrapper",
      "concept": [
        "finalfit model wrappers"
      ],
      "topics": [
        "lmmulti"
      ]
    },
    {
      "page": "lmuni",
      "title": "Linear regression univariable models: 'finalfit' model wrapper",
      "concept": [
        "finalfit model wrappers"
      ],
      "topics": [
        "lmuni"
      ]
    },
    {
      "page": "metrics_hoslem",
      "title": "Hosmer-Lemeshow goodness of fit test",
      "topics": [
        "metrics_hoslem"
      ]
    },
    {
      "page": "missing_compare",
      "title": "Compare missing data",
      "topics": [
        "missing_compare"
      ]
    },
    {
      "page": "missing_glimpse",
      "title": "Summary of missing values",
      "topics": [
        "missing_glimpse"
      ]
    },
    {
      "page": "missing_pairs",
      "title": "Missing values pairs plot",
      "topics": [
        "missing_pairs"
      ]
    },
    {
      "page": "missing_pattern",
      "title": "Characterise missing data for 'finalfit' models",
      "topics": [
        "missing_pattern"
      ]
    },
    {
      "page": "missing_plot",
      "title": "Missing values occurrence plot",
      "topics": [
        "missing_plot"
      ]
    },
    {
      "page": "missing_predictorMatrix",
      "title": "Create predictorMatrix for use with mice",
      "topics": [
        "missing_predictorMatrix"
      ]
    },
    {
      "page": "or_plot",
      "title": "Produce an odds ratio table and plot",
      "concept": [
        "finalfit plot functions"
      ],
      "topics": [
        "or_plot"
      ]
    },
    {
      "page": "p_tidy",
      "title": "Round p-values but keep trailing zeros",
      "topics": [
        "p_tidy"
      ]
    },
    {
      "page": "rm_duplicates",
      "title": "Remove duplicates and replace",
      "topics": [
        "rm_duplicates"
      ]
    },
    {
      "page": "rm_empty_block",
      "title": "Remove rows where all specified variables are missing",
      "topics": [
        "rm_empty_block"
      ]
    },
    {
      "page": "round_tidy",
      "title": "Round values but keep trailing zeros",
      "topics": [
        "round_tidy"
      ]
    },
    {
      "page": "summary_df",
      "title": "Summarise with mode for factors and mean/median for numeric variables",
      "topics": [
        "summary_df"
      ]
    },
    {
      "page": "summary_factorlist",
      "title": "Summarise a set of factors (or continuous variables) by a dependent variable",
      "concept": [
        "finalfit wrappers"
      ],
      "topics": [
        "summary_factorlist"
      ]
    },
    {
      "page": "summary_factorlist_stratified",
      "title": "Summarise a set of factors (or continuous variables) by a dependent variable",
      "topics": [
        "summary_factorlist_stratified"
      ]
    },
    {
      "page": "surv_plot",
      "title": "Plot survival curves with number-at-risk table",
      "concept": [
        "finalfit plot functions"
      ],
      "topics": [
        "surv_plot"
      ]
    },
    {
      "page": "svyglmmulti",
      "title": "Multivariable survey-weighted generalised linear models",
      "concept": [
        "finalfit model wrappers"
      ],
      "topics": [
        "svyglmmulti"
      ]
    },
    {
      "page": "svyglmuni",
      "title": "Univariable survey-weighted generalised linear models",
      "concept": [
        "finalfit model wrappers"
      ],
      "topics": [
        "svyglmuni"
      ]
    },
    {
      "page": "wcgs",
      "title": "Western Collaborative Group Study",
      "topics": [
        "wcgs"
      ]
    }
  ],
  "_pkglogo": "https://github.com/ewenharrison/finalfit/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/ewenharrison/finalfit/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "bdsmatrix",
    "bit",
    "bit64",
    "boot",
    "broom",
    "cli",
    "clipr",
    "codetools",
    "cowplot",
    "cpp11",
    "crayon",
    "dplyr",
    "farver",
    "forcats",
    "foreach",
    "generics",
    "GGally",
    "ggplot2",
    "ggstats",
    "glmnet",
    "glue",
    "gtable",
    "haven",
    "hms",
    "isoband",
    "iterators",
    "jomo",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "magrittr",
    "MASS",
    "Matrix",
    "mice",
    "minqa",
    "mitml",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "ordinal",
    "pan",
    "patchwork",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "pROC",
    "progress",
    "purrr",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "Rdpack",
    "readr",
    "reformulas",
    "rlang",
    "rpart",
    "S7",
    "scales",
    "shape",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "tzdb",
    "ucminf",
    "utf8",
    "vctrs",
    "viridisLite",
    "vroom",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "all_plots_examples.Rmd",
      "filename": "all_plots_examples.html",
      "title": "All plots examples",
      "author": "Ewen Harrison",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1 Odds ratio plots",
        "1.01 Standard odds ratio plot (forest plot)",
        "1.02 Mixed effects odds ratio plot (forest plot)",
        "1.03 Plotting a subset of variables from a full model",
        "1.04 Plotting from model object",
        "1.05 Plotting univariable models",
        "1.06 Confidence interval type",
        "1.07 Remove reference levels",
        "1.08 Manually specifiy x-axis breaks",
        "1.09 Adjust table column spacing",
        "1.10 Adjust or remove dependent variable label",
        "1.11 Add dependent variable label prefix",
        "1.12 Adjust or remove dependent variable label suffix",
        "1.13 Adjust table text size",
        "1.14 Adjust title text size",
        "1.15 Add plot options",
        "1.16 Add other options",
        "2 Hazard ratio plots",
        "2.01 Standard hazard ratio plot",
        "3 Coefficient plots",
        "3.01 Standard coefficient plots",
        "4 Wrapper for all plot types",
        "5 Kaplan Meier plots",
        "5.1 Standard KM plot",
        "5.2 Adjust using options",
        "6 Missing data plots"
      ],
      "created": "2023-01-15 20:20:34",
      "modified": "2025-09-03 17:22:43",
      "commits": 4
    },
    {
      "source": "all_tables_examples.Rmd",
      "filename": "all_tables_examples.html",
      "title": "All tables examples",
      "author": "Ewen Harrison",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1 Cross tables",
        "1.01 Default",
        "1.02 Add or edit variable labels",
        "1.03 P-value for hypothesis test",
        "1.04 With Fisher's exact test",
        "1.05 Parametric explanatory variables",
        "1.06 Non-parametric explanatory variables",
        "1.07 Select specific non-parametric variables",
        "1.08 Missing values for the explanatory variables",
        "1.09 Pass missing values to statistical tests",
        "1.10 Row proportions (rather than column)",
        "1.11 Total column",
        "1.12 Row totals with missing",
        "1.13 Row totals without missing",
        "1.14 Row totals with user-specified column names",
        "1.15 Order a variable by total",
        "1.17 Add column totals",
        "1.18 Add column totals without proportion.",
        "1.19 Add column totals with user-specified row name and prefix.",
        "1.20 Label with dependent name",
        "1.21 Dependent variable with any number of factor levels supported",
        "1.22 Missing data in the dependent",
        "1.23 Directly include missing data in dependent",
        "1.24 Summarise complete cases",
        "1.25 Actively dropping missing data (and tidyverse functions that strip attributes)",
        "1.26 Explanatory variable defaults to factor when ≤5 distinct values",
        "1.27 Keep as continous variable when ≤5 distinct values",
        "1.28 Stratified crosstables",
        "1.29 Digits / decimal places",
        "1.30 Weighted tables",
        "2 Model tables with finalfit()",
        "2.01 Default",
        "2.02 Hide reference levels",
        "2.03 Model metrics",
        "2.04 Model metrics can be applied to all supported base models",
        "2.05 Reduced model",
        "2.06 Include all models",
        "2.06 Interactions",
        "2.07 Interactions: create interaction variable with two factors",
        "2.08 Dependent name",
        "2.09 Estimate name",
        "2.10 Digits / decimal places",
        "2.11 Confidence interval type",
        "2.12 Confidence interval level",
        "2.13 Confidence interval separation",
        "2.14 Robust standard errors / confidence intervals",
        "2.15 Remove p-value",
        "2.16 Mixed effects random-intercept model",
        "2.16b Mixed effects random-intercept model with univariable estimates including random effects",
        "2.17 Mixed effects random-slope model",
        "2.18 Mixed effects random-slope model directly from lme4",
        "2.19 Exclude all missing data in final model from univariable analyses",
        "2.20 Linear regression",
        "2.21 Mixed effects random-intercept linear regression",
        "2.22 Mixed effects random-slope linear regression",
        "2.23 Cox proportional hazards model (survival / time to event)",
        "2.24 Cox proportional hazards model: change dependent label",
        "3 Model tables manually using ff_merge()",
        "3.1 Basic table",
        "3.2 Complex table (all in single pipe)",
        "3.3 Other GLM models",
        "Poisson",
        "Gamma",
        "3.4 Weighted regression",
        "3.5 Using base R functions",
        "3.6 Edit table rows",
        "3.7 Base model + individual explanatory variables",
        "4 Support for complex survey structures via library(survey)",
        "4.1 Linear regression",
        "4.2 Binomial example"
      ],
      "created": "2019-02-25 15:43:17",
      "modified": "2024-07-23 20:01:20",
      "commits": 19
    },
    {
      "source": "bootstrap.Rmd",
      "filename": "bootstrap.html",
      "title": "Bootstrap simulation for model prediction",
      "author": "Ewen Harrison",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Create new dataframe of explanatory variable levels",
        "ff_expand() for creating new data frame",
        "Run bootstrap simulations of model predictions",
        "Output to Word, PDF, and html via RMarkdown",
        "Make comparisons",
        "What is not included?",
        "Plotting"
      ],
      "created": "2018-09-11 10:28:18",
      "modified": "2024-07-23 20:01:20",
      "commits": 7
    },
    {
      "source": "export.Rmd",
      "filename": "export.html",
      "title": "Exporting tables and plots",
      "author": "Ewen Harrison",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Explore data",
        "Demographics table",
        "Logistic regression table",
        "Odds ratio plot",
        "MS Word via knitr/R Markdown",
        "Create Word template file",
        "PDF via knitr/R Markdown"
      ],
      "created": "2018-09-11 10:28:18",
      "modified": "2019-04-24 12:34:07",
      "commits": 5
    },
    {
      "source": "finalfit.Rmd",
      "filename": "finalfit.html",
      "title": "Getting started",
      "author": "Ewen Harrison",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Installation and Documentation",
        "Main Features",
        "1. Summarise variables/factors by a categorical variable",
        "2. Summarise regression model results in final table format",
        "Logistic regression: glm()",
        "Logistic regression with reduced model: glm()",
        "Mixed effects logistic regression: lme4::glmer()",
        "Cox proportional hazards: survival::coxph()",
        "Add common model metrics to output",
        "Combine multiple models into single table",
        "Bayesian logistic regression: with stan",
        "3. Summarise regression model results in plot",
        "OR plot",
        "HR plot",
        "Kaplan-Meier survival plots",
        "Notes"
      ],
      "created": "2018-09-10 13:19:05",
      "modified": "2021-06-18 13:50:47",
      "commits": 7
    },
    {
      "source": "missing.Rmd",
      "filename": "missing.html",
      "title": "Missing data",
      "author": "Ewen Harrison",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Some confusing terminology",
        "Missing completely at random (MCAR)",
        "Missing at random (MAR)",
        "Missing not at random (MNAR)",
        "1. Ensure your data are coded correctly: ff_glimpse",
        "Example scenario",
        "2. Identify missing values in each variable: missing_plot",
        "3. Look for patterns of missingness: missing_pattern",
        "Make sure you include missing data in demographics tables",
        "4. Check for associations between missing and observed data: missing_pairs | missing_compare",
        "For those who like an omnibus test",
        "5. Decide how to handle missing data",
        "MCAR, MAR, or MNAR",
        "MCAR vs MAR",
        "Common solution",
        "Other considerations",
        "MNAR vs MAR",
        "Where to next"
      ],
      "created": "2018-09-11 10:28:18",
      "modified": "2023-11-06 16:40:04",
      "commits": 9
    },
    {
      "source": "data_prep.Rmd",
      "filename": "data_prep.html",
      "title": "Preparing data for finalfit",
      "author": "Ewen Harrison",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Read data",
        "Column types",
        "Continuous data",
        "Categorical data",
        "Dates and times",
        "Check data",
        "Specify factors"
      ],
      "created": "2019-02-15 20:20:47",
      "modified": "2019-02-15 22:56:51",
      "commits": 2
    },
    {
      "source": "survival.Rmd",
      "filename": "survival.html",
      "title": "Time-to-event (Survival)",
      "author": "Ewen Harrison",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Background",
        "Installation",
        "Dataset",
        "Get data and check",
        "Death status",
        "Time and censoring",
        "Recode",
        "Kaplan-Meier survival estimator",
        "KM analysis for whole cohort",
        "Model",
        "Life table",
        "Kaplan Meier plot",
        "Cox-proportional hazards regression",
        "Univariable and multivariable models",
        "Reduced model",
        "Testing for proportional hazards",
        "Stratified models",
        "Correlated groups of observations",
        "Hazard ratio plot",
        "Competing risks regression",
        "Summary"
      ],
      "created": "2019-07-16 20:25:54",
      "modified": "2020-01-29 19:55:24",
      "commits": 3
    }
  ],
  "_score": 11.950314844298434,
  "_indexed": true,
  "_nocasepkg": "finalfit",
  "_universes": [
    "ewenharrison"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-05-25T08:09:43.000Z",
      "distro": "noble",
      "commit": "8c6e16214d71b8a318f1c32e787139f35b7604e4",
      "fileid": "b6f3762c5bb02d645ec55cf854a371cd1154824d2d98e2238be179c6f60cafa5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ewenharrison/actions/runs/26390094230"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-05-25T08:09:52.000Z",
      "distro": "noble",
      "commit": "8c6e16214d71b8a318f1c32e787139f35b7604e4",
      "fileid": "2b5399edb3996bd74a77b370cf25983a7ef01a3e0a634395fe63904b13fd64a8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ewenharrison/actions/runs/26390094230"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-05-25T08:09:22.000Z",
      "commit": "8c6e16214d71b8a318f1c32e787139f35b7604e4",
      "fileid": "5514da2dd7e2a8fe32baa1ca10ff3fa53acf9b3790ba8184ab3295ece141b9d0",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ewenharrison/actions/runs/26390094230"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-05-25T08:08:53.000Z",
      "commit": "8c6e16214d71b8a318f1c32e787139f35b7604e4",
      "fileid": "5d81af9bb6975aaefc23562d7c76c6fb2da48fc11c8e114d61dcde2e823b4ea8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ewenharrison/actions/runs/26390094230"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.1",
      "date": "2026-05-25T08:09:54.000Z",
      "commit": "8c6e16214d71b8a318f1c32e787139f35b7604e4",
      "fileid": "eea241dbd13d103387e0b1743010f6b81567cfd11ea69bd76b4e40b75c4f89e1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ewenharrison/actions/runs/26390094230"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-05-25T08:08:36.000Z",
      "commit": "8c6e16214d71b8a318f1c32e787139f35b7604e4",
      "fileid": "269fca5e5a674a1f443051eb1d4b29c65070330431ba1b84295a198bba3e9d98",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ewenharrison/actions/runs/26390094230"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-05-25T08:08:22.000Z",
      "commit": "8c6e16214d71b8a318f1c32e787139f35b7604e4",
      "fileid": "30c60554c87f289ca0bfc709d949d121ec4f6caa13aa165f054e22a838b4212e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ewenharrison/actions/runs/26390094230"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-05-25T08:08:35.000Z",
      "commit": "8c6e16214d71b8a318f1c32e787139f35b7604e4",
      "fileid": "b15f2bf98f3b8afdda47a524e7fe9eebcb016247b121c0582be74ddcd1ee55e8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ewenharrison/actions/runs/26390094230"
    }
  ]
}