Learn R Programming

gausscov (version 0.1.8)

fnfp: Estimates the number of false positives for given dimensions (n,k) and given order statistics nu

Description

Interpolates using nufp or simulates the number of false positives for given dimensions (n,k) and given order statistics nu

Usage

fnfp(n,k,p0,nu,nufp,gr=F,nsim=0,kmx=0,idum=1)

Value

enfp Estimated number of false positives.

mnfp Mean number of false positives when simulating.

hist Histogram of number of false positives when simulating

Arguments

n

The dimension of dependent variable

k

The number of covariates

p0

Cut-off P-value

nu

The order statistic

gr

Logical, if TRUE then p0<-p0/k as is the default for graphs

nufp

Requires a data set nufp.rda of previous simulations

nsim

Number of simulations

kmx

Maximum number of selected covariates, must be larger than nu, for example nu+10

idum

Seed for the random number generator

Examples

Run this code
a<-fnfp(100,24,0.01,1:5,nufp,nsim=1000,kmx=10)

Run the code above in your browser using DataLab