Skip to contents

Predict from a fitted fertility approximation model

Usage

# S3 method for class 'fert.approx'
predict(object, age = NULL, interval = FALSE, alpha = 0.05, ...)

Arguments

object

Object of class fert.approx returned by fert.approx().

age

Numeric vector of ages for prediction. If NULL, fitted ages are used.

interval

Logical. Should uncertainty intervals be returned? Intervals are available only if fert.approx() was called with se = TRUE.

alpha

Numeric. Used if interval = TRUE, the level of uncertainty. By default, alpha = 0.05 for 95% CI.

...

Ignored.

Value

A data frame with columns age and fx.model. If interval = TRUE, columns se, prc.low, and prc.high are also returned.