[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: how to weight
At 01:29 PM 3/10/2004 -0500, Lijun Song wrote:
Type -help weight-. In SPSS, you might have
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?
weight by wgt
reg y x [fw = wgt]
For better or for worse, SPSS lets you give the weight command once and it
then holds for all subsequent procedures; Stata makes you keep on repeating
the weighting as a parameter on your commands (unless you happen to be
using the svy commands). But, Stata's weighting features are more powerful
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 are
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
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc
* For searches and help try: