Learn R Programming

cati (version 0.99.3)

Pval: Calcul of p-value for object of class Tstats, ComIndex, ComIndexMulti and listofindex

Description

Calcul of p-value for object of class Tstats, ComIndex, ComIndexMulti and listofindex. This test equates to finding the quantile in exp in which obs would be found (under a one-tailed test).

Usage

Pval(x, na.rm = TRUE)

Arguments

x

An object of class Tstats, ComIndex, ComIndexMulti or listofindex.

na.rm

A logical value indicating whether NA values should be stripped before the computation proceeds.

Value

A list of p-value for each metrics, traits and grouping if needed (e.g. sites)

Examples

Run this code
# NOT RUN {
data(finch.ind)
res.finch <- Tstats(traits.finch, ind.plot = ind.plot.finch, 
	sp = sp.finch, nperm = 9, print = FALSE)
  
# }
# NOT RUN {
    Pval(res.finch)
  
# }

Run the code above in your browser using DataLab