predict.elastic_reg_model: Predict method for elastic regression models

View source: R/predict_elastic_reg_model.R

predict.elastic_reg_modelR Documentation

Predict method for elastic regression models

Description

predicted curves for elastic regression model objects.

Usage

## S3 method for class 'elastic_reg_model'
predict(object, newdata = NULL, t_grid = seq(0, 1, 0.01), ...)

Arguments

object

object of class elastic_reg_model, usually a result of a call to fit_elastic_regression

newdata

an optional data.frame in which to look for variables with which to predict. If not given, the fitted values are used.

t_grid

grid on which the predicted curves are evaluated.

...

further arguments passed to or from other methods.

Value

a list of data.frames with predicted curves

See Also

For examples see documentation of fit_elastic_regression.


elasdics documentation built on June 22, 2024, 12:27 p.m.