calcPTbl: Calculate p value for a table

View source: R/calcBootEst.R

calcPTblR Documentation

Calculate p value for a table

Description

Calculate p value for each subgroup in a table

Usage

calcPTbl(bootData, origData, method, altSide, nullValue)

Arguments

bootData

dataframe. Must have character column split, defining groups, and bootStat/bootTStat, giving B bootstrap sample estimates for each group in split of statistic for which confidence interval is required.

origData

dataframe. Must have character column split, defining groups, and origStat/origTStat, giving original sample estimate of statistic for which p-value is required.

method

character. The method specified by the argument pMethod in the ggbootUV function.

altSide

"both", "low" or "high". Specifies side(s) of null hypothesis alternative hypothesis lies.

calcStat

function. Function that calculates the statistic for which a confidence interval is required.

Value

A dataframe with columns split and p.


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