Description Usage Arguments Details Author(s) See Also Examples
View source: R/updateBoostMLR.R
Function allows to update boosting object with an additional boosting iterations.
1 2 3 4 | updateBoostMLR(Object,
M_Add,
Verbose = TRUE,
...)
|
Object |
Boosting object. This object is previously obtained using |
M_Add |
Number of additional boosting iterations. |
Verbose |
Print the current stage of boosting iteration? |
... |
Further arguments passed to or from other methods. |
In boosting, Mopt, the number of boosting iterations
required to achive optimal result, is unknown.
Typically, Mopt is estimated by specifying a large value
of M and then search for an optimal value that is less
than M using the test data.
Function update allows user to start with a small value of M, and keep increamenting boosting iterations, each time running through the test data, until an optimal boosting iteration is found. This can significantly reduce unnecessary computations, particularly when Mopt << M.
The procedure can be replicated multiple times using the boosting object (see example below).
Results from update can be treated the same way we treat results
from BoostMLR.
Amol Pande and Hemant Ishwaran
BoostMLR,
predictBoostMLR,
simLong
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ##-----------------------------------------------------------------
## Univariate Longitudinal Response
##-----------------------------------------------------------------
# Simulate data involves 1 response and 4 covariates
dta <- simLong(n = 100, N = 5, rho =.80, model = 2, q_x = 0,
q_y = 0,type = "corCompSym")$dtaL
# Boosting call: Raw values of covariates, B-spline for time,
# no shrinkage, no estimate of rho and phi
boost.grow <- BoostMLR(x = dta$features, tm = dta$time, id = dta$id,
y = dta$y, M = 100, VarFlag = FALSE)
# Update boosting object for the additional 100 iteration
boost.grow <- updateBoostMLR(Object = boost.grow, M_Add = 100,Verbose = TRUE)
# Update boosting object for the additional 50 iteration
boost.grow <- updateBoostMLR(Object = boost.grow, M_Add = 50,Verbose = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.