data(Rsum)
fpois(Rsum$Ct)
if (FALSE) {
# Because 'Rsum' is a data frame object,
# the above can also be carried out as:
fpois(Rsum, which.col = 3)
# Or:
fpois(Rsum, which.col = "Ct")
##
## For a non-homogeneous fit, use glm.
##
## For example, to fit the non-homogeneous Poisson model
## Enso as a covariate:
##
fit <- glm(Ct~EN, data = Rsum, family = poisson())
summary(fit)
}
Run the code above in your browser using DataLab