View source: R/runPartialPlots.R
runPartialPlots | R Documentation |
factorlist.in
or varlist.in
.Plot partial plots for each of the variables listed in factorlist.in
or varlist.in
.
runPartialPlots(
model,
data,
factorlist.in = NULL,
varlist.in = NULL,
showKnots = FALSE,
type = "response",
partial.resid = FALSE,
save = FALSE,
savedata = F,
label = NULL,
includeB0 = FALSE
)
model |
Fitted model object (glm or gam) |
data |
Data frame of data information used to fit |
factorlist.in |
( |
varlist.in |
( |
showKnots |
( |
type |
( |
partial.resid |
( |
save |
( |
savedata |
( |
label |
( |
includeB0 |
( |
Partial plots, one for each covariate in factorlist.in
and varlist.in
LAS Scott-Hayward, University of St Andrews
#' # load data
data(ns.data.re)
model<-gamMRSea(birds ~ observationhour + as.factor(floodebb) + as.factor(impact),
family='quasipoisson', data=ns.data.re)
runPartialPlots(model, ns.data.re, factorlist.in=c('floodebb', 'impact'),
varlist.in=c('observationhour'))
runPartialPlots(model, ns.data.re, factorlist.in=c('floodebb', 'impact'),
varlist.in=c('observationhour'), type='link')
runPartialPlots(model, ns.data.re, factorlist.in=c('floodebb', 'impact'),
varlist.in=c('observationhour'), partial.resid=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.