Displaying 1 result from an estimated 1 matches for "newclusterdata".
2009 Nov 25
0
predict(): NoSuchMethodError
...king on a code which clusters attributes from a data set,
then uses a linear regression model to predict NA values in the data set.
The code works for almost all cases, but then errors out on a case that
seems like it should work the same.
This is the line of code that is giving me the problem:
NewClusterData[j,att] <- predict(cl,newdata = ClusterData[j,],type="class")
Here is the code for the arguments:
algName <- "LinearRegression"
Formula <- as.formula(paste(as.name(att), " ~ ", paste(otherAtts, collapse=
"+")))
myAlg <- get(algName)
cl <- myA...