Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
</tt><tt>>Datum:=A019.11.2010=A006:07PM<br>
</tt><tt>>Thema:=A0RE:=A0Antwort:=A0st:=A0Adding=A0Up=A0restrictions=
=A0in=A0LA/AIDS=A0model<br>
</tt><tt>><br>
</tt><tt>>Dear=A0Rich,<br>
</tt><tt>>Thank=A0you=A0so=A0much=A0for=A0your=A0reply.=A0Yes,=A0you=
=A0are=A0right,=A0if=A0I=A0dropped<br>
</tt><tt>>constraint=A01=A0to=A07,=A0it=A0works,=A0and=A0no=A0errors=
=A0were=A0reported.=A0I=A0am=A0a<br>
</tt><tt>>beginner,<br>
</tt><tt>>so=A0you=A0mean=A0that=A0if=A0I=A0dropped=A0constraint=A01=
=A0to=A07,=A0I=A0can=A0also=A0calculate<br>
</tt><tt>>the<br>
</tt><tt>>alpha,=A0beta,=A0and=A0gamma=A0of=A0equation=A05=A0by=A0th=
e=A0adding=A0up=A0restrictions,<br>
</tt><tt>>which<br>
</tt><tt>>are=A0(1-alfa),=A0(0-beta),=A0and=A0(0-gamma)?<br>
</tt><tt>><br>
</tt><tt>>I=A0appreciate=A0your=A0help.<br>
</tt><tt>><br>
</tt><tt>>Regards,<br>
</tt><tt>>Xia<br>
</tt><tt>>-----Original=A0Message-----<br>
</tt><tt>>From:[email protected]<br>
</tt><tt>>[<a href=3D"mailto:[email protected]">m=
ailto:[email protected]</a>]=A0On=A0Behalf=A0Of=A0Ri=
chard<br>
</tt><tt>>Ochmann<br>
</tt><tt>>Sent:=A0Friday,=A0November=A019,=A02010=A010:53=A0AM<br>
</tt><tt>>To:[email protected]<br>
</tt><tt>>Subject:=A0Antwort:=A0st:=A0Adding=A0Up=A0restrictions=A0i=
n=A0LA/AIDS=A0model<br>
</tt><tt>><br>
</tt><tt>>...<br>
</tt><tt>>well,=A0in=A0the=A0AIDS,=A0adding-up=A0is=A0fulfilled=A0by=
=A0definition,=A0right?=A0(see<br>
</tt><tt>>Deaton,=A0Muellbauer,=A01980,=A0An=A0Almost=A0Ideal=A0Dema=
nd=A0System,=A0AER)<br>
</tt><tt>>this=A0is=A0why=A0-=A0as=A0you=A0mention=A0as=A0well=A0-=A0=
you=A0can=A0only=A0estimate=A0J-1<br>
</tt><tt>>equations<br>
</tt><tt>>of=A0a=A0system=A0of=A0J=A0equations,=A0which=A0you=A0have=
=A0done,=A0as=A0i=A0undertand.<br>
</tt><tt>>if=A0this=A0is=A0the=A0case,=A0you=A0cannot=A0constrain=A0=
explicitly=A0on=A0the=A0Jth<br>
</tt><tt>>equation,<br>
</tt><tt>>which=A0you=A0though=A0try=A0to=A0do=A0in=A0constraint=A01=
=A0to=A07.=A0how=A0should=A0stata<br>
</tt><tt>>find=A0the<br>
</tt><tt>>Jth=A0equation?=A0rather,=A0adding-up=A0constraints=A0hold=
=A0implicitly=A0here=A0when<br>
</tt><tt>>you<br>
</tt><tt>>infer=A0the=A0results=A0for=A0the=A0Jth=A0equation=A0resid=
ually.=A0thus,=A0you=A0can=A0just<br>
</tt><tt>>drop<br>
</tt><tt>>constraint=A01=A0to=A07,=A0if=A0i=A0understand=A0your=A0ap=
proach=A0correctly.<br>
</tt><tt>><br>
</tt><tt>>best,=A0rich<br>
</tt><tt>><br>
</tt><tt>>[email protected]=A0schrieb=A0am=A019.1=
1.2010=A016:57:59:<br>
</tt><tt>><br>
</tt><tt>>>=A0Hello=A0all,<br>
</tt><tt>>><br>
</tt><tt>>>=A0I=A0have=A0a=A0problem=A0about=A0the=A0correct=A0wa=
y=A0to=A0make=A0adding=A0up<br>
</tt><tt>>restrictions<br>
</tt><tt>>when<br>
</tt><tt>>>=A0I=A0estimated=A0the=A0LA/AIDS=A0model=A0by=A0SUREG.=
=A0I=A0estimated=A05=A0commodities<br>
</tt><tt>>so=A0I<br>
</tt><tt>>>=A0should=A0run=A04=A0equations.=A0=A0The=A0followings=
=A0are=A0my=A0codes:<br>
</tt><tt>>><br>
</tt><tt>>>=A0//adding=A0up//<br>
</tt><tt>>>=A0constraint=A0define=A01<br>
</tt><tt>>[q1]_cons+[q2]_cons+[q3]_cons+[q4]_cons+[q5]_cons=3D1<br>
</tt><tt>>>=A0//Alfa//<br>
</tt><tt>>><br>
</tt><tt>>>=A0constraint=A0define=A02=A0[q1]lnp1+[q2]lnp1+[q3]lnp=
1+[q4]lnp1+[q5]lnp1=3D0<br>
</tt><tt>><br>
</tt><tt>>>=A0=A0=A0=A0=A0=A0=A0=A0=A0//Gama//<br>
</tt><tt>>>=A0constraint=A0define=A03=A0[q1]lnp2+[q2]lnp2+[q3]lnp=
2+[q4]lnp2+[q5]lnp2=3D0<br>
</tt><tt>>>=A0constraint=A0define=A04=A0[q1]lnp3+[q2]lnp3+[q3]lnp=
3+[q4]lnp3+[q5]lnp3=3D0<br>
</tt><tt>>>=A0constraint=A0define=A05=A0[q1]lnp4+[q2]lnp4+[q3]lnp=
4+[q4]lnp4+[q5]lnp4=3D0<br>
</tt><tt>>>=A0constraint=A0define=A06=A0[q1]lnp5+[q2]lnp5+[q3]lnp=
5+[q4]lnp5+[q5]lnp5=3D0<br>
</tt><tt>>><br>
</tt><tt>>>=A0constraint=A0define=A07=A0[q1]lnmp+[q2]lnmp+[q3]lnm=
p+[q4]lnmp+[q5]lnmp=3D0<br>
</tt><tt>>>=A0//Beta//<br>
</tt><tt>>><br>
</tt><tt>>>=A0//homogeneity//<br>
</tt><tt>>>=A0constraint=A0define=A08=A0[q1]lnp1+[q1]lnp2+[q1]lnp=
3+[q1]lnp4+[q1]lnp5=3D0<br>
</tt><tt>>>=A0constraint=A0define=A09=A0[q2]lnp1+[q2]lnp2+[q2]lnp=
3+[q2]lnp4+[q2]lnp5=3D0<br>
</tt><tt>>>=A0constraint=A0define=A010=A0[q3]lnp1+[q3]lnp2+[q3]ln=
p3+[q3]lnp4+[q3]lnp5=3D0<br>
</tt><tt>>>=A0constraint=A0define=A011=A0[q4]lnp1+[q4]lnp2+[q4]ln=
p3+[q4]lnp4+[q4]lnp5=3D0<br>
</tt><tt>>><br>
</tt><tt>>>=A0//symmetry//<br>
</tt><tt>>>=A0constraint=A0define=A012=A0[q1]lnp2=3D[q2]lnp1<br>
</tt><tt>>>=A0constraint=A0define=A013=A0[q1]lnp3=3D[q3]lnp1<br>
</tt><tt>>>=A0constraint=A0define=A014=A0[q1]lnp4=3D[q4]lnp1<br>
</tt><tt>>>=A0constraint=A0define=A015=A0[q2]lnp3=3D[q3]lnp2<br>
</tt><tt>>>=A0constraint=A0define=A016=A0[q2]lnp4=3D[q4]lnp2<br>
</tt><tt>>>=A0constraint=A0define=A017=A0[q3]lnp4=3D[q4]lnp3<br>
</tt><tt>>><br>
</tt><tt>>>=A0global=A0demand1=A0"(q1:=A0w1=A0lnp1=A0lnp2=A0=
lnp3=A0lnp4=A0lnp5=A0lnmp)"<br>
</tt><tt>>>=A0global=A0demand2=A0"(q2:=A0w2=A0lnp1=A0lnp2=A0=
lnp3=A0lnp4=A0lnp5=A0lnmp)"<br>
</tt><tt>>>=A0global=A0demand3=A0"(q3:=A0w3=A0lnp1=A0lnp2=A0=
lnp3=A0lnp4=A0lnp5=A0lnmp)"<br>
</tt><tt>>>=A0global=A0demand4=A0"(q4:=A0w4=A0lnp1=A0lnp2=A0=
lnp3=A0lnp4=A0lnp5=A0lnmp)"<br>
</tt><tt>>><br>
</tt><tt>>>=A0sureg=A0$demand1=A0$demand2=A0$demand3=A0$demand4,=A0=
const(1=A02=A03=A04=A05=A06=A07=A08=A09<br>
</tt><tt>>10=A011<br>
</tt><tt>>>=A012=A013=A014=A015=A016=A017)=A0isure<br>
</tt><tt>>><br>
</tt><tt>>>=A0But=A0STATA=A0reports=A0me=A0that<br>
</tt><tt>>>=A0=A0(note:=A0constraint=A0number=A01=A0caused=A0erro=
r=A0r(303))<br>
</tt><tt>>>=A0(note:=A0constraint=A0number=A02=A0caused=A0error=A0=
r(303))<br>
</tt><tt>>>=A0(note:=A0constraint=A0number=A03=A0caused=A0error=A0=
r(303))<br>
</tt><tt>>>=A0(note:=A0constraint=A0number=A04=A0caused=A0error=A0=
r(303))<br>
</tt><tt>>>=A0(note:=A0constraint=A0number=A05=A0caused=A0error=A0=
r(303))<br>
</tt><tt>>>=A0(note:=A0constraint=A0number=A06=A0caused=A0error=A0=
r(303))<br>
</tt><tt>>>=A0(note:=A0constraint=A0number=A07=A0caused=A0error=A0=
r(303))<br>
</tt><tt>>>=A0which=A0means=A0the=A0code=A0adding-up=A0constraint=
s=A0have=A0some=A0problems=A0.<br>
</tt><tt>>><br>
</tt><tt>>>=A0Can=A0anybody=A0point=A0out=A0why=A0they=A0are=A0wr=
ong?<br>
</tt><tt>>><br>
</tt><tt>>><br>
</tt><tt>>>=A0Thank=A0you=A0very=A0much<br>
</tt><tt>>><br>
</tt><tt>>><br>
</tt><tt>>>=A0Xia<br>
</tt><tt>>><br>
</tt><tt>>><br>
</tt><tt>>><br>
</tt><tt>>><br>
</tt><tt>>>=A0*<br>
</tt><tt>>>=A0*=A0=A0=A0For=A0searches=A0and=A0help=A0try:<br>
</tt><tt>>>=A0*=A0=A0=A0<a href=3D"http://www.stata.com/help.cgi?=
search">http://www.stata.com/help.cgi?search</a><br>
</tt><tt>>>=A0*=A0=A0=A0<a href=3D"http://www.stata.com/support/s=
tatalist/faq">http://www.stata.com/support/statalist/faq</a><br>
</tt><tt>>>=A0*=A0=A0=A0<a href=3D"http://www.ats.ucla.edu/stat/s=
tata/">http://www.ats.ucla.edu/stat/stata/</a><br>
</tt><tt>><br>
</tt><tt>>*<br>
</tt><tt>>*=A0=A0=A0For=A0searches=A0and=A0help=A0try:<br>
</tt><tt>>*=A0=A0=A0<a href=3D"http://www.stata.com/help.cgi?search"=
>http://www.stata.com/help.cgi?search</a><br>
</tt><tt>>*=A0=A0=A0<a href=3D"http://www.stata.com/support/statalis=
t/faq">http://www.stata.com/support/statalist/faq</a><br>
</tt><tt>>*=A0=A0=A0<a href=3D"http://www.ats.ucla.edu/stat/stata/">=
http://www.ats.ucla.edu/stat/stata/</a><br>
</tt><tt>><br>
</tt><tt>><br>
</tt><tt>>*<br>
</tt><tt>>*=A0=A0=A0For=A0searches=A0and=A0help=A0try:<br>
</tt><tt>>*=A0=A0=A0<a href=3D"http://www.stata.com/help.cgi?search"=
>http://www.stata.com/help.cgi?search</a><br>
</tt><tt>>*=A0=A0=A0<a href=3D"http://www.stata.com/support/statalis=
t/faq">http://www.stata.com/support/statalist/faq</a><br>
</tt><tt>>*=A0=A0=A0<a href=3D"http://www.ats.ucla.edu/stat/stata/">=
http://www.ats.ucla.edu/stat/stata/</a></tt></body></html>=
--0__=4EBBFD72DFA5AE728f9e8a93df938690918c4EBBFD72DFA5AE72--
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/