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, is already up and running.

[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" <>
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

*   For searches and help try:

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

Fax: 215-746-7140
*   For searches and help try:

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