[程式] SAS Proc tabulate Class 變數找不到

看板Statistics作者 (zxcccc)時間4年前 (2021/12/06 11:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
[軟體程式類別]: SAS [程式問題]: 資料處理 [軟體熟悉度]: 新手 [問題敘述]: 在使用Proc Tabulate 的時候 出現Error: Class data was not foundin the preload dataset or was incompatitable with the primary data set of then same name. [程式範例]: data shift; input Post $13. Baseline $13. ; cards; Normal Normal Normal Abnormal, NCS Mormal Abnormal, CS Abnormal, NCS Normal .... ; run; 總共9筆資料的資料集 分別是上面三種的排列組合 然後另一個Dataset skin 為 Post Baseline Normal Abnormal, NCS Normal Abnormal, NCS 然後我用Proc tabulate Proc tabulate data = skin class = shift; class Post Baseline; classlev Post Baseline; table (Post = '' all = ''), (Baseline = '' all = '')*(N = '' colpctn = ''); keyword N colpctn all; run; 然後就出現Error Class variable Post was not foundin the preloas data set or was imcompitable with the primary dataset variableof the same name. 試過很多方法都沒辦法解決 也已經把兩個data的變數設成一樣的length 跟 format 請問這樣要怎麼改 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 60.250.75.217 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Statistics/M.1638759734.A.778.html
文章代碼(AID): #1XhNqsTu (Statistics)