print: Print a RE-EM Tree object

Description Usage Arguments Details Side Effects Author(s) References See Also Examples

Description

This function prints a description of a fitted RE-EM tree object.

Usage

1
2
 ## S3 method for class 'REEMtree'
print(x,...)

Arguments

x

fitted model of class REEMtree

...

further arguments passed to or from other methods

Details

This function is a method for the generic function print for class REEMtree. It can be invoked by calling print for an object of class REEMtree, or by calling print.REEMtree directly for an object of the corresponding type.

Side Effects

Prints representations of the regression tree and the random effects model that comprise a RE-EM tree.

Author(s)

Rebecca Sela rsela@stern.nyu.edu

References

Sela, Rebecca J., and Simonoff, Jeffrey S., “RE-EM Trees: A Data Mining Approach for Longitudinal and Clustered Data”, Machine Learning (2011).

See Also

print.rpart, REEMtree.object

Examples

1
2
3
data(simpleREEMdata)
REEMresult<-REEMtree(Y~D+t+X, data=simpleREEMdata, random=~1|ID)
print(REEMresult)

Example output

Loading required package: nlme
Loading required package: rpart
[1] "*** RE-EM Tree ***"
n= 600 

node), split, n, deviance, yval
      * denotes terminal node

1) root 600 1092.91700  1.3639420  
  2) D< 0.5 300  339.28840  0.5006719  
    4) X>=0.2503819 89   62.24319 -0.3697058 *
    5) X< 0.2503819 211  181.18360  0.8677981 *
  3) D>=0.5 300  306.48750  2.2272130  
    6) t< 5.5 125  111.18930  1.6862250 *
    7) t>=5.5 175  132.58370  2.6136330 *
[1] "Estimated covariance matrix of random effects:"
            (Intercept)
(Intercept)    3.660086
[1] "Estimated variance of errors: 0.88750827156022"
[1] "Log likelihood:  -914.122394149391"

REEMtree documentation built on Jan. 10, 2021, 6:09 p.m.