Why do I get the message "weight variables not found"
when I specify the pweight() option?
||Specifying survey weights in gllamm
Minjeong Jeon, University of California, Berkeley
This problem is related to specifying weight variables in the
pweight(stubname) specifies that variables
contain sampling weights for level 1, 2, etc.
pweight() is very similar to specifying
For instance, suppose you specify
pweight(pw) for sampling weights in your data consisting of three levels.
Then you need at least one of these three variables:
pw3 for sampling weights at levels 1, 2, and 3.
If one or two of these variables do not exist, it is assumed that the corresponding weights are 1.
But if none of the variables exist, you get the error message "weight variables not found".
It is important to remember that the weight variables must
end in a number corresponding to the level to which they apply and
that only the "stub" (the variable name up to the number) is specified in the
So if the variables are called
use the syntax:
gllamm ... , pweight(pw)
Remember you have to type
pw2, inside the parentheses.
As for frequency weights, you do not need sampling weights at all levels.
For example, if you have only
pw3 in your data set, then
gllamm would assume that the sampling weights in level 1 are equal to 1.
Examples and documentation