search for: mfclass

Displaying 3 results from an estimated 3 matches for "mfclass".

Did you mean: fclass
2006 Mar 09
0
variable '%s' was fitted with class... in predict.nls()
...d the code (online) I found the 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" }...
2007 May 01
1
Levels attribute in integer columns created by model.frame()
The following is evidence of what is surely an undesirable feature. The issue is the handling, in calls to model.frame(), of an explanatory variable that has been derived as an unclassed factor. (Ross Darnell drew this to my attention.) ## Data are slightly modified from p.191 of MASS > worms <- data.frame(sex=gl(2,6), Dose=factor(rep(2^(0:5),2)), +
2008 Nov 28
2
AIC function and Step function
I would like to figure out the equations for calculating "AIC" in both "step() function" and "AIC () function". They are different. Then I just type "step" in the R console, and found the "AIC" used in "step() function" is "extractAIC". I went to the R help, and found: "The criterion used is AIC = - 2*log L + k *