pvals_singleton: Calculate p-values against a single variable.

View source: R/backend.R

pvals_singletonR Documentation

Calculate p-values against a single variable.

Description

Given a node return the p-values for the opposite side for the correlations to this node. This is supposed to be a special case of pvals (with a singleton set) but it is more faster and accurate.

Usage

pvals_singleton(bk, indx, thresh.alpha = 1)

## S3 method for class 'perm'
pvals_singleton(bk, indx, thresh.alpha = 1)

Arguments

bk

An object of class backend

indx

Either an X or Y indices (using global numbering).

thresh.alpha

We are only interested in p-values less than thresh.alpha. So the method free to return NA for pvalues > thresh.alpha if it helps with optimization.

Value

The result is a vector of p-values of length ncol(X) or ncol(Y) depending on whether indx is from Y or X respectively.

Methods (by class)

  • perm: implementation for the perm class


miheerdew/cbce documentation built on Aug. 28, 2023, 2:18 p.m.