AF_combine: AF Combination of P-values

Description Usage Arguments Value

View source: R/AF_combine.R

Description

This function combines p-values using adaptive Fisher method.

Usage

1
AF_combine(p, weight = 1, log = TRUE)

Arguments

p

P-values to be combined. A matrix with dimenstions K by B. If an object of p-values from perm.mar.cov() is used, K is the number of OTUs, and B is the number of permutataion plus 1. The first column is observed marginal p-values, and the rest columns are p-values for permutation.

weight

Weights given to the p-values.

log

Indicator of whether p-values are on the log scale.

Value

A list containing the following elements:

pvalue

P-value of AF statistic for observed sample (the first element) and all permuted samples.

which.selected

The index of features to be selected.


songbiostat/MiAF documentation built on Feb. 18, 2022, 10:29 p.m.