Learn R Programming

gausscov (version 0.1.9)

simgpval: Simulates Gaussian P-values

Description

Simulates Gaussian P-values

Usage

simgpval(y,x,i,nsim, plt=TRUE)

Value

pvg P-value of x_i and relative frequency

Arguments

y

Dependent variable

x

Covariates

i

The chosen covariate

nsim

Number of simulations

plt

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

Examples

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

Run the code above in your browser using DataLab