Total Drek

Or, the thoughts of several frustrated intellectuals on Sociology, Gaming, Science, Politics, Science Fiction, Religion, and whatever the hell else strikes their fancy. There is absolutely no reason why you should read this blog. None. Seriously. Go hit your back button. It's up in the upper left-hand corner of your browser... it says "Back." Don't say we didn't warn you.

Thursday, June 02, 2005

Can't hurt.

So... does anyone know how to produce summary statistics, including means and modes, in STATA while using p-weights? I'm fairly decent with my chosen stats package but this is getting into that arcane realm that only a handful of people (who probably wear orange robes and live in caves in the Bay Area) are actually familiar with.

4 Comments:

Anonymous alan said...

I did this a lot in a previous paper: append "[pw=WEIGHTVARIABLE]" to your command. Do that without the quotes, but with the brackets.

Thursday, June 02, 2005 7:15:00 PM  
Blogger Drek said...

Ah, but you see, that's the trick. The "sum" command and most of its bretheren won't work with pweights- only fweights, aweights, and iweights.

Thursday, June 02, 2005 11:07:00 PM  
Anonymous alan said...

Ah, I forgot about that. I'll poke around, as I seem to remember finding some way to get good summary statistics with pweights a while back.

Saturday, June 04, 2005 7:54:00 AM  
Blogger jeremy said...

I think you get the same results as what you would think pweights should produce if you use the iweight/aweight instead. There is a Stata FAQ on this topic (why can't you use pweights with summarize?). You can also use the svymean command.

Saturday, June 04, 2005 12:54:00 PM  

Post a Comment

<< Home

Site Meter