Is that how you got your data or are > you using real data? I am using some synthatic data I happend to have. > argument X is to be a dataframe > not a matrix (mat??). Could that be giving you > problems? Do you get > better results with as.data.frame(mat)? no, even with data.frame, it gives the same error