Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: constant in nonlinear squares


From   Maritza Sotomayor <[email protected]>
To   [email protected]
Subject   st: constant in nonlinear squares
Date   Tue, 3 Apr 2007 12:07:18 -0700 (PDT)

Dear statalist members:
I'm trying to include a constant in a nonlinear function. I used the
substitutable expression with Model 2 option -hasconstant- which
needs a parameter. I generated a constant variable (column of ones,
called constante) but I get an error r(498) "constante not found
among parameters".
 -nl (iitt = 1/(1+exp(-1*{xb: constante lavrgdp ldpcgdp ltc
lroyalsale latarif lagi lavgest ldcap}))),  nolog
hasconstant(constante)-
constante not found among parameters
check hasconstant() option or try using nl without it
r(498);

Another alternative was to include "constante" without indicating
-hasconstant- but this variable turned out to be not significant in
various specification. 
So my question is how to introduce a constant as a parameter in this
particular nonlinear square function. I need to compare my results
with a without a constant. I've just started to work with Stata 9.0 .
I was reading Baum's book "Introduction to Modern Econometrics with
Stata" which is helping me a lot to work with Stata but there is not
much information about nonlinear squares.
Thanks
Maritza Sotomayor


 
____________________________________________________________________________________
The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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