Learn R Programming

Qtools (version 1.0)

predict.rq.counts: Predictions from rq.counts Objects

Description

This function computes predictions based on fitted linear quantile models.

Usage

## S3 method for class 'rq.counts':
predict(object, newdata, offset,
	na.action = na.pass, type = "response", ...)

Arguments

Value

a vector or a matrix or an array of predictions.

See Also

residuals.rq.counts, rq.counts, coef.rq.counts

Examples

Run this code
# Esterase data
data(esterase)

# Fit quantiles 0.25 and 0.75
fit <- rq.counts(Count ~ Esterase, tau = 0.5, data = esterase, M = 50)
cbind(fit$fitted.values, predict(fit, type = "response"))

Run the code above in your browser using DataLab