Quasibinomial detection-count strategy
Quasibinomial detection-count strategy
Details
Fits detected and undetected child-feature counts for each parent feature
using glm with a quasibinomial family. The symmetric
pseudo-count stabilizes fits under complete separation; it is not equivalent
to Firth's bias-reducing penalty.
Public fields
formulaquasibinomial model formula
model_namemodel identity
report_columnsresult columns supported by the strategy
is_mixedalways FALSE
anova_dfANOVA extractor
prior_countsymmetric pseudo-count added to both outcomes
Methods
Method new()
Create a quasibinomial count strategy.
Usage
StrategyBinomial$new(
modelstr,
prior_count = 0.1,
model_name = "binomial_nested",
report_columns = c("statistic", "p.value", "p.value.adjusted", "moderated.p.value",
"moderated.p.value.adjusted")
)Examples
dat <- data.frame(
group_ = factor(rep(c("A", "B"), each = 4)),
detected = c(1, 2, 1, 3, 4, 5, 3, 5),
undetected = c(4, 3, 4, 2, 1, 0, 2, 0)
)
strategy <- StrategyBinomial$new("~ group_")
fit <- strategy$model_fun(dat)
coefficients(fit)
#> (Intercept) group_B
#> -0.5937747 2.2264695