Skip to contents

As strategy_binomial(), with Firth's penalty instead of a pseudo-count, so estimates stay finite when all or none of a protein's peptides are detected. Used by the binomial_firth_nested method.

Usage

strategy_binomial_firth(
  modelstr,
  model_name = "binomial_firth_nested",
  control = list()
)

Arguments

modelstr

right-hand-side model formula

model_name

model identity

control

maxit (default 100) and tol (default 1e-8): iteration limit of the Firth adjustment and the largest coefficient change (log odds) that stops it; log odds of detection range over about -10 to 10, so 1e-8 is far below any reported precision.

Value

A StrategyBinomialFirth object.

Examples

strategy <- strategy_binomial_firth("~ group_")
strategy$formula
#> cbind(.detected, .undetected) ~ group_
#> <environment: 0x5ed41786e2d0>