Description Usage Arguments Details Value Author(s) See Also Examples
Displaying the estimated growth charts from a gcrq
fit.
1 2 3 4 5 6 | ## S3 method for class 'gcrq'
plot(x, term=NULL, add = FALSE, res = FALSE, conf.level=0, interc=TRUE,
legend = FALSE, select.tau, deriv = FALSE, cv = FALSE, transf=NULL,
lambda0=FALSE, shade=FALSE, overlap=NULL, rug=FALSE, n.points=100,
edf.ylab=NULL, overall.eff=TRUE, grid=NULL, smoos=NULL, split=FALSE, shift=NULL,
type=c("sandw","boot"), ...)
|
x |
a fitted |
term |
the smooth variable name entering the model via |
interc |
Should the smooth term be plotted along with the intercept (provided it is included in the model)? If the smooth term is a varying coefficient,
|
add |
logical. If |
res |
logical. If |
conf.level |
logical. If larger than zero, pointwise confidence intervals for the fitted quantile curve are also shown (at the confidence level specified by |
legend |
logical. If |
select.tau |
an optional numeric vector to draw only some of the fitted quantiles. Percentile values or integers 1 to |
deriv |
logical. If |
cv |
logical. If |
transf |
An optional character string (with |
lambda0 |
logical. If |
shade |
logical. If |
overlap |
If provided and different from |
rug |
logical. If |
n.points |
numeric. Number of values used to plot the fitted curves. Large values provide smoother curves. |
edf.ylab |
Should the edf value to be reported as y label? If |
overall.eff |
logical. If the smooth term has been called via |
grid |
if provided, a grid of horizontal and vertical lines is drawn. |
smoos |
logical, indicating if the residuals (provided that |
split |
logical. If there are multiple smooth terms and |
shift |
Numerical value to be added to the curve(s) to be plotted. Default is |
type |
If |
... |
Additional graphical parameters: |
Takes a "gcrq" object and diplays the fitted quantile curves. If conf.level
>0 pointwise confidence intervals are also displayed. When the object contains the component cv
, plot.gcrq
can display cross-validation scores against the lambda values, see argument cv
.
The function simply generates a new plot or adds fitted curves to an existing one.
Vito M. R. Muggeo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
## use the fits from ?gcrq
#The additive model
plot(o, res=TRUE, col=2, conf.level=.9, shade=TRUE, split=TRUE)
par(mfrow=c(2,2))
plot(m5, select.tau=c(.1,.5,.9), overlap=0.6, legend=TRUE)
plot(m5, grid=list(x=8,y=5), lty=1) #a 8 times 5 grid..
plot(m7, cv=TRUE) #display CV score versus lambda values
plot(m7, res=TRUE, grid=list(x=5, y=8), col=4) #fitted curves at the best lambda value
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.