作者ChainYaw (<:3)~)
站內Statistics
標題[程式] SPSS跑logistic regression的問題
時間Sat Feb 13 03:37:00 2010
[軟體程式類別]:
SPSS
[程式問題]:
logistic regression
[軟體熟悉度]:
低(1~3個月)
[問題敘述]:
我的資料表格大概長這樣:
ID Sex Win Married Have_car Have_house
John 1 1 0 0 1
Mary 0 0 1 1 0
Leo 1 0 0 1 0
Gary 1 1 1 1 1
Susan 0 1 0 0 0
Sex中 '1'表示男性, '0'表示女性
其他項目中 '1'表示'有', '0'表示'無'
我想對上述資料跑binary logistic regression運算看'Win'與其他變數的關係
在[binary logistic regression]中,我在[Dependent]項目中選擇'Win'
在[Covariates]項目中選擇'Sex', 'Married', 'Have_car', 'Have_house'
我的問題是,我的原始資料就已經以0與1紀錄,
那我是否還需在[Categorical]中指定'Sex','Married','Have_car','Have_house'為
categorical covariates?
煩請各位先進指教
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 211.23.144.159
1F:→ coldwind0912:類別→類別 作binary logistic regression ?? 02/13 09:45
2F:→ coldwind0912:binary logistic regression 是 連續→類別(0.1)吧 02/13 09:46
3F:→ coldwind0912:類別→類別 應該用logit-log linear model吧 02/13 09:49
4F:→ KirinGuess:兩種各作一次,比較結果看看有沒有差別就可以知道了。 02/13 12:05
5F:→ KirinGuess:印象中是設定為類別變數會多列出參照類是什麼的資訊。 02/13 12:06
6F:推 abuu0929:XY都類別照樣可以跑logistic regression沒有問題 02/13 17:21
7F:→ abuu0929:類別X就用DUMMY VARIABLE的方式解釋 02/13 17:21