Hi,
I get the following error message when calling the macro below: ERROR 22-322: Syntax error, expecting one of the following: *, /, =.
This message is related to is related to line 4278 (roptions). The macro executes when I remove the roptions parameter. In my regular Genmod model, the hospital variable is a numeric where hospital stay =1 and no hospital stay =0. My object is to compute the predicted probabilities and test whether the likelihood of a hospital stay differs based on whether one has Medicaid or not, by site.
For this macro, I referenced sample 38038: Predictive margins and average marginal effects (http://support.sas.com/kb/63/038.html)
Thank you for your help.
NOTE: The MARGINS macro used 0.42 seconds.
4274
4275 %Margins(data = test,
4276 class = medicaid site,
4277 response = hospital,
4278 roptions = event = '1',
4279 model = medicaid site medicaid*site,
4280 dist = binomial,
4281 link = logit,
4282 geesubject = site, geecorr = exch,
4283 margins = medicaid,
4284 at = site,
4285 options = cl diff)
61 (&roptions)
-
22
61 (&roptions)
-
76
ERROR 22-322: Syntax error, expecting one of the following: *, /, =.
ERROR 76-322: Syntax error, statement will be ignored.
NOTE: The MARGINS macro used 0.58 seconds.
Edit by KB: fixed the link to the Knowledge Base.
... View more