extractPV: Function to extract p-values from a permutation test dataset

Description Usage Arguments Value

View source: R/extractPV.R

Description

Function to extract p-values from a permutation test dataset

Usage

1
extractPV(permSTAT, modelratio, trm = 100)

Arguments

permSTAT

a three dimensional array with 1. = OTUs, 2. = statistics, 3. = random permutation iterations

modelratio

1x1 scalar with the observed modelratio

trm

1x1 scalar, at which level to truncate the OR (OR>trm := trm, OR<1/trm := 1/trm)

Value

data.frame with one row including pv (permutation p.value), SElgratio (standar error based on zero-centered normal assumptions and representability from the permutation null distribution, and some central limit theorem), permmedian (the median of the permuted null distribution), modelratio (the model ratio - as specified by input)


mortenarendt/MBtransfeR documentation built on Aug. 23, 2020, 10:03 p.m.