Learn R Programming

gausscov (version 1.1.5)

simgpval: Simulates Gaussian P-values

Description

Simulates Gaussian P-values

Usage

simgpval(y,x,i,nsim,qq=-1,plt=TRUE)

Value

pvg P-value of x_i and relative frequency

Arguments

y

Dependent variable

x

Covariates

i

The chosen covariate

nsim

The number of simulations

qq

The total number of covariates available

plt

Logical, if TRUE the F P-values of the Gaussian covariates are ordered and plotted

Examples

Run this code
data(snspt)
snspt<-matrix(snspt,nrow=3253,ncol=1)
a<-flag(snspt,3253,1,12)
simgpval(a[[1]],a[[2]],7,10,plt=FALSE)

Run the code above in your browser using DataLab