n******y 发帖数: 192 | | d*******y 发帖数: 1154 | 2 恩
做classification tree的一个软件 | z**k 发帖数: 378 | 3 Classification And Regression Tree, there's also a commercial software
【在 n******y 的大作中提到】 : 是个软件么
| s*********e 发帖数: 1051 | 4 go to amazon and check "classification and regression tree" by leo brieman. | s*r 发帖数: 2757 | | n******y 发帖数: 192 | | s**********y 发帖数: 38 | | c*********t 发帖数: 340 | | l*********s 发帖数: 5409 | 9 what is the corresponding procedure in SAS? | s**********y 发帖数: 38 | 10 非常感谢! 请问还有别的软件吗? 公司要求GLM, LOGISTIC REGRESSION , CART,
我会点CHAID. 请问cart 跟CHAID 差不多吗? | | | d*******o 发帖数: 493 | 11 R的rpart 比较经典了,大家都用它。
SAS的Proc Arboretum太贵了,一般人用不起。 | l*********s 发帖数: 5409 | 12 CHAID is one of decision tree techniques.
【在 s**********y 的大作中提到】 : 非常感谢! 请问还有别的软件吗? 公司要求GLM, LOGISTIC REGRESSION , CART, : 我会点CHAID. 请问cart 跟CHAID 差不多吗?
| s**********y 发帖数: 38 | 13 Classification Tree example
Let's use the dataframe kyphosis to predict a type of deformation (kyphosis)
after surgery, from age in months (Age), number of vertebrae involved (
Number), and the highest vertebrae operated on (Start). # Classification
Tree with rpart
library(rpart)
# grow tree
fit <- rpart(Kyphosis ~ Age + Number + Start,
method="class", data=kyphosis)
上面是我从http://www.statmethods.net/advstats/cart.html摘录的code.How to get dataframe from R? 下面是我的程序,但没有任何结果出来, R 也没有ERROR
A=read.delim(file='D:/L5/D6.TXT')
library(rpart)
# grow tree
fit <- rpart(resp ~ M2+MGOD2+MI2+MO_10+p2,
method="class", data=A)
printcp(fit) # display the results
plotcp(fit) # visualize cross-validation results
summary(fit) # detailed summary of splits
# plot tree
plot(fit, uniform=TRUE,
main="Classification Tree for A")
text(fit, use.n=TRUE, all=TRUE, cex=.8)
# create attractive postscript plot of tree
post(fit, file = "c:/tree.ps",
title = "Classification Tree for D6")
非常感谢各位的帮助。希望能指点我一下上面的程序的问题。 | n*****5 发帖数: 61 | 14 Is your dependent variable categorical? Do you have any categorical data in
your file? Use "factor" function to change
data type first. If it still doesn't work, check controls. You might need to
reset control parameters.
kyphosis)
序,但没有任何结果出来, R 也没有ERROR
【在 s**********y 的大作中提到】 : Classification Tree example : Let's use the dataframe kyphosis to predict a type of deformation (kyphosis) : after surgery, from age in months (Age), number of vertebrae involved ( : Number), and the highest vertebrae operated on (Start). # Classification : Tree with rpart : library(rpart) : # grow tree : fit <- rpart(Kyphosis ~ Age + Number + Start, : method="class", data=kyphosis) : 上面是我从http://www.statmethods.net/advstats/cart.html摘录的code.How to get dataframe from R? 下面是我的程序,但没有任何结果出来, R 也没有ERROR
| s**********y 发帖数: 38 | 15 Thank you very much for your suggestion.
My dependent variable is binary(1,0), I changed to (yes,no).It still doesn't
work. I use Factor function too. It works if I use method="anova". But this
is not CART, right?
I am trying to use Clementine. Is C&R tree CART? Which one is using Chaid?
Is there any video tutor I can learn how to use it? |
|