Message-ID: <81db4ee8-8d6c-c810-bfeb-508336641d1d@edu.uned.es>
Date: 2017-09-24T17:51:58Z
From: Juan Antonio Gil Pascual
Subject: [R-es] predict y tree
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 desp. 2.72
28040 Madrid
Tel?f. 91 3987279
Fax. 91 3987288