Data computation / manipulation

percent_change()

Computes the percent change

clean_observations()

Clean observations

divide_by_quantile()

Divide variable based on quantiles

repeat_baseline_values()

Repeat baseline levels

bmi()

Compute body mass index (BMI)

bmi_cat()

Classify body mass index (BMI) category

Stats

center_variable()

Center variable

is_outlier()

Check whether value is outlier

r2()

Compute R squared

vif()

Variance inflation factor

loo_cv()

Leave-one-out cross-validation

Accuracy indices

accuracy()

Model accuracy

compare_accuracy()

Compare models accuracy

Element-wise

error()

Error

error_abs()

Absolute error

error_abs_pct()

Absolute percent error

error_pct()

Percent error

error_sqr()

Squared error

Average

mean_error()

Mean error

mean_error_abs()

Mean absolute error

mean_error_abs_pct()

Mean absolute percent error

mean_error_pct()

Mean percent error

mean_error_sqr()

Mean square error

mean_error_sqr_root()

Root mean square error

bias()

Bias

loa()

Limits of agreement

Plotting

plot_bland_altman()

Create a Bland-Altman plot

plot_model() plot_model_residual_fitted() plot_model_scale_location() plot_model_qq() plot_model_cooks_distance() plot_model_multicollinearity()

Plot model diagnostics

plot_scatter() plot_line() plot_hist() plot_qq()

Quick plotting

Operators

`%!in%`

Value matching

Signalling errors

Helper functions to signal errors with better messages and metadata.

abort_argument_type() abort_argument_class() abort_argument_length() abort_argument_diff_length() abort_argument_value()

Abort based on issues with function argument

abort_column_not_found()

Abort based on column not being found in a data frame

abort_no_method_for_class()

Abort method if class is not implemented

abort_package_not_installed()

Abort if required package is not installed

Percent vector class

percent() is_percent() as_percent()

percent vector

Interactive

Functions shortcuts designed to easy interactive use

lunique() lna()

Number of elements in a vector.

pa()

Print all rows of a data frame or tibble

tb()

Capture a backtrace

lt() le()

Last error

cl()

Clear the console

Create a project

create_proj()

Create a project