search for: incoterm

Displaying 2 results from an estimated 2 matches for "incoterm".

Did you mean: cincoter
2008 Aug 05
1
Extracting variable names of final model in stepAIC
...for the purpose of variable selection. > lmModel <- lm(y~.,data.frame(y=y, x=x)) > step <- stepAIC(lmModel, direction="both") > step$anova Stepwise Model Path Analysis of Deviance Table Initial Model: y ~ x.Market.Price + x.Quantity + x.Country + x.Incoterm + x.Channel + x.PaymentTerm Final Model: y ~ x.Quantity + x.Country + x.Incoterm + x.PaymentTerm Step Df Deviance Resid. Df Resid. Dev AIC 1 1067 852257.2 7268.945 2 - x.Channel 1 127.9724 1068 852385.2 7267...
2008 Jul 31
1
predict rpart: new data has new level
Hi. I uses rpart to build a regression tree. Y is continuous. Now, I try to predict on a new set of data. In the new set of data, one of my x (call Incoterm, a factor) has a new level. I wonder why the error below appears as the guide says "For factor predictors, if an observation contains a level not used to grow the tree, it is left at the deepest possible node and frame$yval at the node is the prediction. " Many thanks....