Package: clinpubr 1.4.4

clinpubr: Clinical Publication

Accelerate the process from clinical data to medical publication, including clinical data cleaning, significant result screening, and the generation of publish-ready tables and figures.

Authors:Yue Niu [aut, cre, cph], Keyun Wang [aut]

clinpubr_1.4.4.tar.gz
clinpubr_1.4.4.zip(r-4.7-x86_64)clinpubr_1.4.4.zip(r-4.7-arm64)clinpubr_1.4.4.zip(r-4.6-x86_64)clinpubr_1.4.4.zip(r-4.6-arm64)clinpubr_1.4.4.zip(r-4.5-x86_64)
clinpubr_1.4.4.tgz(r-4.6-x86_64)clinpubr_1.4.4.tgz(r-4.6-arm64)clinpubr_1.4.4.tgz(r-4.5-x86_64)clinpubr_1.4.4.tgz(r-4.5-arm64)
clinpubr_1.4.4.tar.gz(r-4.7-arm64)clinpubr_1.4.4.tar.gz(r-4.7-x86_64)clinpubr_1.4.4.tar.gz(r-4.6-arm64)clinpubr_1.4.4.tar.gz(r-4.6-x86_64)
clinpubr_1.4.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
clinpubr/json (API)

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

Bug tracker:https://github.com/yotasama/clinpubr/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

6.45 score 2 stars 21 scripts 712 downloads 72 exports 159 dependencies

Last updated from:511edb852f. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK226
linux-devel-x86_64OK285
source / vignettesOK331
linux-release-arm64OK280
linux-release-x86_64OK277
macos-release-arm64OK323
macos-release-x86_64OK447
macos-oldrel-arm64OK304
macos-oldrel-x86_64OK342
windows-devel-arm64OK440
windows-devel-x86_64OK261
windows-release-arm64OK461
windows-release-x86_64OK241
windows-oldrel-x86_64OK240
wasm-releaseOK162

Exports:add_listsanswer_checkauto_encoding_repairbaseline_tablebreak_atcalc_cindexcalculate_indexchar_initial_cleaningcheck_nonnumclassif_model_comparecombine_filescombine_multichoicecommon_prefixcut_bydata_overviewdetect_outliersdf_view_nonnumemp_colorsexclusion_countextract_historyextract_numfill_with_lastfilter_rcs_predictorsfirst_modeformat_pvalformula_add_covsget_samplesget_validget_valid_subsetget_var_typesgroup_by_rangegroup_by_range_cppimportance_plotindicate_duplicatesinteraction_p_valueinteraction_plotinteraction_scaniqr_outlierkeep_by_keywordmad_outliermax_missing_ratesmerge_by_rangemerge_by_substringmerge_ordered_vectorsna_maxna_minna2falsename2codepredictor_effect_plotqq_showrcs_plotregression_basic_resultsregression_fitregression_forestregression_scanreplace_elementsscreen_data_listsplit_multichoicestr_match_replacesubgroup_forestsubject_viewtest_normalitytheme_pubtime_roc_plotto_dateto_wideunit_standardizeunit_viewunmake_namesvalue_initial_cleaningvec2codezscore_outlier

Dependencies:abindaskpassbackportsbase64encbitbit64bootbroombslibcachemcarcarDatacellrangercheckmateclassclicliprclustercodetoolscolorspacecorrplotcowplotcpp11crayoncurldata.tableDerivDescToolsdigestdoBydplyre1071evaluateExactexactRankTestsexpmfarverfastmapfBasicsfontawesomeforcatsforecastforeignforestploterFormulafracdifffsgenericsggplot2ggpubrggrepelggsciggsignifggtextgldgluegridExtragridtextgssgtablehavenhighrHmischmshtmlTablehtmltoolshtmlwidgetshttrisobandjpegjquerylibjsonliteknitrlabelinglatticelifecyclelitedownlme4lmomlmtestmagrittrmarkdownMASSMatrixMatrixModelsmaxstatmemoisemgcvmimeminqamodelrmultcompmvtnormnlmenloptrnnetnumDerivopensslpbkrtestpillarpkgconfigpngpolsplinepolynomprettyunitsprogressproxypurrrquantregR6rappdirsrbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreadrreadxlreformulasrematchrlangrmarkdownrmsrootSolverpartrstatixrstudioapiS7sandwichsassscalesSparseMspatialstablediststringistringrsurvivalsurvminersysTH.datatibbletidyrtidyselecttimeDatetimeSeriestinytabletinytextzdburcautf8vctrsviridisLitevroomwithrxfunxml2yamlzoo

Regression Analysis and Visualization
Introduction | Data Preparation | Regression Scan | Cox Proportional Hazards Model | Logistic Regression Scan | Comprehensive Regression Results | Cox Model with Multiple Specifications | Logistic Model with Clinical Cut-points | Quantile-Based Categories | Forest Plots | Univariate Forest Plot | Multivariate Forest Plot | Customizing Forest Plots | Predictor Effect Visualization | Predictor Effect Plot | RCS Plots | Customized RCS Plot | Subgroup Analysis | Scanning for Interactions | Visualizing Interactions | Subgroup Forest Plot | Summary

Last update: 2026-11-20
Started: 2026-04-06

Data Cleaning and Preparation
Introduction | Creating Realistic Messy Lab Data | Step 1: Data Overview | Step 2: Format Cleaning | 2.1 Checking for Non-numeric Values | 2.2 Extracting Numeric Values | 2.3 Date Conversion | 2.4 Update Data for Next Steps | Step 3: Unit Standardization | Step 4: Outlier Detection | Handling Outliers | Step 5: Missing Value Handling | Step 6: Data Transformation | Creating Clinical Categories | Longitudinal View Example | Complete Cleaning Pipeline | Summary | Key Principles

Last update: 2026-11-02
Started: 2026-04-06

Advanced Data Operations
Introduction | Cohort Screening with Exclusion Tracking | Data Merging Strategies | Merge by Substring Matching | Merge by Range (Time-Based Matching) | Data Transformation | Long to Wide Format | Multi-Choice Data | Utility Functions | String Manipulation | List and Data Frame Operations | Multi-Table Cohort Screening | Scenario: Building a Diabetes Cohort | Screen and Filter | Review Filtered Data | Joined Output | Summary

Last update: 2026-05-24
Started: 2026-04-06

Creating Baseline Characteristics Tables
Introduction | Loading and Preparing Data | Automatic Variable Type Determination | Customizing Classification | Creating Baseline Tables | Basic Baseline Table | Multi-Group Comparisons | Customizing the Table | Missing Data Summary | Manual Override | Saving Results | Complete Workflow | Summary | Key Functions | Best Practices

Last update: 2026-05-24
Started: 2026-04-06

Model Evaluation and Comparison
Introduction | Preparing Data | Model Comparison | Visualization | Time-Dependent ROC Analysis | C-Index | Variable Importance | Summary | Key Functions | Evaluation Checklist

Last update: 2026-05-24
Started: 2026-04-06

Readme and manuals

Help Manual

Help pageTopics
Adding lists element-wiseadd_lists
Check answers of multiple choice questionsanswer_check
Create a baseline table for a dataset.baseline_table
Generate breaks for histogrambreak_at
Calculate C-index for survival datacalc_cindex
Calculate index based on conditionscalculate_index
Check elements that are not numericcheck_nonnum
Performance comparison of classification modelsclassif_model_compare
combine multiple data files into a single data framecombine_files
Combine multi-choice columns into onecombine_multichoice
Get common prefix of a string vectorcommon_prefix
Convert Numeric to Factorcut_by
Data Overview and Quality Checkdata_overview
Detect outliers in a numeric vector.detect_outliers
Show non-numeric elements in a data framedf_view_nonnum
default color palette for 'clinpubr' plotsemp_colors
Count the number of excluded samples at each stepexclusion_count
Extract Medical History from Clinical Textextract_history
Extract numbers from string.extract_num
Fill NA values with the last valid valuefill_with_last
Filter predictors for RCSfilter_rcs_predictors
Calculate the first modefirst_mode
Format p-value for publicationformat_pval
Add covariates to a formulaformula_add_covs
Generate a sample of values from a vector and collapse them.get_samples
Get one valid value from vector.get_valid
Get the subset that satisfies the missing rate condition.get_valid_subset
Get variable types for baseline tableget_var_types
Group Sorted Vector by Rangegroup_by_range
Group Sorted Vector by Rangegroup_by_range_cpp
Importance plotimportance_plot
Determine duplicate elements including their first occurrence.indicate_duplicates
Calculate interaction p-valueinteraction_p_value
Plot interactionsinteraction_plot
Scan for interactions between variablesinteraction_scan
Keep string segment by regex keyword positionkeep_by_keyword
Mark possible outliers using different methods.iqr_outlier mad_outlier zscore_outlier
Get the maximum missing rate of rows and columns.max_missing_rates
Merge Data Frames by Exact Keys and Value Rangemerge_by_range
Merge Data Frame by String Key Matchingmerge_by_substring
Merging vectors while maintaining ordermerge_ordered_vectors
Vote-based Ordered Vector Merge (C++ core)mov_sort_cpp
Safe min and max functions that return NA if all values are NAna_max na_min
Replace NA values with FALSEna2false
Plot the effect of a predictor variablepredictor_effect_plot
QQ plotqq_show
Plot restricted cubic splinercs_plot
Basic results of logistic or Cox regression.regression_basic_results
Obtain regression resultsregression_fit
Forest plot of regression resultsregression_forest
Scan for significant regression predictorsregression_scan
Replacing elements in a vectorreplace_elements
Screen and Join Multi-Table Clinical Data by Expressionscreen_data_list
Split multi-choice data into columnssplit_multichoice
Match string and replace with corresponding valuestr_match_replace
Create subgroup forest plot.subgroup_forest
Get an overview of different subjects in data.subject_view
Test normality of a numeric variabletest_normality
Common publication-ready theme for 'clinpubr' plotstheme_pub
Tidy method for 'rms' model fitstidy.rms
Calculate and plot time-dependent ROC curvestime_roc_plot
Convert numerical or character date to date.to_date
Fast long-to-wide conversion with item selectionto_wide
Standardize units of numeric data.unit_standardize
Generate a table of conflicting units.unit_view
Unmake namesunmake_names
Preliminarily cleaning string vectorschar_initial_cleaning value_initial_cleaning
Generate code from string vectorname2code vec2code