I was trying to produced bagged importance estimates of attributes in earth using the caret package with the following commands:

  fit2 <- bagEarth(loyalty ~ ., data=model1, B = 10)
  bagImpGCV <- varImp(fit2,value="gcv")

My bootstrap estimates are produced however the second command "varImp" produces the following error:

   Error in UseMethod("varImp") : no applicable method for "varImp"

Not sure what is going on, any advice would be appreciated,
Thanks,
Joe Retzer




      
	[[alternative HTML version deleted]]


