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

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

1 2 |

`x` |
fitted model of class |

`...` |
further arguments passed to or from other methods |

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.

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

Rebecca Sela rsela@stern.nyu.edu

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

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

```
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"
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.