cforest protocol
#version information: v0.3 #date of update: 9/Jan/2018 # Make the csv file for cforest analysis # An example of dataset prepared for cforest analysis # class | valiable 1 | valiable 2 | valiable 3 | ... # 1 | 100 | 50 | 100 | ... # 1 | 200 | 100 | 50 | ... # 2 | 50 | 200 | 100 | ... # ... | ... | ... | ... | ... # fisrt column is class information, and the others are data in this case library(party) #"party" is the name of R package used for analyses data_cf<-read.csv("filename.csv") #"filename" is the name of prepared csv file model.cf<-cforest(class~., data_cf, control=cforest_unbiased(ntree=1000)) print(model.cf) # information about number of tree, class information, and number of samples write.table(varimp(model.cf)," filename.txt") #Output the importance resulted from calculation. The "filename" is the name of output data which you can give it the way you want.