[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Comparing frequencies with pweight

From   Steven Samuels <>
Subject   Re: st: Comparing frequencies with pweight
Date   Sat, 15 Nov 2008 12:08:37 -0500

Martin's suggestions of -svy: tab- , with "organization' designated as the psu, is probably the right one. However, I'm not sure. With your specification "x" and "y" must be attributes of the organizations. One must be "wave". What is the other? -pweight- will weight the organizations by the number of clients. So, essentially you are classifying clients by the attribute of their organization and ignoring organization , except to compute standard errors. For example, if you classify organizations as "big" and "small", -svy: tab- would compare the proportions of clients who are in big organizations in 1995 and 2005 Is this what you want?

Are the 618 organizations a sample of a population? If so, please describe the design, for you need to take into account other aspects of the design. Final question: what do you mean by "adjust for N"?


On Nov 14, 2008, at 12:24 PM, Martin Weiss wrote:

Have you checked out -help svy: tabulate twoway-?

-------- Original-Nachricht --------
Datum: Fri, 14 Nov 2008 09:52:33 -0600
Von: Erick Guerrero <>
Betreff: st: Comparing frequencies with pweight

Hi, I need code for Stata to do descriptives - chi-squares with
p-weights and adjust for N.

I am trying to compare percentages between two waves (1995 and 2005) on
618 organizations.

The tab x y, col row chi with pweight (number of clients in each
organization) does not work, and when I use fweight gives me an inflated N. What is the proper way to compare these frequencies in organizations
and weight by number of clients and adjust for N in stata?


*   For searches and help try:

Martin Weiss
Hackersteigle 3
72076 Tübingen

Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN:
*   For searches and help try:

*   For searches and help try:

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