PsiLFC: Psi LFC effect size estimator

View source: R/psi_lfc.R

PsiLFCR Documentation

Psi LFC effect size estimator

Description

Computes the optimal effect size estimate and credible intervals if needed.

Usage

PsiLFC(
  A,
  B,
  prior = EmpiricalBayesPrior(A, B),
  normalizeFun = CenterMedian,
  cre = FALSE,
  verbose = FALSE
)

Arguments

A

Vector of counts from condition A

B

Vector of counts from condition B

prior

Vector of length 2 of the prior parameters

normalizeFun

Function to normalize the obtained effect sizes

cre

Compute credible intervals as well? (can also be a vector of quantiles)

verbose

verbose status updates?

Value

Either a vector containing the estimates, or a data frame containing the credible interval as well

Examples

  PsiLFC(rnorm(1000,200),rnorm(1000,100))

florianerhard/lfc documentation built on April 23, 2023, 5:28 a.m.