I am trying to replicate code from SAS to Stata, and I am also struggling with specifying weights. Here is the SAS code, for example:
Code:
proc nlmixed data= mydata; odds= exp(b0)*(1+b1*A + b2*B + b3*A*B); model y ~ binary(odds/(1+odds)); replicate ipw; run;
Code:
menl y= {odds:}/(1+{odds:}), define(odds:exp({b0})*(1+ {b1}*A + {b2}*B + {b3}* A*B))
Many thanks for your time and help. I very much appreciate it.
Best,
Walid
0 Response to From SAS to Stata: sampling weight for nonlinear models (menl)?
Post a Comment