作者olive741230 (妮仔)
看板Statistics
標題[程式] R的warning message
時間Thu Nov 26 17:17:28 2009
[軟體程式類別]:
R
[程式問題]:
quantreg package
(分量迴歸裡的crq)
[軟體熟悉度]:
低(1~3個月)
[問題敘述]:
程式跑出warning message,但仍有結果出來
不懂warning message是在說有什麼問題
[程式範例]:
fitb<-crq(Surv(log(data$price))~data$score+data$negative+data$shipping+data$bonus+data$volume+data$month,data=data,method="Por")
fitb
以上跑出來是沒有問題的
可是下面這個出現warning
fitc<-crq(Surv(log(data$price),data$opening)~data$score+data$negative+data$shipping+data$bonus+data$volume+data$month,data=data,method="Por")
Warning message:
In Surv(log(data$price), data$opening) :
Invalid status value, converted to NA
fitc
但仍有結果出現 而且是不一樣的
差別在下面fitc有輸入data$opening
想知道這樣的結果是發生了什麼事情?
謝謝~~~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.123.162.109
※ 編輯: olive741230 來自: 140.123.162.109 (11/26 17:19)
1F:→ clickhere:data$opening是right censor的indicator? 取值0 or 1? 11/27 02:34