getPoissonMeans: Estimate 'Cultivar' means via use of Poisson regression.

Description Usage Arguments Details Value Author(s) See Also

View source: R/getPoissonMeans.R

Description

Estimate Cultimar means via use of Poisson regression, with any overdispersion handled via quasilikelihood.

Usage

1

Arguments

df

A data.frame containing columns for PollinatorVisits, Cultivar, SamplingPeriods, and FlowerType.

Details

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.

Value

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.

Author(s)

Jason Mitchell, based on original work by Zoe Gustafson.

See Also

stats::glm, stats::coef, stats::confint


studyvin/pollinatorAttractiveness documentation built on Dec. 23, 2021, 6:38 a.m.