PsiLFC: Psi LFC effect size estimator

Description Usage Arguments Value Examples

View source: R/psi_lfc.R

Description

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

Usage

1
2
3
4
5
6
7
PsiLFC(
  A,
  B,
  prior = EmpiricalBayesPrior(A, B),
  normalizeFun = CenterMedian,
  cre = 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)

Value

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

Examples

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

erhard-lab/lfc documentation built on Feb. 27, 2020, 1:23 p.m.