trials.needed: Estimate number of monte carlo trials needed to estimate...

View source: R/utils.R

trials.neededR Documentation

Estimate number of monte carlo trials needed to estimate p-value

Description

trials.needed estimates the number of monte carlo trials needed to estimate edgewise p-values

Usage

trials.needed(M, alpha, signed, missing.as.zero, mtc, how.close = 0.95)

Arguments

M

matrix: An adjacency matrix representing a network from which a backbone is is being extracted

alpha

real: significance level of hypothesis test(s)

signed

boolean: TRUE for a signed backbone, FALSE for a binary backbone

missing.as.zero

boolean: should missing edges be treated as edges with zero weight and tested for significance

mtc

string: type of Multiple Test Correction to be applied; can be any method allowed by p.adjust.

how.close

real: How close can the empirical p-value be to alpha and still be distinguishable, expressed as a proportion

Value

integer


backbone documentation built on May 29, 2024, 8:03 a.m.