A GAM(M) model build in the package mgcv
using gam or bam.
caption
A string with the caption for the table.
label
A string for the label to refer to the table in the markdown
document.
pnames
A vector with labels to relabel the rows in the parametric
part of the summary.
snames
A vector with labels to relabel the rows in the smooth
part of the summary.
ptab
A vector with labels to relabel the column names of the
parametric summary.
stab
A vector with labels to relabel the column names of the
smooth summary.
...
Optional additional arguments which are passed to
xtable (see 'help(xtable)').
Value
A vector with color values.
Note
This function is useful for markdown documents using the package
knitr to integrate R code with Latex and Sweave. This
function requires the package xtable.
data(simdat)
# Model with random effect and interactions:m1 <- bam(Y ~ Group+te(Time, Trial, by=Group),
data=simdat)
summary(m1)
gamtabs(m1, caption='Summary of m1')