Interpolate the mean empirical accumulation curve at arbitrary site counts
using linear interpolation. Unlike the predict method for spacc_fit
objects, this does not use a fitted model; it interpolates the observed
curve directly.
Usage
# S3 method for class 'spacc'
predict(object, n = NULL, ci = TRUE, ci_level = 0.95, warn = TRUE, ...)Arguments
- object
A
spaccobject.- n
Numeric vector of site counts at which to interpolate. Defaults to 25%, 50%, and 100% of total sites.
- ci
Logical. If
TRUE(default), return a data frame with columnsn,mean,lower,upper. IfFALSE, return a named numeric vector.- ci_level
Confidence level for the interval (default 0.95).
- warn
Logical. Warn when
nvalues fall outside the observed range (defaultTRUE).- ...
Ignored.