Bookmark and Share

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]

st: NLS per individual


From   Anton Goeree <[email protected]>
To   [email protected]
Subject   st: NLS per individual
Date   Sun, 21 Oct 2012 16:30:16 +0200

Dear Statalist users,

Currently, I'm doing the following NLS on my dataset:
nl (p = 1 / (1 + exp( - {sigma} * (x - y ^ {beta} )))), nolog

The dataset contains 500 observations: 50 id's and 10 p/x/y per id.
The variable p is either zero or one, and x,y are values between 50 and 200.

I'd like to get individual estimates (for each id) for "sigma" and
"beta". I could do - bysort id: nl (p = 1 / (1 + exp( - {sigma} * (x -
y ^ {beta} )))), nolog - of course, but that would give me a messy
list of 50 outputs. Does any of you know if it is possible to put the
regression estimates into two new variables?

Thanks in advance for any aid!
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index