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]
st: Error message after NLSUR QUAIDS
From
"A.Silva-Montes" <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: Error message after NLSUR QUAIDS
Date
Sun, 8 Jan 2012 07:58:33 +0000
Dear Stata users,
I have Stata 11. I changed Poi's code for QUAIDS to 6 expenditure groups (Stata Journal, 8-4, 2008). The code works perfectly if I omit the last line of code (d61:....). However, with the last line of code, it appears an error with reference to the a1 (intercept). Just in case, "d" are coefficients of dummy variables. The error message and code are the following:
....
nlsur quaids @ w1-w5 lnp1-lnp6 lnx q1-q3 promcanned promfrozen xtmas, ifgnls nequations(5) param(a1 a2 a3 a4 a5 b1 b2 b3 b4 b5 g11 g12 g13 g14 g15 g22 g23 g24 g25 g33 g34 g35 g44 g45 g55 l1 l2 l3 l4 l5 d11 d12 d13 d14 d15 d21 d22 d23 d24 d25 d31 d32 d33 d34 d35 d41 d42 d43 d44 d45 d51 d52 d53 d54 d55 d61 d62 d63 d64 d65) nolog
nlcom (a1:_b[/a1]) (a2:_b[/a2]) (a3:_b[/a3]) (a4:_b[/a4]) (a5:_b[/a5]) (a6:1-_b[/a1]-_b[/a2]-_b[/a3]-_b[/a4]-_b[/a5]) ///
(b1:_b[/b1]) (b2:_b[/b2]) (b3:_b[/b3]) (b4:_b[/b4]) (b5:_b[/b5]) (b6:-_b[/b1]-_b[/b2]-_b[/b3]-_b[/b4]-_b[/b5]) ///
(l1:_b[/l1]) (l2:_b[/l2]) (l3:_b[/l3]) (l4:_b[/l4]) (l5:_b[/l5]) (l6:-_b[/l1]-_b[/l2]-_b[/l3]-_b[/l4]-_b[/l5]) ///
(g11:_b[/g11]) (g12:_b[/g12]) (g13:_b[/g13]) (g14:_b[/g14]) (g15:_b[/g15]) (g16:-_b[/g11]-_b[/g12]-_b[/g13]-_b[/g14]-_b[/g15]) ///
(g21:_b[/g12]) (g22:_b[/g22]) (g23:_b[/g23]) (g24:_b[/g24]) (g25:_b[/g25]) (g26:-_b[/g12]-_b[/g22]-_b[/g23]-_b[/g24]-_b[/g25]) ///
(g31:_b[/g13]) (g32:_b[/g23]) (g33:_b[/g33]) (g34:_b[/g34]) (g35:_b[/g35]) (g36:-_b[/g13]-_b[/g23]-_b[/g33]-_b[/g34]-_b[/g35]) ///
(g41:_b[/g14]) (g42:_b[/g24]) (g43:_b[/g34]) (g44:_b[/g44]) (g45:_b[/g45]) (g46:-_b[/g14]-_b[/g24]-_b[/g34]-_b[/g44]-_b[/g45]) ///
(g51:_b[/g15]) (g52:_b[/g25]) (g53:_b[/g35]) (g54:_b[/g45]) (g55:_b[/g55]) (g56:-_b[/g15]-_b[/g25]-_b[/g35]-_b[/g45]-_b[/g55]) ///
(g61:-_b[/g11]-_b[/g12]-_b[/g13]-_b[/g14]-_b[/g15]) (g62:-_b[/g12]-_b[/g22]-_b[/g23]-_b[/g24]-_b[/g25]) ///
(g63:-_b[/g13]-_b[/g23]-_b[/g33]-_b[/g34]-_b[/g35]) (g64:-_b[/g14]-_b[/g24]-_b[/g34]-_b[/g44]-_b[/g45]) ///
(g65:-_b[/g15]-_b[/g25]-_b[/g35]-_b[/g45]-_b[/g55]) (g66:_b[/g12]+_b[/g22]+_b[/g23]+_b[/g24]+_b[/g25]+_b[/g13]+_b[/g23]+_b[/g33]+_b[/g34]+_b[/g35]+_b[/g14]+_b[/g24]+_b[/g34]+_b[/g44]+_b[/g45]+_b[/g15]+_b[/g25]+_b[/g35]+_b[/g45]+_b[/g55] ///
(d11:_b[/d11]) (d12:_b[/d12]) (d13:_b[/d13]) (d14:_b[/d14]) (d15:_b[/d15]) (d16:-_b[/d11]-_b[/d12]-_b[/d13]-_b[/d14]-_b[/d15]) ///
(d21:_b[/d21]) (d22:_b[/d22]) (d23:_b[/d23]) (d24:_b[/d24]) (d25:_b[/d25]) (d26:-_b[/d21]-_b[/d22]-_b[/d23]-_b[/d24]-_b[/d25]) ///
(d31:_b[/d31]) (d32:_b[/d32]) (d33:_b[/d33]) (d34:_b[/d34]) (d35:_b[/d35]) (d36:-_b[/d31]-_b[/d32]-_b[/d33]-_b[/d34]-_b[/d35]) ///
(d41:_b[/d41]) (d42:_b[/d42]) (d43:_b[/d43]) (d44:_b[/d44]) (d45:_b[/d45]) (d46:-_b[/d41]-_b[/d42]-_b[/d43]-_b[/d44]-_b[/d45]) ///
(d51:_b[/d51]) (d52:_b[/d52]) (d53:_b[/d53]) (d54:_b[/d54]) (d55:_b[/d55]) (d56:-_b[/d51]-_b[/d52]-_b[/d53]-_b[/d54]-_b[/d55]) ///
(d61:_b[/d61]) (d62:_b[/d62]) (d63:_b[/d63]) (d64:_b[/d64]) (d65:_b[/d65]) (d66:-_b[/d61]-_b[/d62]-_b[/d63]-_b[/d64]-_b[/d65]), post iterate(999)
a1:_b invalid name
r(198);
end of do-file
r(198);
Thanks, Andres
*
* 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/