I haven't used NLEstimate before, so I'm not entirely sure how to approach fixing this.
Errors:
WARNING: Apparent invocation of macro NLESTIMATE not resolved.
387 %NLEstimate(instore=house, label=RR (female/male), f=logistic(b_p1+b_p2)/logistic(b_p1))
-
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
My code:
proc SurveyLOGISTIC data=ep2015;
freq house_prep;
Cluster _PSU;
Stratum _STSTR;
Weight _llcpwt;
Class house_prep sex age_cat race edu income marry employ cvd asth diabete cvd physical mental / param=glm;
model house_prep(event="No")= sex age_cat race edu income marry employ cvd asth diabete cvd physical mental;
lsmeans sex / e ilink;
store out=house;
run;
%NLEstimate(instore=house, label=RR (female/male), f=logistic(b_p1+b_p2)/logistic(b_p1))