Skip to contents

Compute Significance of a Summary Statistic

Usage

computeSignificance(
  obs,
  rnd,
  type = c("asl", "ci", "se"),
  ci = c("standard", "percentile"),
  conf.level = 0.95,
  ...
)

Arguments

obs

a numeric scalar representing the observed value of the summary statistic.

rnd

numerical vector containing the permutation/bootstrap statistics.

type

character string indicating the significance to compute. Three options are available:

asl

achieved significance level

ci

confidence interval

se

standard error

ci

character string indicating the type of confidence interval. Two options are available:

standard

the standard confidence interval

percentile

the percentile confidence interval

conf.level

numeric scalar, the desired confidence level. Used if type = "ci".

...

further arguments passed to computeASL, computeCI, or computeSE. For example, alternative for type = "asl", distribution or n for type = "ci" with ci = "standard".

Author

Alessandro Barberis