Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

boot_compare

Compare bootstrapped distributions


Description

Not usually called directly. Included in boot_predict. Usually used in combination with A function that takes the output from summary_factorlist(..., fit_id=TRUE) and merges with any number of model dataframes, usually produced with a model wrapper followed by the fit2df() function (see examples).

Usage

boot_compare(bs.out, confint_sep = " to ", comparison = "difference",
  condense = TRUE, compare_name = NULL, digits = c(2, 3),
  ref_symbol = 1)

Arguments

bs.out

Output from boot::boot,

confint_sep

String separating lower and upper confidence interval

comparison

Either "difference" or "ratio".

condense

Logical. FALSE gives numeric values, usually for plotting. TRUE gives table for final output.

compare_name

Name to be given to comparison metric.

digits

Rounding for estimate values and p-values, default c(2,3).

ref_symbol

Reference level symbol

Value

A dataframe of first differences or ratios for boostrapped distributions of a metric of interest.

finalfit predict functions

See Also

Examples

# See boot_predict.

finalfit

Quickly Create Elegant Regression Results Tables and Plots when Modelling

v1.0.2
MIT + file LICENCE
Authors
Ewen Harrison [aut, cre], Tom Drake [aut], Riinu Ots [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.