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: ml with a parameter between 0.07 and 1
From
"E. Paul Wileyto" <[email protected]>
To
[email protected]
Subject
Re: st: ml with a parameter between 0.07 and 1
Date
Wed, 24 Mar 2010 10:48:09 -0400
gen double `am'=0.07+(1-0.07)/(1+exp(-`a'))
Beatrice Crozza wrote:
Dear all,
I did a maximum likelihood and I constrained one parameter to be
between zero and one, in this way:
gen double `am'=1/(1+exp(-`a'))
and then I generated the standard error using the delta method.
Now I want to constrain the parameter to be between 0.07 and 1.
How can I do this?
Thank you very much
Best,
Bea
*
* 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/
--
E. Paul Wileyto, Ph.D.
Assistant Professor of Biostatistics
Tobacco Use Research Center
School of Medicine, U. of Pennsylvania
3535 Market Street, Suite 4100
Philadelphia, PA 19104-3309
215-746-7147
Fax: 215-746-7140
[email protected]
*
* 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/