Learn R Programming

pcadapt (version 2.2)

pval: Principal Components p-values

Description

pval computes p-values for each genetic marker, depending on the test statistics distribution.

Usage

pval(x, method, K)

Arguments

x
an output of pcadapt containing the test statistics.
method
a character string that specifies the method used to compute the p-values.

Examples

Run this code
data <- read4pcadapt("geno3pops",option="example")
x <- pcadapt(data,K=3)
pval(x,method="mahalanobis",K=3)

Run the code above in your browser using DataLab