pred.gp: Function to predict quantiles from GP and DGP distributions

View source: R/pred.gp.r

pred.gpR Documentation

Function to predict quantiles from GP and DGP distributions

Description

It takes a fitted gamlss object produced by gamlss() and produces the desired quntities and respective intervals.

Usage

pred.gp(x, p = 0.5, newdata, n.sim = 100, prob.lev = 0.05)

Arguments

x

A fitted gamlss object.

p

Value of p.

newdata

A data frame or list containing the values of the model covariates at which predictions are required. If not provided then predictions corresponding to the original data are returned. When newdata is provided, it should contain all the variables needed for prediction.

n.sim

The number of simulated coefficient vectors from the posterior distribution of the estimated model parameters. This is used to calculate intervals. It may be increased if more precision is required.

prob.lev

Probability of the left and right tails of the posterior distribution used for interval calculations.

Author(s)

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

See Also

gamlss


GJRM documentation built on Oct. 25, 2024, 5:07 p.m.