predict.gcrq | R Documentation |
Takes a "gcrq" objects and computes fitted values
## S3 method for class 'gcrq'
predict(object, newdata, se.fit=FALSE, transf=NULL, xreg,
type=c("sandw","boot"), ...)
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 |
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.
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).
Vito M.R. Muggeo
gcrq
, plot.gcrq
##see ?gcrq
## predict(m1, newdata=data.frame(x=c(.3,.7)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.