Download Latest Version example_rF.tar.gz (80.5 kB)
Email in envelope

Get an email when there's a new version of R scripts for multivariate analysis

Home / randomForest
Name Modified Size InfoDownloads / Week
Parent folder
README.txt 2014-04-02 1.8 kB
example_rF.tar.gz 2014-04-02 80.5 kB
example_rF.R 2014-04-02 13.2 kB
Totals: 3 Items   95.6 kB 0
This is the script prepared to run randomForest package from R environment in a manner of 10-fold cross-validation mode. This version is prepared to the regression tasks. For more information please refer to its original manual at the CRAN repostitory:

http://cran.r-project.org/web/packages/randomForest/index.html

It requires data prepared in a manner of 10 pairs of training-testing datasets in tab-delimited TXT files, where the last column contains the known answer to the problem (dependent variable) and previous columns are features (regressors or independent variables). The assumption is that the model is of MISO type (multiple-input-single-output)

Script basic adjustable parameters are:

m_try
# This is the number of the input variables randomly chosen for each tree during the forest building. If equal to 0 then automatic search is performed ("mtry")
max_nodes
# Maximum terminal nodes in the tree ("maxnodes"))
num_tree
# Number of trees ("ntree")

Please find an example of how to run the script in the example.tar.gz archive Runs on Linux and Mac 
Windows users must get rid of multicore library

##########################################################################
    This program comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions. Please find a LICENSE file to look 
    for a more detailed description of terms and conditions based on the 
    GNU GPLv3 license
##########################################################################

If you are satisfied with this script and find it useful please cite our last work:
Szlęk J, Pacławski A, Lau R, Jachowicz R, Mendyk A. Heuristic modeling of macromolecule release from PLGA microspheres. Int J Nanomedicine. 2013;8:4601-11. doi: 10.2147/IJN.S53364. Epub 2013 Dec 3.




Source: README.txt, updated 2014-04-02