Skip to contents

This function calculates p-values based on the provided true statistics and null statistics lists. It supports two methods for p-value calculation: 'standard' and 'split_pos_neg'.

Usage

calculate_pvals(
  statList.true,
  statList.null,
  method = c("standard", "split_pos_neg")
)

Arguments

statList.true

A named list of true statistics.

statList.null

A named list of null statistics corresponding to the true statistics.

method

The method to be used for p-value calculation. Either 'standard' or 'split_pos_neg'. Default is 'standard'.

Value

A list of calculated p-values.