charts {quantregGrowth} | R Documentation |
Easy computing growth charts
Description
Computes and returns quantiles as a function of the specified covariate values
Usage
charts(fit, k, file = NULL, digits=2, conf.level=0,
dataframe=FALSE, transf=NULL, se.type=c("sandw","boot"), ...)
Arguments
fit |
The object fit returned by |
k |
Numeric indicating the covariate values. If integer (and scalar, specified via |
file |
If specified, the (path) file name wherein the returned matrix including the quantiles will be written via |
digits |
Number of digits whereby the estimated quantiles are rounded. |
conf.level |
If larger than zero, the pointwise confidence intervals for the estimated quantiles are also returned. If |
dataframe |
Logical. If |
transf |
An optional character string (with |
se.type |
Which covariance matrix should be used, provided that |
... |
Further arguments passed on to |
Details
This function is simply a wrapper for predict.gcrq
Value
A matrix having number of columns equal to the number of quantile curves and number of rows depending k
Note
charts
just works with models having a single smooth term. See predict.gcrq
when the model involves multiple covariates.
Author(s)
Vito Muggeo
See Also
Examples
## Not run:
charts(_fit_, k=1L) #prediction at the minimum of covariate
charts(_fit_, k=1) #prediction at covariate value 1.
charts(_fit_, k=10L)
## End(Not run)