Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: PCA with Missing Values (or other factor analysis)

From   David Svendsgaard <>
Subject   Re: st: PCA with Missing Values (or other factor analysis)
Date   Tue, 5 Jul 2011 08:30:53 -0400

What about changing the missing values to zero after you do the pca. I
would use pca based on the covariance matrix.

To change the missing values to zero, use
mvencode variablename  ,mv(0)

where variablename is the name of the variable having missing values. I
am assuming you have no missing values other than due to the
periods when the person was not in office.

David J Svendsgaard, PhD
EPA/ORD/NCEA/RTP, Mail Drop B-243-01
Research Triangle Park, NC 27711
Phone (919) 541-4186
Fax (919) 541-1818

From:	Nick Eubank <>
Date:	07/03/2011 12:17 AM
Subject:	st: PCA with Missing Values (or other factor analysis)
Sent by:

Hello All,

I'm trying to do a PCA on legislator votes (1 or 0), where different
legislators have overlapping but distinct terms. In other words,
legislator A is in office periods 1 and 2, legislator B is in office 2
and 3, so A has no votes in period 3 and B has no votes in period A. I
want to map their "ideal points" (i.e. pca predicted value from votes)
into the same space. But PCA obviously dislikes missing values.

Suggestion? I'm really open to any factor analysis algorithm.



PhD Student, Political Economics
Stanford University GSB
Cell: +1 (303) 918.6528
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index