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

Re: st: Using a weight variable in regression

From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: Using a weight variable in regression
Date   Tue, 19 Jul 2005 19:11:48 -0500

At 04:38 PM 7/19/2005 -0500, Mosi A. Ifatunji wrote:

I have a dataset that is weighted. The "weight calculation" has been made
into a variable. How do I use this variable in a regression model? That is,
both OLS and LOGIT? Do I just add the variable to the model(s) or include in
the syntax after the comma?

Look up -help weight-. The exact command depends on the nature of your weights. The most common are probably fweights (frequency weights) and pweights (sampling weights). If you also have things like clustering and/or stratification you may want to look at the help for -svy-. The Users Guide has some good discussions of weights if you have a copy of it.

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:

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