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: can someone recommend a command (please) to recover mean & SD of untruncated distribution from a truncated normal distribution. Thanks
From
Joerg Luedicke <[email protected]>
To
[email protected]
Subject
Re: st: can someone recommend a command (please) to recover mean & SD of untruncated distribution from a truncated normal distribution. Thanks
Date
Wed, 4 Sep 2013 19:25:12 -0400
You could use a univariate tobit model:
*---------------------------
clear
set obs 1000
set seed 123
gen x = rnormal()
sum x
replace x = -1 if x < -1
sum x
tobit x , ll(-1)
di "M = " _b[model:_cons]
di "SD = " _b[sigma:_cons]
*---------------------------
Joerg
On Wed, Sep 4, 2013 at 6:56 PM, Charley Greenwood
<[email protected]> wrote:
> I think it involves estimating a pdf by MLE. I have tried regressing constant only in truncreg but that didn't work.
>
> Thanks.
>
> Environmental Notice: Please consider the environment before printing this email.
>
> Confidentiality Notice: The content of this message and any attachments may be privileged, in confidence or sensitive. Any unauthorised use is expressly prohibited. If you have received this email in error please notify the sender, disregard and then delete the email. This email may have been corrupted or interfered with. Coffey International Limited cannot guarantee that the message you receive is the same as the message we sent. At Coffey International Limited's discretion we may send a paper copy for confirmation. In the event of any discrepancy between paper and electronic versions the paper version is to take precedence. No warranty is made that this email and its contents are free from computer viruses or other defects.
>
> CILDISCL0005
>
> *
> * 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/
*
* 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/