search for: predbug

Displaying 1 result from an estimated 1 matches for "predbug".

Did you mean: pr_debug
2003 Mar 26
5
predict (PR#2686)
...;t occur in the prediction data either. (At least if `drop.unused.levels' was set to TRUE, which the default.) test> scrunge.data.2_ data.frame( y=runif( 3), disc=factor( c( 'cat', 'dog', 'cat'), levels=c( 'cat', 'dog', 'earwig'))) test> lm.predbug.2_ lm( y~disc, data=scrunge.data.2) test> predict(lm.predbug.2, newdata=scrunge.data.2) Error in model.frame.default(object, data, xlev = xlev) : factor disc has new level(s) earwig A cure for this seems to be to add the commented line below towards the end of `model.frame.default'...