termplot
but is suitably changed to apply to GAMLSS objects.term.plot(object, what = c("mu", "sigma", "nu", "tau"), data = NULL,
envir = environment(formula(object)), partial.resid = FALSE,
rug = FALSE, terms = NULL, se = TRUE, ylim = c("common", "free"),
scheme = c("shaded", "lines"), xlabs = NULL, ylabs = NULL,
main = NULL, pages = 0, col.term = "darkred",
col.se = "orange", col.shaded = "gray", col.res = "lightblue",
col.rug = "gray", lwd.term = 1.5, lty.se = 2, lwd.se = 1,
cex.res = 1, pch.res = par("pch"),
ask = interactive() && nb.fig < n.tms && .Device != "postscript",
use.factor.levels = TRUE, surface.gam = FALSE, ...)
object
can be foundobject
can be foundylim
range and therefore allows the viewer to check the relative
contribution of each terms compate to the rest.ga()
term is fittedlpred
function of GAMLSS.
The 'data' argument should rarely be needed, but in some cases
'termplot' may be unable to reconstruct the original data frame.
Using 'na.action=na.exclude' makes these problems less likely.
Nothing sensible happens for interaction terms.Stasinopoulos D. M., Rigby R.A. and Akantziliotou C. (2006) Instructions on how to use the GAMLSS package in R.
Accompanying documentation in the current GAMLSS help files, (see also
Stasinopoulos D. M. Rigby R.A. (2007) Generalized additive models for location scale and shape (GAMLSS) in R.
Journal of Statistical Software, Vol. 23, Issue 7, Dec 2007,
termplot
data(aids)
a<-gamlss(y~pb(x)+qrt,data=aids,family=NBI)
term.plot(a, pages=1)
rm(a)
Run the code above in your browser using DataLab