Displaying 1 result from an estimated 1 matches for "ordnotok".
2006 Mar 09
0
variable '%s' was fitted with class... in predict.nls()
...following:
I've trid to decipher the code, but most people are much better R
programmers that I, and I'm not sure what's going on here. DOes this mean
I have to use the same data frame I used to fit the model, in order to fit
"new" data?
.checkMFClasses <- function(cl, m, ordNotOK = FALSE)
{
new <- sapply(m, .MFclass)
if(length(new) == 0) return()
old <- cl[names(new)]
if(!ordNotOK) {
old[old == "ordered"] <- "factor"
new[new == "ordered"] <- "factor"
}
## ordered is OK as a substitut...