要求:病例、对照1:4;
male+/-0, birth year+/-2, age+/-5
wts为5 2 1
前后两种方法都试过了,前面那种方法在LOG里又重复了一遍程序
后面的那个test,
data fakereg;setfakereg; timex=5; if case=0 then timex=6;
%gmatch(data=fakereg,group=case,id=id,
mvars=age sex,wts=2 1,dmaxk= 5 0,transf=0,
time=timex, dist=1,ncontls=2,seedca=234098,seedco=0489,
out=regccout,outnmco=matched,print=Y);
run;结果是:
WARNING: Apparent symbolic reference NCO not resolved.
WARNING: Apparent symbolic reference NCA not resolved.
WARNING: Apparent symbolic reference NCA not resolved.
ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The
condition was: &NCA*2
ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The
condition was: &NCO < %EVAL(&NCA*&NCONTLS)
ERROR: The macro GREEDY will stop executing.
1603 run;
因为字数超标,贴上原地址
https://bbs.pinggu.org/thread-1091720-1-1.html