Given a matrix of observations, computes p-values for out of range features.
Source:R/pvalues.R
ecdf_pvals.Rd
For every observation the function will compute it's two-sided p-value
based on stats::ecdf()
. This will tell you how unlikely is it to observe
such a value given the reference distribution.Then it will use Holm's method to correct
p-values for every observation and return number of significantly
out-of-range features.
Arguments
- obs
a matrix of observation, where every column is a variable and every row is an observation
- reference
either a data.frame with reference variable distributions or a list of stats::ecdf functions computed based on reference distribution. If
NULL
, cd8ip_features_distribution is used.
Value
a data.frame of p-values