predict.cdfqr | R Documentation |
Methods for obtaining the fitted/predicted values for a fitted cdfqr object.
## 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,
...
)
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. |
data(cdfqrExampleData)
fit <- cdfquantreg(crc99 ~ vert | confl, 't2','t2', data = JurorData)
plot(predict(fit))
plot(predict(fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.