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

Description Usage Arguments Value Author(s)

View source: R/fp.fn.r

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

1
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

p0

the estimated proportion unchamged

fp

the estimated proportion false positives

fn

the estimated proportion false negatives

N

the number of the p-value (significance level) that gives minimum fp + fn

Author(s)

Per Broberg


SAGx documentation built on Nov. 8, 2020, 8:18 p.m.