s**f 发帖数: 365 | 1 请教一个sas问题哈,
我想比较黑人和白人(race)的平均年龄(age)的差别,t test。但是我是survey的数
据。试了半天surveymeans,但是总是说我的by race那句话有问题,跟total=有冲突。
PROC SURVEYMEANS DATA=ONE TOTAL=AAA(RENAME=(NSTRATUMCEN=_TOTAL_));
STRATA XXX;
WEIGHT XXX;
VAR AGE;
BY CRACE;
RUN;
ERROR: Not all BY variables from the ONE data set are present in the AAA
data
set, or some BY variables have different attributes in the two data
sets
咋办?咋办?咋办?
感谢!感谢!感谢! |
|