Bookmark and Share

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: Multivariate imputation using chained equations


From   "Jacqueline Jodl" <[email protected]>
To   <[email protected]>
Subject   RE: st: Multivariate imputation using chained equations
Date   Tue, 9 Jul 2013 21:37:21 -0400

Thanks for your response.

I use Stata 12 and I am using the official mi impute chained...

Are there benefits to Patrick Royston's ICE?

In terms of your Btw, 

recode <varlist> (-1 = .a) (-2 = .b) (-3 = .c) (-4 = .d) (-5 = .e) (
-6 = .f ) ( -7 = .g )

...how does that distinguish between those that I want to impute (-1, -2,
-3) and those that I do not (-4, -5, -7)?  Sorry to be so thick. 

Thanks again. 

Jackie 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Stas Kolenikov
Sent: Tuesday, July 9, 2013 10:26 AM
To: [email protected]
Subject: Re: st: Multivariate imputation using chained equations

What version of Stata do you have? Do you use the official -mi impute
chained- or Patrick Royston's -ice-?

Btw, I would use something like

recode <varlist> (-1 = .a) (-2 = .b) (-3 = .c) (-4 = .d) (-5 = .e) (
-6 = .f ) ( -7 = .g )

to retain the information about missing values. That way, you could also use
-ice, conditional- or -mi impute chained (regress if inlist( thisvar, .a,
.b, .c) ) thisvar-

-- Stas Kolenikov, PhD, PStat (SSC)
-- Senior Survey Statistician, Abt SRBI
-- Opinions stated in this email are mine only, and do not reflect the
position of my employer
-- http://stas.kolenikov.name



On Mon, Jul 8, 2013 at 11:45 AM, Jacqueline Jodl <[email protected]>
wrote:
> I am attempting multivariate imputation using chained equations.
>
> My longitudinal dataset (NLSY79) codes the missing data that I wish to 
> impute as -1, -2, and -3 (don't know, refusal, and invalid skip, 
> respectively). The data that I do NOT want to impute is coded at -4, 
> -5, and
> -7 (noninterviews and valid skips).
>
> I have included the following in my syntax to account for the 
> observations that I wish to impute:
>
> ds*
>      local allvars = r(varlist)
>      foreach var of local allvars {
>         replace `var' = . if `var' == -1 | `var' == -2 | `var' == -3
>      }
>
> Is there a similar approach to including syntax that excludes the data 
> points coded as -4, -5, and -7?
>
> Thanks,
> Jacqueline Jodl
> Teachers College
> Columbia University
> New York, New York
>
> *
> *   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/

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index