Package: finalfit 1.0.8

Ewen Harrison

finalfit: Quickly Create Elegant Regression Results Tables and Plots when Modelling

Generate regression results tables and plots in final format for publication. Explore models and export directly to PDF and 'Word' using 'RMarkdown'.

Authors:Ewen Harrison [aut, cre], Tom Drake [aut], Riinu Pius [aut]

finalfit_1.0.8.tar.gz
finalfit_1.0.8.zip(r-4.5)finalfit_1.0.8.zip(r-4.4)finalfit_1.0.8.zip(r-4.3)
finalfit_1.0.8.tgz(r-4.4-any)finalfit_1.0.8.tgz(r-4.3-any)
finalfit_1.0.8.tar.gz(r-4.5-noble)finalfit_1.0.8.tar.gz(r-4.4-noble)
finalfit_1.0.8.tgz(r-4.4-emscripten)finalfit_1.0.8.tgz(r-4.3-emscripten)
finalfit.pdf |finalfit.html
finalfit/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/ewenharrison/finalfit/issues

Datasets:
  • colon_s - Chemotherapy for Stage B/C colon cancer
  • wcgs - Western Collaborative Group Study

On CRAN:

11.53 score 266 stars 912 scripts 4.4k downloads 26 mentions 95 exports 78 dependencies

Last updated 3 months agofrom:87bb96da11. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 19 2024
R-4.5-winNOTENov 19 2024
R-4.5-linuxNOTENov 19 2024
R-4.4-winNOTENov 19 2024
R-4.4-macNOTENov 19 2024
R-4.3-winNOTENov 19 2024
R-4.3-macNOTENov 19 2024

Exports:%<>%%>%%$%boot_compareboot_predictcatTestfishercheck_recodecoefficient_plotcondense_fitcoxphmulticoxphunicrrmulticrrunidependent_labelextract_fitextract_labelsextract_variable_labelff_column_totalsff_expandff_formulaff_glimpseff_interactionff_labelff_mergeff_metricsff_modeff_newdataff_parse_formulaff_percent_onlyff_permuteff_plotff_relabelff_relabel_dfff_remove_pff_remove_refff_row_totalsff_stratify_helperfinalfitfinalfit_column_totalsfinalfit_expandfinalfit_formulafinalfit_glimpsefinalfit_interactionfinalfit_labelfinalfit_mergefinalfit_modefinalfit_newdatafinalfit_percent_onlyfinalfit_permutefinalfit_plotfinalfit_relabelfinalfit_relabel_dffinalfit_remove_pfinalfit_remove_reffinalfit_row_totalsfinalfit.coxphfinalfit.glmfinalfit.lmfit2dfformat_n_percentglmmixedglmmultiglmmulti_bootglmunihr_plotis.survivallabels_to_columnlabels_to_levellmmixedlmmultilmunimetrics_hoslemmissing_comparemissing_dfmissing_glimpsemissing_pairsmissing_patternmissing_plotmissing_predictorMatrixor_plotp_tidyplot_titleremove_interceptremove_labelsrm_duplicate_labelsrm_duplicatesrm_empty_blockround_tidysummary_dfsummary_factorlistsummary_factorlist_stratifiedsurv_plotsvyglmmultisvyglmunivariable_type

Dependencies:backportsbdsmatrixbitbit64bootbroomclicliprcodetoolscolorspacecpp11crayondplyrfansifarverforcatsforeachgenericsGGallyggplot2ggstatsglmnetgluegridExtragtablehavenhmsisobanditeratorsjomolabelinglatticelifecyclelme4magrittrMASSMatrixmgcvmiceminqamitmlmunsellnlmenloptrnnetnumDerivordinalpanpatchworkpillarpkgconfigplyrprettyunitspROCprogresspurrrR6RColorBrewerRcppRcppEigenreadrrlangrpartscalesshapestringistringrsurvivaltibbletidyrtidyselecttzdbucminfutf8vctrsviridisLitevroomwithr

All plots examples

Rendered fromall_plots_examples.Rmdusingknitr::rmarkdownon Nov 19 2024.

Last update: 2023-02-02
Started: 2023-01-15

All tables examples

Rendered fromall_tables_examples.Rmdusingknitr::rmarkdownon Nov 19 2024.

Last update: 2024-07-23
Started: 2019-02-25

Bootstrap simulation for model prediction

Rendered frombootstrap.Rmdusingknitr::rmarkdownon Nov 19 2024.

Last update: 2024-07-23
Started: 2018-09-11

Exporting tables and plots

Rendered fromexport.Rmdusingknitr::rmarkdownon Nov 19 2024.

Last update: 2019-04-24
Started: 2018-09-11

Getting started

Rendered fromfinalfit.Rmdusingknitr::rmarkdownon Nov 19 2024.

Last update: 2021-06-18
Started: 2018-09-10

Missing data

Rendered frommissing.Rmdusingknitr::rmarkdownon Nov 19 2024.

Last update: 2023-11-06
Started: 2018-09-11

Preparing data for finalfit

Rendered fromdata_prep.Rmdusingknitr::rmarkdownon Nov 19 2024.

Last update: 2019-02-15
Started: 2019-02-15

Time-to-event (Survival)

Rendered fromsurvival.Rmdusingknitr::rmarkdownon Nov 19 2024.

Last update: 2020-01-29
Started: 2019-07-16

Readme and manuals

Help Manual

Help pageTopics
finalfit: Quickly create elegant final results tables and plots when modelling.finalfit-package
Compare bootstrapped distributionsboot_compare
Bootstrap simulation for model predictionboot_predict
Check accurate recoding of variablescheck_recode
Produce a coefficient table and plotcoefficient_plot
Chemotherapy for Stage B/C colon cancercolon_s
Cox proprotional hazards multivariable models: 'finalfit' model wrappercoxphmulti
Cox proprotional hazards univariable models: 'finalfit' model wrappercoxphuni
Competing risks multivariable regression: 'finalfit' model wrappercrrmulti
Competing risks univariable regression: 'finalfit' model wrappercrruni
Make a label for the dependent variabledependent_label
Extract variable labels from dataframeextract_variable_label
Add column totals to 'summary_factorlist()' outputff_column_totals finalfit_column_totals
Summarise with mode and mean/median and expand given factorsff_expand finalfit_expand
Generate formula as character stringff_formula finalfit_formula
Descriptive statistics for dataframeff_glimpse finalfit_glimpse
Make an interaction variable and add to dataframeff_interaction finalfit_interaction
Label a variableff_label finalfit_label
Merge a 'summary_factorlist()' table with any number of model results tables.ff_merge finalfit_merge
Generate common metrics for regression model resultsff_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
Return the most frequent level in a factorff_mode finalfit_mode
Generate newdata for simulationsff_newdata finalfit_newdata
Parse a formula to finalfit grammarff_parse_formula
Include only percentages for factors in 'summary_factorlist' outputff_percent_only finalfit_percent_only
Permuate explanatory variables to produce multiple output tables for common regression modelsff_permute finalfit_permute
Produce a table and plotff_plot finalfit_plot
Relabel variables in a data frameff_relabel finalfit_relabel
Relabel variables from data frame after tidyverse functionsff_relabel_df finalfit_relabel_df
Remove p-value from outputff_remove_p finalfit_remove_p
Remove regression reference level row from tableff_remove_ref finalfit_remove_ref
Add row totals to 'summary_factorlist()' outputff_row_totals finalfit_row_totals
Help making stratified summary_factorlist tablesff_stratify_helper
Final output tables for common regression modelsfinalfit finalfit.coxph finalfit.glm finalfit.lm
Extract model fit results to dataframe (generic): 'finalfit' model extractorsfit2df 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
Format n and percent as a characterformat_n_percent
Mixed effects binomial logistic regression models: 'finalfit' model wrapperglmmixed
Binomial logistic regression multivariable models: 'finalfit' model wrapperglmmulti
Binomial logistic regression multivariable models with bootstrapped confidence intervals: 'finalfit' model wrapperglmmulti_boot
Binomial logistic regression univariable models: 'finalfit' model wrapperglmuni
Produce a hazard ratio table and plothr_plot
Labels to column nameslabels_to_column
Labels to levellabels_to_level
Mixed effects linear regression models: 'finalfit' model wrapperlmmixed
Linear regression multivariable models: 'finalfit' model wrapperlmmulti
Linear regression univariable models: 'finalfit' model wrapperlmuni
Hosmer-Lemeshow goodness of fit testmetrics_hoslem
Compare missing datamissing_compare
Summary of missing valuesmissing_glimpse
Missing values pairs plotmissing_pairs
Characterise missing data for 'finalfit' modelsmissing_pattern
Missing values occurrence plotmissing_plot
Create predictorMatrix for use with micemissing_predictorMatrix
Produce an odds ratio table and plotor_plot
Round p-values but keep trailing zerosp_tidy
Remove duplicates and replacerm_duplicates
Remove rows where all specified variables are missingrm_empty_block
Round values but keep trailing zerosround_tidy
Summarise with mode for factors and mean/median for numeric variablessummary_df
Summarise a set of factors (or continuous variables) by a dependent variablesummary_factorlist
Summarise a set of factors (or continuous variables) by a dependent variablesummary_factorlist_stratified
Plot survival curves with number-at-risk tablesurv_plot
Multivariable survey-weighted generalised linear modelssvyglmmulti
Univariable survey-weighted generalised linear modelssvyglmuni
Western Collaborative Group Studywcgs