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 on April 23, and its replacement, statalist.org is already up and running.


[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 <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
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/


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