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
Regards
Tjun Kiat
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.