View source: R/emergence_methods.R
| predict.emergence | R Documentation |
Returns the projected eclosion (or hatch) dates of arbitrary emergence quantiles.
## S3 method for class 'emergence'
predict(object, p, event = c("eclosion", "hatch"), ...)
object |
A |
p |
Optional numeric vector of quantiles (0-1). The default
(missing |
event |
|
... |
Further arguments (unused). |
A data.frame with columns p, days
(fractional days after the survey date) and date.
d <- data.frame(stage = c("Pupa 2", "Pupa 1", "Prepupa"),
count = c(3, 4, 3), days = c(12, 14, 16))
fit <- emergence_calc(d, survey_date = "2026-03-20",
pre_ovip = 3, egg_days = 10)
predict(fit) # the stored 16/50/84 predictions
predict(fit, c(0.25, 0.75)) # arbitrary eclosion quantiles
predict(fit, c(0.25, 0.75), event = "hatch")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.