R: Clinical Publication

# Clinical Publication

## Documentation for package ‘clinpubr’ version 1.4.0

- DESCRIPTION file
- User guides, package vignettes and other documentation
- Package NEWS
- Package README

## Help Pages

add_lists | Adding lists element-wise
answer_check | Check answers of multiple choice questions
baseline_table | Create a baseline table for a dataset.
break_at | Generate breaks for histogram
calculate_index | Calculate index based on conditions
calc_cindex | Calculate C-index for survival data
char_initial_cleaning | Preliminarily cleaning string vectors
check_nonnum | Check elements that are not numeric
classif_model_compare | Performance comparison of classification models
combine_files | combine multiple data files into a single data frame
combine_multichoice | Combine multi-choice columns into one
common_prefix | Get common prefix of a string vector
cut_by | Convert Numeric to Factor
data_overview | Data Overview and Quality Check
detect_outliers | Detect outliers in a numeric vector.
df_view_nonnum | Show non-numeric elements in a data frame
emp_colors | default color palette for 'clinpubr' plots
exclusion_count | Count the number of excluded samples at each step
extract_num | Extract numbers from string.
fill_with_last | Fill NA values with the last valid value
filter_rcs_predictors | Filter predictors for RCS
first_mode | Calculate the first mode
format_pval | Format p-value for publication
formula_add_covs | Add covariates to a formula
get_samples | Generate a sample of values from a vector and collapse them.
get_valid | Get one valid value from vector.
get_valid_subset | Get the subset that satisfies the missing rate condition.
get_var_types | Get variable types for baseline table
importance_plot | Importance plot
indicate_duplicates | Determine duplicate elements including their first occurrence.
interaction_plot | Plot interactions
interaction_p_value | Calculate interaction p-value
interaction_scan | Scan for interactions between variables
iqr_outlier | Mark possible outliers using different methods.
keep_by_keyword | Keep string segment by regex keyword position
mad_outlier | Mark possible outliers using different methods.
max_missing_rates | Get the maximum missing rate of rows and columns.
merge_by_range | Merge Data Frames by Exact Keys and Value Range
merge_by_substring | Merge Data Frame by String Key Matching
merge_ordered_vectors | Merging vectors while maintaining order
na2false | Replace NA values with FALSE
name2code | Generate code from string vector
na_max | Safe min and max functions that return NA if all values are NA
na_min | Safe min and max functions that return NA if all values are NA
predictor_effect_plot | Plot the effect of a predictor variable
qq_show | QQ plot
rcs_plot | Plot restricted cubic spline
regression_basic_results | Basic results of logistic or Cox regression.
regression_fit | Obtain regression results
regression_forest | Forest plot of regression results
regression_scan | Scan for significant regression predictors
replace_elements | Replacing elements in a vector
screen_data_list | Screen and Join Multi-Table Clinical Data by Expression
split_multichoice | Split multi-choice data into columns
str_match_replace | Match string and replace with corresponding value
subgroup_forest | Create subgroup forest plot.
subject_view | Get an overview of different subjects in data.
test_normality | Test normality of a numeric variable
time_roc_plot | Calculate and plot time-dependent ROC curves
to_date | Convert numerical or character date to date.
to_wide | Fast long-to-wide conversion with item selection
unit_standardize | Standardize units of numeric data.
unit_view | Generate a table of conflicting units.
unmake_names | Unmake names
value_initial_cleaning | Preliminarily cleaning string vectors
vec2code | Generate code from string vector
zscore_outlier | Mark possible outliers using different methods.