Estimados compañeros hace unos dÃas instale la versión última de R
(3.4.1) en windows 10 y hoy me tiene loco el siguiente error cuando
ejecuto predict para un árbol de clasificación-regresión. El problema da
incluso con el ejemplo del comando predict
library(tree)
data(shuttle, package="MASS")
shuttle.tr <- tree(use ~ ., shuttle, subset=1:253,
mindev=1e-6, minsize=2)
shuttle.tr
shuttle1 <- shuttle[254:256, ] # 3 missing cases
predict(shuttle.tr, shuttle1)
Da el error:
Error in pred1.tree(object, tree.matrix(newdata)) : object 'VR_pred1'
not found Sabe alguien ¿cuál es el problema? ¿Os ocurre a vosotros lo
mismo?
Un cordial saludo, Juan
--
Juan Antonio Gil Pascual
Profesor de MetodologÃa de la Investigación Cuantitativa
correo: jgil en edu.uned.es
web: www.uned.es/personal/jgil
Dpto. MIDE
Facultad de Educación
c/Juan del Rosal, 14
<https://maps.google.com/?q=c/Juan+del+Rosal,+14&entry=gmail&source=g>
desp. 2.72
28040 Madrid
Tel?f. 91 3987279
Fax. 91 3987288