作者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/cn.aspx?n=bbs/Statistics/M.1638759734.A.778.html