runCutoff: Calculate a theta Cutoff

View source: R/2c-propd-experimental.R

runCutoffR Documentation

Calculate a theta Cutoff

Description

This function uses the F distribution to calculate a cutoff of theta for a p-value given by the pval argument.

Usage

runCutoff(object, pval = 0.05, fdr = FALSE)

Arguments

object

A propd object.

pval

A p-value at which to calculate a theta cutoff.

fdr

A boolean. Toggles whether to calculate the theta cutoff for an FDR-adjusted p-value.

Details

If the argument fdr = TRUE, this function returns the empiric cutoff that corresponds to the FDR-adjusted p-value stored in the @results$FDR slot.

Value

A cutoff of theta from [0, 1].


tpq/propr documentation built on April 21, 2024, 12:50 p.m.