Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Tunga Kantarcı <tungakantarci@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: getting the standard deviation of predictions |
Date | Thu, 25 Nov 2010 22:29:47 +0100 |
Hello, I would like to ask a question about the stdp and stdf commands. My aim is to calculate a confidence interval for a prediction. For this I need the standard deviation of the prediction. My aim is "not" to calculate a prediction interval. For this I would have needed the standard deviation of the prediction error. Hence, I simply wish to get the standard deviation of the prediction. I follow these steps: 1. regress y x z 2. predict yhat, xb 3. predict stdvyhat, stdp Now at this point I would like to ask the difference between the stdp and stdf options. As far as I understand stdp gives the standard error of the prediction stdf gives the standard error of the prediction error My question: Could you please confirm that "stdp" indeed gives the standard deviation of the prediction? I am a bit confused because one book says actually that "stdf" gives "the standard error of the forecast". And actually I thought so far that "stdf" gives the standard deviation of a prediction. I was never aware of the "stdp" command. I now suspect that the stdp is a new command that appeared with Stata 11. Thanks in advance. * * 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/