Description Usage Arguments Details Value Author(s) See Also
View source: R/getPoissonMeans.R
Estimate Cultimar
means via use of Poisson regression,
with any overdispersion handled via quasilikelihood.
1 |
df |
A |
Function getPoissonMeans
runs a simple intercept-only model
for each Cultivar
found within df
. It also incorporates
offsets via SamplingPeriods
. This allows application of function
stats::confint
so that resulting 95% confidence intervals are fit
on the log-scale. Practically, this ensures they do not cross zero.
Because function getPoissonMeans
is geared towards estimate Poisson
means, no consideration of overdispersion is made.
A data.frame
containing estimates of means and 95% confidence
intervals. In the case a Cultivar
is all-zero, the confidence
interval is returned as NA
.
Jason Mitchell, based on original work by Zoe Gustafson.
stats::glm
, stats::coef
, stats::confint
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.