Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: problem with nlsur quaids


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: problem with nlsur quaids
Date   Sun, 2 Oct 2011 01:16:14 +0100

In the line

     scalar `l13' = -`l1' - `l2' - `l3'- `l4'- `l5'- `l6'- `l7'- `l8'-
`l9'- `l10'- `l11-`l12'

you have omitted an ' and in the line

                 replace `w9' = `a9' + `g91'*`lnp1' + `g92'*`lnp2' +
`g93'*`lnp3' +   ///
                               `g94'*`lnp4' + `g95'*`lnp5'+
`g96'*`lnp6'+ `g97'*`lnp7' + ///
                               `g98'*`lnp8' + `g99'*`lnp9'+
`g910'*`lnp10'+ `g911'*`lnp11' + ///
                               `g912'*`lnp12''+ `g913'*`lnp13'+
`b9'*(`lnexp'-`lnpindex')+
`l9'/`bofp'*(`lnexp' - `lnpindex')^2

you have one too many.

There are I think other such problems in your file: see -hexdump- for
a command that counts characters such as ` and '.

Your naming practices could bite you. Does 113 mean 11,3 or 1,13? If
you have indexes >9 it is best to use 11_3 and 1_13 to distinguish.

Nick


On Sat, Oct 1, 2011 at 10:23 PM, minti <Mintewab.Bezabih@economics.gu.se> wrote:
>
> I am having problems estimating a quaids system with 13 goods (12 equations)
> and I cannot pinpoint where I went wrong. I keep on getting the messsage
> nlsurquaids returned 198. Below are my codes for the nlsur and quaids.
> Many thanks in advance.
> minti
>
*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index