Hi Tjun,
It sounds like you need to go on an NA hunt (e.g: find your missing values
in the data).
Maybe try running this code:
ss - which(apply(is.na(forsen[,-f]), 1, sum)0)
forsen[ss,-f]
And try to see if you can find these rows.
You can also use the above data to find which rows to remove
I am trying to use the package mda
And this is my command
mdfit-mda(factor(forsen[,f]) ~ .,data=forsen[,-f],subclasses=sc)
But I keep getting this error message on a particular data set
Error in maxdist[l] - x[l, i] :
NAs are not allowed in subscripted assignments
Can anyone help ? Thanks
2 matches
Mail list logo