作者zxcccc (zxcccc)
看板Statistics
標題[程式] SAS Proc tabulate Class 變數找不到
時間Mon Dec 6 11:02:12 2021
[軟體程式類別]:
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://webptt.com/m.aspx?n=bbs/Statistics/M.1638759734.A.778.html