Hi, I am using the margins macro with a gamma distribution and a log link to output the average marginal effect of a continuous variable within levels of a categorical variable. When I run the macro, after some time, I get the following error. I believe this error is associated with the continuous variable (var3) in the effect statement because when I take it out the margins run without error for the categorical variable in the margins statement (var2). I use the following code: %Margins(data = dat,
response = var1,
model = var2|var3 var2|var4 var2|var5 var6-var12
effect = var3,
margins = var2,
class = var2 var5 var6 var_id,
dist = gamma,
link = log,
geesubject = var_id,
geecorr = ind,
options = diff cl);
... View more