Predict from a fitted LOESS model at out-of-sample points
Usage
# S3 method for class 'Loess'
predict(
object,
new_x,
intervals = NULL,
extrapolation = "clamp",
max_extrapolation_distance = NULL,
max_neighbor_distance = NULL,
outputs = NULL,
...
)Arguments
- object
A
Loessobject, fitted (viafit) withretain_model = TRUEpassed toLoess.- new_x
Numeric vector of out-of-sample query points (flattened,
dimensionsvalues per point).- intervals
Grouped coverage levels from
intervals_opts.- extrapolation
Behavior for query points outside the training range:
"clamp"(default),"linear", or"error".- max_extrapolation_distance
Under
"linear"extrapolation, the maximum allowed distance beyond the training boundary beforepredicterrors instead of returning an unbounded value.NULL(default) disables the cap.- max_neighbor_distance
Maximum allowed distance to the farthest point in a query's neighbor window before
predicterrors, catching in-range-but-sparse query points.NULL(default) disables the cap.- outputs
Optional character vector selecting
"se","gradient", or"derivative".NULL(default) selects no optional components.- ...
Must be empty.