Dear R-users,

I have a problem with randomForest{outlier}.
After running the following code ( that produces a silly data set and builds
a model with randomForest ):

#######################
library(randomForest)
set.seed(0)

## build data set
X <- rbind(  matrix( runif(n=400,min=-1,max=1), ncol = 10 ) ,
rep(1,times= 10 )  )
Y <- matrix( nrow = nrow(X), ncol = 1)
for( i in (1:nrow(X))){   Y[i,1] <- sign( sum ( X[i,])) }

## build model
mdl.rf <-  randomForest( x = X, y = as.factor(Y) , proximity=TRUE ,  mtry =
10 , ntree = 500)
summary (outlier(mdl.rf) )
#######################

I get the following output:

  Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's
                                                     41


Can anyone explain why the output of outlier only returns NA's ?

Thanks
Pau

	[[alternative HTML version deleted]]

