[程式] 請教SAS資料寫入問題

看板Statistics作者時間4年前 (2019/08/04 11:06), 編輯推噓1(100)
留言1則, 1人參與, 4年前最新討論串1/1
[軟體程式類別]: 請填入軟體程式類別,例如:SAS、SPSS、AMOS、R、STATA、EVIEWS...等 SAS [程式問題]: 資料處理、迴歸、敘述統計、logistic、probit...等 資料處理 [軟體熟悉度]: 請把以下不需要的部份刪除 新手 [問題敘述]: 大家好 不好意思想求救SAS資料寫入問題 因為大概半年沒碰SAS 糾結了一個小時還是沒有辦法完整地輸入資料 因為輸入資料只是做分析的最基本 但沒輸入資料就沒辦法繼續 想跟大家請益 謝謝! 程式碼如下 其實我如果Counts後面不加任何informat 部分的data points in Counts 欄位其實是可以輸出的 但就是無法全部 應該是因為value長度的問題 很抱歉小的學藝不精 向各位高手請教 謝謝 [程式範例]: data activity; input Age $ Gender $ 8-9 Race $7. Poverty $4. Limitation :$ Counts 4. @@; cards; 10–14 M whites low Major 5 10–14 M whites med Major 21 10–14 M whites hig Major 21 10–14 M other low Major 53 10–14 M other med Major 102 10–14 M other hig Major 52 10–14 F whites low Major 1 10–14 F whites med Major 11 10–14 F whites hig Major 15 10–14 F other low Major 21 10–14 F other med Major 52 10–14 F other hig Major 28 15–19 M whites low Major 1 15–19 M whites med Major 13 15–19 M whites hig Major 21 15–19 M other low Major 36 15–19 M other med Major 86 15–19 M other hig Major 40 15–19 F whites low Major 6 15–19 F whites med Major 8 15–19 F whites hig Major 17 15–19 F other low Major 42 15–19 F other med Major 73 15–19 F other hig Major 26 10–14 M whites low Other 2 10–14 M whites med Other 14 10–14 M whites hig Other 6 10–14 M other low Other 16 10–14 M other med Other 36 10–14 M other hig Other 21 10–14 F whites low Other 2 10–14 F whites med Other 2 10–14 F whites hig Other 3 10–14 F other low Other 17 10–14 F other med Other 33 10–14 F other hig Other 12 15–19 M whites low Other 2 15–19 M whites med Other 8 15–19 M whites hig Other 7 15–19 M other low Other 28 15–19 M other med Other 42 15–19 M other hig Other 23 15–19 F whites low Other 3 15–19 F whites med Other 7 15–19 F whites hig Other 2 15–19 F other low Other 31 15–19 F other med Other 36 15–19 F other hig Other 29 10–14 M whites low None 102 10–14 M whites med None 336 10–14 M whites hig None 285 10–14 M other low None 827 10–14 M other med None 1518 10–14 M other hig None 667 10–14 F whites low None 87 10–14 F whites med None 304 10–14 F whites hig None 302 10–14 F other low None 846 10–14 F other med None 1452 10–14 F other hig None 687 15–19 M whites low None 91 15–19 M whites med None 326 15–19 M whites hig None 313 15–19 M other low None 888 15–19 M other med None 1509 15–19 M other hig None 725 15–19 F whites low None 115 15–19 F whites med None 344 15–19 F whites hig None 286 15–19 F other low None 817 15–19 F other med None 1500 15–19 F other hig None 716 ; run; proc print data=activity; run; -- -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 68.180.87.229 (美國) ※ 文章網址: https://www.ptt.cc/bbs/Statistics/M.1564887972.A.21F.html

09/16 01:48, 4年前 , 1F
你加@@就不要限制字元數 還有欄位不要空格
09/16 01:48, 1F
文章代碼(AID): #1THaka8V (Statistics)