calcPW: Compute pair-wise comparisons estimates and bootstrap...

View source: R/calcPW.R

calcPWR Documentation

Compute pair-wise comparisons estimates and bootstrap statistics

Description

Calculates the mean or median sample estimates of all pair-wise differences within a factor. Can be set compute the maximum Bayes factors (MBFs) and indicate which of the comparisons are statistically significant after controlling the false discovery rate, if the number of bootstrap repetition (B) is set to greater than 0.

Usage

calcPW(data, calcStat, trim = 0.2, B, seB, method = "percT", fdr = FALSE)

Arguments

data

dataframe. Contains numeric variable named 'resp' for responses and character variable named 'group' containing factor levels.

calcStat

function olr character. Bootstrap statistic function. Functions other than mean or median used at own risk.

B

integer. Number of bootstrap samples per subgroup. If equal to zero, then the MBF is not calculated.

fdr

numeric. False discovery rate.

Value

A tibble of the comparison groups and estimates of differences in calcStat, as well as the confidence intervals and MBFs if bootstrapping was performed.


MiguelRodo/ggboot documentation built on Nov. 9, 2023, 5:45 p.m.