predict.elastic_reg_model function

Predict method for elastic regression models

Predict method for elastic regression models

predicted curves for elastic regression model objects.

## 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.

Returns

a list of data.frames with predicted curves

See Also

For examples see documentation of fit_elastic_regression.

  • Maintainer: Lisa Steyer
  • License: GPL-3
  • Last published: 2024-01-25

Useful links