[R] stepAICc function (based on MASS:::stepAIC.default)

2009-05-05 Thread Christoph Scherber
Dear all, I have tried to modify the code of MASS:::stepAIC.default(), dropterm() and addterm() to use AICc instead of AIC for model selection. The code is appended below. Somehow the calculations are still not correct and I would be grateful if anyone could have a look at what might be wrong w

Re: [R] stepAICc

2009-04-30 Thread ONKELINX, Thierry
keep <- sapply(strsplit(nmadd, ":", fixed = TRUE), function(x){ whereMarginal <- match(x, names(marginal)) if(!all(is.na(whereMarginal))){ if(length(x) == 1){

[R] stepAICc

2009-04-30 Thread Dr. Christoph Scherber
Dear R users, Would it be difficult to change the code of stepAIC (from the MASS library) to use AICc instead of AIC? It would be great to know of someone has tried this already. Best wishes Christoph. __ R-help@r-project.org mailing list https://stat