predict.lqm: Predictions from LQM Objects

View source: R/lqm.R

predict.lqmR Documentation

Predictions from LQM Objects

Description

This function computes predictions based on fitted linear quantile model.

Usage

## S3 method for class 'lqm'
predict(object, newdata, interval = FALSE,
	level = 0.95, na.action = na.pass, ...)
## S3 method for class 'lqm.counts'
predict(object, newdata,
	na.action = na.pass, ...)

Arguments

object

an lqm or lqm.counts object.

newdata

an optional data frame in which to look for variables with which to predict. If omitted, the fitted values are used.

interval

logical flag. If TRUE, bootstrap percentile intervals for predictions are provided. This argument is for lqm objects only.

level

confidence level. This argument is for lqm objects only.

na.action

function determining what should be done with missing values in newdata. The default is to predict NA.

...

further arguments passed to boot.lqm.

Value

a vector or a matrix or an array of predictions.

Author(s)

Marco Geraci

See Also

residuals.lqm, residuals.lqm.counts, lqm, lqm.counts, coef.lqm, boot.lqm


lqmm documentation built on April 6, 2022, 5:09 p.m.