fp.fn {SAGx}R Documentation

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

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


[Package SAGx version 1.7.1 Index]