predict.elastic_reg_model {elasdics}R 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.


[Package elasdics version 1.1.3 Index]