Dear kit (love that name!), scott m., and joseph c.,
Thank you for the responses. I utilized each of the various command language
suggestions with success. I have the hamilton book already and am up to
regression diagnostics. How I missed -drawnorm-, as well, I would hope only
attests to reaching absorption levels over the last couple of months as a
new Stata user and is not a prediction regarding long term skill! I did have
one startling moment of cold sweated chill when I read a note a few days
back (I have become an avid statalist reader since purchasing the software)
within which nick(-mysterious, prickly, brilliant, beloved-) referred to
himself during a recent statalist exchange as a '...nonstatistician,..' !
Goodness, now that gave me a fright!
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Christopher F
Baum
Sent: Wednesday, August 18, 2004 8:01 PM
To: [email protected]
Subject: st: Re: generating dataset with specific params
wrote
After reviewing the faq's and the archive I've been unable to find
Guidance or a module that would assist in generating data sets from scratch
or at least near it. For instance....
Kit wrote
. set obs 109
obs was 0, now 109
. g double v1 = 1.74*invnorm(uniform())+10.62
. su
Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
v1 | 109 10.6402 1.734998 6.296962 14.36916
This would work better with a larger sample:
. set obs 10900
obs was 0, now 10900
. g double v1 = 1.74*invnorm(uniform())+10.62
. su
Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
v1 | 10900 10.61984 1.736441 3.801061 17.71306
Kit
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/