predict.senlm: Predict from senlm model fit

predict.senlmR Documentation

Predict from senlm model fit

Description

Predict from senlm model fit using x values in newdata, or actual x values.

Usage

## S3 method for class 'senlm'
predict(object, newdata, ...)

Arguments

object

Model fit.

newdata

x values to predict y values from. Optional, data values used by default.

...

additional optional arguments.

Value

Vector of predicted y values.

Examples


## Not run: 

## Real data
model <- set_models(mean_fun="gaussian", err_dist=c("zip"))
fit <- senlm(model=model, data=haul, xvar="depth", yvar="Sebastolobus.altivelis")

## End(Not run)


PRIMER-e/senlm documentation built on Nov. 20, 2022, 2:38 a.m.