[問題] SPSS跑虛擬變數迴歸分析的問題

看板Statistics作者 (最小的代價 最高的收益)時間14年前 (2010/10/24 00:34), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
我第一次輸入時沒有用轉換功能轉換虛擬變數 結果可以跑 後來我用轉換功能後反而出現警告 我找不到原因 請板上的大大可以幫我看一下嗎 麻煩了 謝謝 ps另外問個小問題 虛擬變數是有五個變數要設四個 所以跑spss時要排除的那一個都要是第一個變數嗎 因為我是把最後一個變數排除 是因為降出問題嗎 SPSS的訊息如下: 一、沒有設定轉換虛擬變數輸出結果 GET DATA /TYPE=XLSX /FILE='C:\Documents and Settings\User \桌面\99.10.23跑SPSS問卷調查取組中距版.xlsx' /SHEET=name '半彈性公車' /CELLRANGE=full /READNAMES=on /ASSUMEDSTRWIDTH=32767. REGRESSION /DESCRIPTIVES MEAN STDDEV CORR SIG N /MISSING LISTWISE /STATISTICS COEFF OUTS R ANOVA COLLIN TOL /CRITERIA=PIN(.05) POUT(.10) /NOORIGIN /DEPENDENT Y /METHOD=ENTER X1 X2 X41 X42 X43 X44 X45 X46 X5 X6 X71 X72 X73 X74 X75 X76 X77 X78 X79 X8 /SCATTERPLOT=(*ZRESID ,Y) /RESIDUALS DURBIN HIST(ZRESID) NORM(ZRESID) /CASEWISE PLOT(ZRESID) OUTLIERS(3). 二、有設定轉換虛擬變數輸出結果 RECODE X41 (1=1) (2=0) (3=0) (4=0) (5=0) (6=0) (7=0) INTO X41. VARIABLE LABELS X41 '通勤VS其他'. EXECUTE. RECODE X42 (1=0) (2=1) (3=0) (4=0) (5=0) (6=0) (7=0) INTO X42. V ARIABLE LABELS X42 '通學VS其他'. EXECUTE. RECODE X43 (1=0) (2=0) (3=1) (4=0) (5=0) (6=0) (7=0) INTO X43. VARIABLE LABELS X43 '商務VS其他'. EXECUTE. RECODE X44 (1=0) (2=0) (3=0) (4=1) (5=0) (6=0) (7=0) INTO X44. VARIABLE LABELS X44 '醫療VS其他'. EXECUTE. RECODE X45 (1=0) (2=0) (3=0) (4=0) (5=1) (6=0) (7=0) INTO X45. VARIABLE LABELS X45 '購物VS其他'. EXECUTE. RECODE X46 (1=0) (2=0) (3=0) (4=0) (5=0) (6=1) (7=0) INTO X46. VARIABLE LABELS X46 '社交VS其他'. EXECUTE. RECODE X71 (1=1) (2=0) (3=0) (4=0) (5=0) (6=0) (7=0) (8=0) (9=0) (10=0) INTO X71. VARIABLE LABELS X71 '工商業VS其他'. EXECUTE. RECODE X72 (1=0) (2=1) (3=0) (4=0) (5=0) (6=0) (7=0) (8=0) (9=0) (10=0) INTO X72. VARIABLE LABELS X72 '自由業VS其他'. EXECUTE. RECODE X73 (1=0) (2=0) (3=1) (4=0) (5=0) (6=0) (7=0) (8=0) (9=0) (10=0) INTO X73. VARIABLE LABELS X73 '服務業VS其他'. EXECUTE. R ECODE X74 (1=0) (2=0) (3=0) (4=1) (5=0) (6=0) (7=0) (8=0) (9=0) (10=0) INTO X74. VARIABLE LABELS X74 '軍公教VS其他'. EXECUTE. RECODE X75 (1=0) (2=0) (3=0) (4=0) (5=1) (6=0) (7=0) (8=0) (9=0) (10=0) INTO X75. VARIABLE LABELS X75 '學生VS其他'. EXECUTE. RECODE X76 (1=0) (2=0) (3=0) (4=0) (5=0) (6=1) (7=0) (8=0) (9=0) (10=0) INTO X76. VARIABLE LABELS X76 '農林漁牧VS其他'. EXECUTE. RECODE X77 (1=0) (2=0) (3=0) (4=0) (5=0) (6=0) (7=1) (8=0) (9=0) (10=0) INTO X77. VARIABLE LABELS X77 '家管VS其他'. EXECUTE. RECODE X78 (1=0) (2=0) (3=0) (4=0) (5=0) (6=0) (7=0) (8=1) (9=0) (10=0) INTO X78. VARIABLE LABELS X78 '退休VS其他'. EXECUTE. RECODE X79 (1=0) (2=0) (3=0) (4=0) (5=0) (6=0) (7=0) (8=0) (9=1) (10=0) INTO X79. VARIABLE LABELS X79 '待業VS其他'. EXECUTE. RECODE X5 (1=1) (2=0) INTO X5. VARIABLE LABELS X5 '男VS女'. EXECUTE. REGRESSION /DESCRIPTIVES MEAN STDDEV CORR SIG N /MISSING LISTWISE /STATISTICS COEFF OUTS R ANOVA COLLIN TOL /CRITERIA=PIN(.05) POUT(.10) /NOORIGIN /DEPENDENT Y /METHOD=ENTER X1 X2 X41 X42 X43 X44 X45 X46 X5 X6 X71 X72 X73 X74 X75 X76 X77 X78 X79 X8 X3 /SCATTERPLOT=(*ZRESID ,Y) /RESIDUALS DURBIN HIST(ZRESID) NORM(ZRESID) /CASEWISE PLOT(ZRESID) OUTLIERS(3). -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.70.98.216

10/24 06:57, , 1F
用一般線性模型就可以
10/24 06:57, 1F
文章代碼(AID): #1CmmwmAG (Statistics)