chisq_conditional_ncp_mle: Compute the mle of the non-centrality parameter of a...

Description Usage Arguments

Description

Compute the mle of the non-centrality parameter of a chi-square test-statistic conditional on selection

Usage

1
2
chisq_conditional_ncp_mle(x, df, pval_threshold = 0.05, threshold = NULL,
  normalize = FALSE)

Arguments

x

the observed value

df

the degrees of freedom

pval_threshold

the pvalue corresponding to the chisq-statistic (under the null) must be below this value to be observed.

threshold

an alternative way to specify the selection threshold. If specificed, then the selection rule is assumed to be x > threshold. Takes precedence to pval_threshold.

#' @param normalize whether to report the non-centrality parameter per degree of freedom


ammeir2/CoReAnalysis documentation built on May 17, 2019, 1:28 p.m.