Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getGam

Convert gamViz object to gamObject


Description

Function for converting a gamViz object to a gamObject. It is essentially the inverse of the getViz function.

Usage

getGam(o)

Arguments

o

a gamViz object, the output of mgcViz::getViz.

Examples

library(mgcViz)
set.seed(2) ## simulate some data...
dat <- gamSim(1,n=1000,dist="normal",scale=2)
b <- gam(y~s(x0)+s(x1, x2)+s(x3), data=dat, method="REML")
a <- getViz(b)
identical(b, getGam(a)) # Must be TRUE

mgcViz

Visualisations for Generalized Additive Models

v0.1.6
GPL-3
Authors
Matteo Fasiolo [aut, cre], Raphael Nedellec [aut], Yannig Goude [ctb], Christian Capezza [ctb], Simon N. Wood [ctb]
Initial release
2020-03-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.