predict.FGLMtrunc: Make predictions from 'FGLMtrunc' fitted model

predict.FGLMtruncR Documentation

Make predictions from FGLMtrunc fitted model

Description

This function returns truncated estimate of linear predictors, fitted values, and functional parameter β for a fitted FGLMtrunc object.

Usage

## S3 method for class '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 β.

...

additional predict arguments (Not applicable for FGLMtrunc)

Value

Predictions depends on chosen type.

See Also

predict.glm.


FGLMtrunc documentation built on May 26, 2022, 9:06 a.m.