Learn R Programming

SemiParSampleSel (version 1.5)

predict.SemiParSampleSel: Prediction from fitted SemiParSampleSel model

Description

It takes a fitted SemiParSampleSel object produced by SemiParSampleSel() and 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 mgcv for full details.

Usage

# S3 method for SemiParSampleSel
predict(object, eq, ...)

Arguments

object
A fitted SemiParSampleSel object as produced by SemiParSampleSel().
eq
The equation to be considered for prediction.
...
Other arguments as in predict.gam() in mgcv.

See Also

SemiParSampleSel, aver, plot.SemiParSampleSel, summary.SemiParSampleSel