[R] Random Forest

Weiwei Shi helprhelp at gmail.com
Mon Apr 23 17:26:29 CEST 2007


Hi, Ruben:

fit$confusion

if you provide your test data, then you can also access the confusion
matrix of test data by

fit$test$confusion

there are details of how to use randomForest by reading:
?randomForest

HTH,

Weiwei

On 4/22/07, Ruben Feldman <frubeng at gmail.com> wrote:
> Hi,
>
> I am trying to print out my confusion matrix after having created my random
> forest.
> I have put in this command:
> fit<-randomForest(MMS_ENABLED_HANDSET~.,data=dat,ntree=500,mtry=14,
> na.action=na.omit,confusion=TRUE)
>  but I can't get it to give me the confusion matrix, anyone know how this
> works?
>
> Thansk!
>
> Ruben
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>


-- 
Weiwei Shi, Ph.D
Research Scientist
GeneGO, Inc.

"Did you always know?"
"No, I did not. But I believed..."
---Matrix III



More information about the R-help mailing list