Function for converting a gamViz
object to a gamObject
.
It is essentially the inverse of the getViz function.
getGam(o)
o | a |
---|
#> Gu & Wahba 4 term additive modelb <- gam(y~s(x0)+s(x1, x2)+s(x3), data=dat, method="REML") a <- getViz(b) identical(b, getGam(a)) # Must be TRUE#> [1] TRUE