Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Prediction on Test Data



>      data(veteran, package = "randomSurvivalForest")
>      train.pt <- sample(nrow(veteran), round(nrow(veteran)*0.80))
>      veteran.out <- rsf(Survrsf(time, status) ~ ., forest = TRUE,
                          data = veteran[train.pt , ])
>      veteran.pred <- predict.rsf(veteran.out, veteran[-train.pt , ])



Copyright © Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
The PDF version is a formatted comprehensive draft book (with over 800 pages).
Brought to you by Togaware. This page generated: Sunday, 22 August 2010