Skip to contents

This function returns truncated estimate of linear predictors, fitted values, and functional parameter \(\beta\) for a fitted FGLMtrunc object.

Usage

# S3 method for FGLMtrunc
predict(
  object,
  newX.curves,
  newS = NULL,
  type = c("link", "response", "coefficients"),
  ...
)

Arguments

object

fitted FGLMtrunc object

newX.curves

Matrix of new values for functional predictors X.curves.

newS

Matrix of new values for scalar predictors S.

type

Type of prediction. For logistic regression (family = "binomial"), type="link" gives the linear predictors, which is log-odds, and type="response" gives the predicted probabilities. For linear regression (family = "gaussian"), both type="link" and type="response" give fitted values. For both linear regression and logistic regression, type="coefficients" gives truncated estimate of functional parameter \(\beta\).

...

additional predict arguments (Not applicable for FGLMtrunc)

Value

Predictions depends on chosen type.

See also