predict.dindexfit: Predict method for distributional index model (DIM)

Description Usage Arguments Value See Also

View source: R/dindexm.R

Description

Prediction based on distributional index model fit.

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'dindexfit'
predict(
  object,
  data = NULL,
  digits = 3,
  interpolation = "linear",
  asplitAvail = TRUE,
  ...
)

Arguments

object

DIM fit (object of class "dindexfit").

data

optional data.frame containing variables with which to predict. In-sample predictions are returned if this is omitted.

digits

number of decimal places for the predictive CDF.

interpolation

interpolation method for univariate index Default is "linear". Any other argument will select midpoint interpolation (see 'Details' in predict.idrfit). Has no effect for multivariate index function.

asplitAvail

use asplit for splitting arrays (default is TRUE). Set to FALSE for R Versions < 3.6, where asplit is not available.

...

further arguments passed to the index prediction function.

Value

A list of predictions, as for predict.idrfit.

See Also

Examples in dindexm.


isodistrreg documentation built on March 22, 2021, 5:06 p.m.