Date: Wed, 22 Dec 2004 13:16:10 -0800
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "David L. Cassell" <cassell.david@EPAMAIL.EPA.GOV>
Subject: Re: Negative binomial regression with weighted data
Content-type: text/plain; charset=US-ASCII
Alain Girard <alain.girard@UMONTREAL.CA> wrote:
> I want to do a negative binomial regression and i have weighted data.
> In genmod the weight statement is a scale weight. It's look not realy
> subject weight.
> I think to use the frequency statement in genmod. But all my weight
> between 0 and 1, the frequency statement remove the subject with
> lower than 1 (and i lost all my subject !!!).
First of all, the FREQ statement will round down. If you give it a
frequency of 100.4, it will truncate to 100. If you give it a frequency
of 0.4, it will truncate to zero. A zero frequency (or a zero weight)
will ensure that the given record won't be used in the analysis.
Next, I don't see how your numbers can be weights at all. If your
values are between 0 and 1 (not including 1, since none of your subjects
were retained when you used the FREQ statement), then they have no
as weights. They certainly couldn't be sampling weights.
Perhaps you have some values which represent some manner of distribution
of responses. If so, you still cannot use them, since there is no way
reclaim any sense of the sample size from a 'distribution' of data.
Perhaps they have been 'scaled' first (a bad idea). Perhaps you know a
set sample size, and these 'weights' are the real weights, divided by
n. If so, multiply back by n! Get the real weights (or frequencies, or
whatever they are) and go from there.
Please write back (to the list, not to me personally) and explain what
your 'weights' really are, and what you hope to achieve with them.
David Cassell, CSC
Senior computing specialist