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]
Re: st: non linear equation difficulties with nl function evaluation program
From
Maarten buis <[email protected]>
To
[email protected]
Subject
Re: st: non linear equation difficulties with nl function evaluation program
Date
Wed, 25 Aug 2010 07:57:28 +0000 (GMT)
--- On Wed, 25/8/10, Carolina Lopez wrote:
> The thing is that n is the number of cities were the
> operator is present using the same type of contract, so it
> varies by city and year.
>
> I already calculated this, and introduced it in the data as
> a variable, to then simplify estimations.
You can just hard code the name of that variable in your
evaluator program. Say your variable is called n, than
you type n whenever you want to use n.
Anyhow, trying to program an equation like that right in one
go is just not going to be productive. The way to program is
to take a lot of small steps, rather than one big step. So
you must start with a much simpler equation, and than
gradualy expand it till you reach your final equation.
Hope this helps,
Maarten
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://www.maartenbuis.nl
--------------------------
*
* 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/