I am trying to make plots that take into account survey weights. This a survey of the US population. To start with I want to explore the data using pairs, plot, coplots and lattice. Are there specialized methods that handle survey weights for plotting? Any pointers? Anupam. [[alternative HTML version deleted]]
Dear Anupam, I may be wrong, but I don't think that there's any standard method to use in plotting with case weights. I can think of two approaches, however: (1) If you have a large sample, and if the range of the weights isn't too large, you could sample your observations with probability of inclusion in the plot proportional to the case weights. (2) You could plot the points with "size" proportional to the square root of the case weights (i.e., area proportional to the weights). I hope that this helps, John At 10:46 AM 9/10/2003 -0400, TyagiAnupam at aol.com wrote:>I am trying to make plots that take into account survey weights. This a >survey of the US population. To start with I want to explore the data >using pairs, >plot, coplots and lattice. Are there specialized methods that handle survey >weights for plotting? Any pointers? >Anupam.----------------------------------------------------- John Fox Department of Sociology McMaster University Hamilton, Ontario, Canada L8S 4M4 email: jfox at mcmaster.ca phone: 905-525-9140x23604 web: www.socsci.mcmaster.ca/jfox
Hi John, thanks for the suggestion. What would one consider as large range?> summary(finalwt)Min. 1st Qu. Median Mean 3rd Qu. Max. 1.8 192.1 462.7 872.8 1018.0 67150.0 The sample is large: about 250,000. How large a sample should one draw from the sample? There are also plenty of missing values. Anupam. In a message dated 9/12/03 10:48:06 PM Pacific Daylight Time, jfox@mcmaster.ca writes:> Dear Anupam, > > I may be wrong, but I don't think that there's any standard method to use > in plotting with case weights. I can think of two approaches, however: (1) > If you have a large sample, and if the range of the weights isn't too > large, you could sample your observations with probability of inclusion in > the plot proportional to the case weights. (2) You could plot the points > with "size" proportional to the square root of the case weights (i.e., area > proportional to the weights). > > I hope that this helps, > John >[[alternative HTML version deleted]]