Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: simple way to create missing data that is "missing at random" from a small datset


From   Suzy <[email protected]>
To   [email protected]
Subject   Re: st: simple way to create missing data that is "missing at random" from a small datset
Date   Fri, 24 Feb 2006 16:58:53 -0500

Thank you for the stata command syntax - I will try this.
Best,
Suzy

Maarten buis wrote:

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/





*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index