coef.lfq_fit: Extract coefficients from a lineage frequency model

View source: R/methods-coef.R

coef.lfq_fitR Documentation

Extract coefficients from a lineage frequency model

Description

Extract coefficients from a lineage frequency model

Usage

## S3 method for class 'lfq_fit'
coef(object, type = c("growth_rate", "all"), ...)

Arguments

object

An lfq_fit object.

type

What to return: "growth_rate" (default) for growth rates only, or "all" for intercepts and growth rates.

...

Ignored.

Value

Named numeric vector.

Examples

sim <- simulate_dynamics(n_lineages = 3,
  advantages = c("A" = 1.2, "B" = 0.8), seed = 1)
fit <- fit_model(sim)
coef(fit)


lineagefreq documentation built on April 3, 2026, 9:09 a.m.