gdd_predict: Predict Developmental Duration at Given Temperatures

View source: R/gdd_predict.R

gdd_predictR Documentation

Predict Developmental Duration at Given Temperatures

Description

Evaluates the fitted model (linear or nonlinear) at the given temperatures and returns the predicted developmental rate and duration D = 1 / V.

Usage

gdd_predict(object, temp, group = NULL)

Arguments

object

A "gdd" object returned by [gdd_calc()].

temp

Numeric vector of target temperatures (deg C).

group

Character vector of group names to predict; default is all groups.

Value

A data.frame with columns: group, temp, pred_rate, pred_duration, within_range.

Examples

f <- system.file("extdata", "gdd_example.csv", package = "insectecol")
fit <- gdd_calc(gdd_read(f), by = "stage")
gdd_predict(fit, temp = c(20, 24, 28), group = "Egg")

insectecol documentation built on Oct. 5, 2026, 5:08 p.m.