tr: A interface function to use rpart() function within GAMLSS

Description

The tr() function is a additive function to be used for GAMLSS models. It is an interface for the rpart() function of package rpart. The function tr() allows the user to use regression trees within gamlss. The great advantage of course comes from the fact GAMLSS models provide a variety of distributions and diagnostics. Note that the function gamlss.tr is not used by the user but it needed for the backfitting.

Arguments

formula

A formula containing the expolanatory variables i.e. ~x1+x2+x3.

method

only method "rpart" is supported at the moment

control

control here is equivalent to rpart.control() function od package rpart

x

object passing informatio to the function

y

the iterative y variable

w

the iterative weights

xeval

whether prediction or not is used

...

additional arguments

Details

Note that, the gamlss fit maybe would not coverged. Also occasianly the gd.tol argument in gamlss has to be increased. The

Value

Note that tr itself does no smoothing; it simply sets things up for the function gamlss() which in turn uses the function additive.fit() for backfitting which in turn uses gamlss.tr()
The result is a rpart object.

Author(s)

Mikis Stasinopoulos [email protected], Bob Rigby based on work of Therneau and Atkison (2015)

References

Stasinopoulos D. M., Rigby R.A. and Akantziliotou C. (2006) Instructions on how to use the GAMLSS package in R.
Accompanying documentation in the current GAMLSS help files, (see also http://www.gamlss.org/).