predict.gcrq {quantregGrowth} | R Documentation |
Prediction for "gcrq" objects
Description
Takes a "gcrq" objects and computes fitted values
Usage
## S3 method for class 'gcrq'
predict(object, newdata, se.fit=FALSE, transf=NULL, xreg,
type=c("sandw","boot"), ...)
Arguments
object |
a fitted |
newdata |
a dataframe including all the covariates of the model. The smooth term is represented by a covariate
and proper basis functions will be build accordingly. If omitted, the fitted values are used. Ignored if |
se.fit |
logical. If |
transf |
An optional character string (with |
xreg |
the design matrix for which predictions are requested. If provided, |
type |
If |
... |
arguments passed to other functions |
Details
predict.gcrq
computes fitted quantiles as a function of observations included in newdata
or xreg
.
Either newdata
or xreg
have to be supplied, but newdata
is ignored
when xreg
is provided.
Value
If se.fit=FALSE
, a matrix of fitted values with number of rows equal to number of rows of input data
and number of columns depending on the number of fitted quantile curves (i.e length of taus
). If se.fit=TRUE
, a list of matrices (fitted values and standard errors).
Author(s)
Vito M.R. Muggeo
See Also
Examples
##see ?gcrq
## predict(m1, newdata=data.frame(x=c(.3,.7)))