VarCorr.gamtree: Extract random-effects covariance matrices from a GAM tree.

View source: R/gamtree.R

VarCorr.gamtreeR Documentation

Extract random-effects covariance matrices from a GAM tree.

Description

VarCorr.gamtree extracts fixed-effects random-effects covariance matrices from the nodes of a GAM tree.

Usage

## S3 method for class 'gamtree'
VarCorr(x, sigma = 1, which = "terminal", ...)

Arguments

x

an object of class "gamtree".

sigma

an optional numeric value used as a multiplier for the standard deviations.

which

character. "terminal" (default) returns (co)variances for all terminal nodes, "inner" returns the (co)variances for all inner (splitting) nodes, "all" returns covariances for all nodes.

...

additional arguments to be passed to VarCorr.merMod.


marjoleinF/gamtree documentation built on July 3, 2024, 9:18 a.m.