I have been trying to work with the 'Party' package using R v2.15.1 and have cobbled together a (somewhat) functioning code from examples on the web. I need to run a series of unbiased, conditional, cForest tests on several subsets of data which I have made into a loop. The results ideally will be saved to an output file in matrix form. The two questions regarding the script in question (script below) include:
1). After the cForest prints the initial results the error below is displayed:
" Random Forest using Conditional Inference Trees
Number of trees: 500
Inputs: FormH, FormV, Uratio, Void, Transmis
Number of observations: 660
FormH FormV Uratio Void Transmis
2259311332 713202692 4250413991 50551193145 571666638
Error in print.default(occupied$Fan, predicted) :
invalid 'digits' argument"
This error only occurs when I change the dependent variable name from " Fan " (the variable I used to develop and test the script with) to any of the other dependent variables I need to test. All variables being tested are either continuous or categorical. Could anyone provide me with more information about this error and possibly the source in the coding?
2). The results are saving successfully to a file as a list however, I wish to save the data into a matrix that resembles: