Skip to contents

Models, per protein, how many of its peptides are detected in each sample with a quasibinomial GLM; a small pseudo-count avoids infinite estimates when all or none are detected. Used by the binomial_nested method.

Usage

strategy_binomial(
  modelstr,
  prior_count = 0.1,
  model_name = "binomial_nested",
  control = list()
)

Arguments

modelstr

right-hand-side model formula

prior_count

non-negative symmetric pseudo-count

model_name

model identity

control

epsilon (default 1e-8) and maxit (default 25) of glm.control: the relative deviance change that stops IRLS and its iteration limit; relative, so independent of the number of detections, and glm's own defaults.

Value

A StrategyBinomial object.

Examples

strategy <- strategy_binomial("~ group_", prior_count = 0.1)
strategy$formula
#> cbind(.detected, .undetected) ~ group_
#> <environment: 0x5ed414767160>