Learn R Programming

SAGx (version 1.46.0)

fp.fn: Calculation of fp and fn based on a vector of p-values

Description

Based on a vector of p-values the proportion false positive (fp) and the proportion false negative are calculated for each entry, assuming that one to be the last to be called significant. The sum of fp and fn is also calculated (errors). Furthermore, an estimate of the proportion unchanged together with the number of the entry with minimum errors.

Usage

fp.fn(ps = pvals, B = 100)

Arguments

ps
a vector of p-values
B
the number of bootstrap loops done by the function estimatep0 called by fp.fn

Value

  • A list with components
  • p0the estimated proportion unchamged
  • fpthe estimated proportion false positives
  • fnthe estimated proportion false negatives
  • Nthe number of the p-value (significance level) that gives minimum fp + fn