Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: how to weight

From   "Lijun Song" <[email protected]>
To   <[email protected]>
Subject   Re: st: how to weight
Date   Wed, 10 Mar 2004 17:42:18 -0500

Hi there

I come to another questions. In the original spss data, there are three 
kinds of weights. One is gender weights, oen is rural-urban weights,and 
another is the combination of gender and rural-urban weights. What is 
the application difference between these three weights?

I am not familiar with the spss data. So I am also confused regarding 
what should I use in stata. The outputs have shown that the weights are 
noninteger, so that I could not use fw. Then between aw and pw, which 
one should I use?



---------- Original message ----------
From: [email protected]
To: [email protected]; [email protected]
Sent: Wednesday, March 10, 2004 1:44:46 PM
Subject: Re: st: how to weight

At 01:29 PM 3/10/2004 -0500, Lijun Song wrote:
>Hi All,
>I just transfered one data from spss into stata. The original spss data
>ever are weighted. After transference, however, the stata data are not
>weighted. How to weight the resultant stata data, then?

Type -help weight-.  In SPSS, you might have

weight by wgt

In Stata,

reg y x [fw = wgt]

For better or for worse, SPSS lets you give the weight command once and 
then holds for all subsequent procedures; Stata makes you keep on 
the weighting as a parameter on your commands (unless you happen to be 
using the svy commands).  But, Stata's weighting features are more 
than what is available in SPSS.

Also, depending on what kinds of weights you are using, the -expand- 
command can be used to expand the data set.  This is handy if, say, you 
analyzing data that has been collapsed into a table, and the weights 
represent the cell frequencies.

Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX:    (574)288-4373
HOME:   (574)289-5227
EMAIL:  [email protected]
WWW (personal):
WWW (department):

*   For searches and help try:

*   For searches and help try:

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