termplot
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, xlabs = NULL, ylabs = NULL,
main = NULL, col.term = 2, lwd.term = 1.5,
col.se = "orange", lty.se = 2, lwd.se = 1,
col.res = "gray", cex = 1, pch = par("pch"),
col.smth = "darkred", lty.smth = 2,
span.smth = 2/3,
ask = interactive() && nb.fig < n.tms && .Device != "postscript",
use.factor.levels = TRUE, smooth = NULL, ylim = "common", ...)
object
can be foundobject
can be foundlpred
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, se=TRUE)
rm(a)
Run the code above in your browser using DataLab