summary.gamtree: Summary method for a fitted GAM tree

Description Usage Arguments Warning Examples

View source: R/gamtree.R

Description

Prints a summary of the local and/or global terms in a fitted GAM tree.

Usage

1
2
## S3 method for class 'gamtree'
summary(object, ...)

Arguments

object

object of class gamtree.

...

further arguments to be passed to summary.gam.

Warning

The printed results by default also provide standard error and significance tests. These should be taken with a big grain of salt, because they do NOT account for the searching of the tree structure; they assume the tree structure was known in advance. They thus should be interpreted as overly optimistic and with caution.

Examples

1
2
3
4
5
6
7
8
## GAM tree without global terms:
gt1 <- gamtree(Pn ~ s(PAR, k = 5L) | Species, data = eco, cluster = eco$specimen)
summary(gt1)

## GAM tree with global terms:
gt2 <- gamtree(Pn ~ s(PAR, k = 5L) | s(cluster_id, bs = "re") + noise | Species, 
              data = eco, cluster = eco$specimen)
summary(gt2)

marjoleinF/gamtree documentation built on Sept. 17, 2021, 5:46 a.m.