Suzy:
Something like this:
*--------begin example----------
sysuse auto, clear
gen p = invlogit(.1*mpg + rep78 -8)
sum p
hist p
replace price = . if uniform() < p
*-----------end example-----------
HTH,
Maarten
--- Suzy <[email protected]> wrote:
> I would like to know if Stata has a nifty way of allowing the user to
> purposely delete a proportion of data (from specified variables) so that
> the missingness of the data meets the missing at random (MAR)
> assumption. I generated a small, complete dataset and would like to
> work through some multiple imputation procedures/formulas manually.
>
> Thank you,
> Suzy
>
>
>
> *
> * 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/
>
-----------------------------------------
between 1/2/2006 and 31/3/2006 I will be
visiting the UCLA, during this time the
best way to reach me is by email
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214
+31 20 5986715
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
*
* 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/