I have a macro for propensity score as follow:
%macro prop_score (DatIn=, CatVar=, ConVar=, Outcome=, Event=, Iter=);
proc logistic data = &DatIn descending;
class &CatVar;
model &Outcome (event = "&Event") = &CatVar &ConVar /link=logit FIRTH Maxiter=&Iter ;
output out = ps_los pred = ps xbeta = logit_ps;
run;
%mend prop_score;
When I try to evoke the Macro with the following, it kept giving me ERROR 22-322: Expecting an integer constant at the MAXITER option but I did specify an integer?
%prop_score (DatIn = Dat,
CatVar = %Str( A B C D) ,
ConVar = E,
Outcome = F,
Event = D,
Iter=15000);