predict.cdfqr {cdfquantreg}R Documentation

Methods for Cdfqr Objects

Description

Methods for obtaining the fitted/predicted values for a fitted cdfqr object.

Usage

## S3 method for class 'cdfqr'
predict(
  object,
  newdata = NULL,
  type = c("full", "mu", "sigma", "theta", "one", "zero"),
  quant = 0.5,
  ...
)

## S3 method for class 'cdfqr'
fitted(
  object,
  type = c("full", "mu", "sigma", "theta", "one", "zero"),
  plot = FALSE,
  ...
)

Arguments

object

A cdfqr model fit object

newdata

Optional. A data frame in which to look for variables with which to predict. If not provided, the fitted values are returned

type

A character that indicates whether the full model prediction/fitted values are needed, or values for the 'mu' and 'sigma' submodel only.

quant

A number or a numeric vector (must be in (0, 1)) to specify the quantile(s) of the predicted value (when 'newdata' is provided, and predicted values for responses are required). The default is to use median to predict response values.

...

currently ignored

plot

if a plot is needed.

Examples

data(cdfqrExampleData)
fit <- cdfquantreg(crc99 ~ vert | confl, 't2','t2', data = JurorData)

plot(predict(fit))
plot(predict(fit))

[Package cdfquantreg version 1.3.1-2 Index]