www.gllamm.org

Why do I get the message "weight variables not found?" when I specify the weight() option?

Title   Specifying frequency weights in gllamm
Author Minjeong Jeon, University of California, Berkeley
Date July 2012

This problem has to do with specifying weight variables in the weight(stubname) option. For example, weight(wt) specifies that variables wt1, wt2, etc. contain frequency weights. wt is just the stub of the variable names. The variable names must begin with the same stub followed by a number. The numbers in the variable names (wt1, wt2, etc.) determine to which level each weight applies. For instance, wt1 is the frequency weight at level 1 and wt2 is the frequency weight at level 2, etc. You do not need weight variables at all levels, but for the levels with no weight variables, gllamm assumes the weights are equal to 1.

For example, suppose you have a three-level of data, but you have only myweight2 in the dataset. Specify myweight in the weight() option in the gllamm command:

gllamm ... , weight(myweight)
It is very important to use myweight (not myweight2) inside the parentheses for weight. Since there are no myweight1 and myweight3 in the data set, gllamm assumes that frequency weights at level 1 and 3 (myweight1 and myweight3) are equal to 1.

Examples and documentation