Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: RE: RE: non linear regression


From   "Rune Logstein" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: RE: RE: non linear regression
Date   Thu, 24 Feb 2005 15:55:22 +0100

How do I write a driver program?

If I go to the non linear regression menu I find a option that is called
- user supplied function. Is this a way of defining specific non linear
functions?

Rune


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: 24. februar 2005 14:07
To: [email protected]
Subject: st: RE: RE: RE: non linear regression

You need to write your own driver program
for -nl-. 

-sin()- and -cos()- are built-in functions. 

Nick 
[email protected] 

Rune Logstein
 
> I have found the family of -nl- commands but I did not found 
> any option
> for formulating sin cos functions 

David Harrison
 
> Try the help/manual for -nl-

Rune Logstein 
 
> In my econometric project I intend to estimate a model with
> nonlinearities. The model could be:
> 
> lnC = A+a*sin(b*x)+B*cos(d*x) +k*lnE+g*lnS, 
> 
> where A, a, b, B, d, k and g are parameters to be estimated. 
> C and x, E
> and S are variables. (the meaning of the sign " * ", means d 
> multiplied
> by x).
> 
> The interesting thing with this model is the nonlinear trigonometric
> part of the model. Does anyone know how to formulate/programme such a
> nonlinear function in stata? 

*
*   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/


*
*   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