Prediction function

Share:

Description

It takes a fitted SemiParBIVProbit/copulaReg/copulaSampleSel/SemiParTRIV object and, for each equation, produces predictions for a new set of values of the model covariates or the original values used for the model fit. Standard errors of predictions can be produced and are based on the posterior distribution of the model coefficients. This function is a wrapper for predict.gam() in mgcv. Please see the documentation of predict.gam() for full details.

Usage

1
2
## S3 method for class 'SemiParBIVProbit'
predict(object, eq, ...)

Arguments

object

A fitted codeSemiParBIVProbit/copulaReg/copulaSampleSel/SemiParTRIV object.

eq

The equation to be considered for prediction.

...

Other arguments as in predict.gam() in mgcv.

WARNINGS

When type = "response" (which gives predictions on the scale of the response variable). For the case of continuous responses this function will NOT produce correct predictions for the outcome variable (except for the Gaussian case). This is because for all distributions (except the Gaussian) implemented in this package the distribution parameters determine the mean and variance through functions of them.

Author(s)

Maintainer: Giampiero Marra giampiero.marra@ucl.ac.uk

See Also

SemiParBIVProbit, copulaReg, copulaSampleSel, SemiParTRIV, plot.SemiParBIVProbit

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.