coef.gamtree: Extract coefficients from a GAM tree.

View source: R/gamtree.R

coef.gamtreeR Documentation

Extract coefficients from a GAM tree.

Description

coef.gamtree extracts fixed- or random-effects coefficients from a GAM tree.

Usage

## S3 method for class 'gamtree'
coef(object, which = "fixed", ...)

Arguments

object

an object of class "gamtree".

which

character. Either "fixed" (default) or "random", indicating that fixed- or random-effects coefficients should be returned, respectively.

...

further arguments to be passed to fixef.merMod or ranef.merMod.


marjoleinF/gamtree documentation built on June 10, 2025, 1:04 p.m.