calcP: Calculate p-value

View source: R/calcBootEst.R

calcPR Documentation

Calculate p-value

Description

Calculate the p-value for a specific subgroup.

Usage

calcP(bootData, origStat, origSE = NULL, nullValue, altSide = NULL,
  method = "perc")

Arguments

bootData

dataframe. Must have column named bootStat with bootstrap sample statistics. If method=='percT', it must also have the column bootSE, with the bootstrap estimate standard deviation.

origStat

numeric. Original sample estimate. Required.

origSE

numeric. Original sample estimate standard error. Required if method=='percT'.

nullValue

numeric. Borderline value under the null hypothesis.

altSide

both', 'high' or 'low'. The side of the null hypothesis the alternate hypothesis is on.

Value

The p-value as a numeric vector.


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