[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: quaids model

From   "Brian P. Poi" <>
Subject   Re: st: quaids model
Date   Mon, 7 Dec 2009 11:25:39 -0600 (CST)

On Mon, 7 Dec 2009, Cristiana Rodrigues wrote:


I am trying specify one Quaids Model to estimate 18 demand equations, but the - nlsur - model accepts only three equations, if I specify one more or one less, I receive the following error message:

nlsurquaids returned 102
verify that nlsurquaids is a function evaluator program

My model have the form:

nlsur quaids @ w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 lnp1-lnp18 lnexp anosestudo estudomulher /// adolescented  adultod idosod totalpes sexo norte nordeste sul sudeste renda [aw=peso], ifgnls nequations(17) param(a1 a2 a3 a4 a5   ///
a6 a7 a8  a9 a10 a11 a12 a13 a14 a15 a16 a17 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15 b16 b17 g11 g12 g13        ///
g14 g15 g16 g17 g18 g19 g110 g111 g112 g113 g114 g115 g116 g117 g22 g23 g24 g25 g26 g27 g28 g29 g210 g211 g212 g213   ///
g214 g215 g216 g217 g33 g34 g35 g36 g37 g38 g39 g310 g311 g312 g313 g314 g315 g316 g317 g44 g45 g46 g47 g48 g49 g410  ///
g411 g412 g413 g414 g415 g416 g417 g55 g56 g57 g58 g59 g510 g511 g512 g513 g514 g515 g516 g517 g66 g67 g68 g69 g610  ///
g611 g612 g613 g614 g615 g616 g617 g77 g78 g79 g710 g711 g712 g713 g714 g715 g716 g717 g88 g89 g810 g811 g812 g813   ///
g814 g815 g816 g817 g99 g910 g911 g912 g913 g914 g915 g916 g917 g1010 g1011 g1012 g1013 g1014 g1015 g1016 g1017    ///
g1111 g1112 g1113 g1114 g1115 g1116 g1117 g1212 g1213 g1214 g1215 g1216 g1217 g1313 g1314 g1315 g1316 g1317     ///
g1414 g1415 g1416 g1417 g1515 g1516 g1517 g1616 g1617 g1717 l1 l2 l3 l4 l5 l6 l7 l8 l9 l10 l11 l12 l13 l14 l15 l16 l17) nolog

Return code 102 means that "too few variables specified" Without seeing the "nlsurquaids" program itself, my strong guess is that the -syntax- statement is incorrect.

In your specification you have 17 dependent variables and (18 + 13 =) 31 independent variables, for a total of 48 variables. Therefore, your -syntax- statement should be

   syntax varlist(min=48 max=48) if, at(name)

  -- Brian Poi

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index