Hi Rick,

Thank you for the article! I am interested in figuring out how the weight statement actually works from a mathematical/practical point of view. Let's say in a dataset, we use a weights variable called WEIGHTS and it has 4 observations. The full dataset is as follows and the proc logistic function is run as such:

WEIGHTS: 1 , 2 , 1.5 , 3
A: 5, 10, 15, 20
B: Yes, No, Yes, No (encoded as 1,0,1,0)
Dependent_Variable: 1, 2, 3, 1

proc logistic data = above outest = _____ ;
class Dependent Variable (ref ="1");
weight WEIGHTS
model Dependent Variable = A B / link = glogit;
run;

How exactly is the weight statement affecting each observation? Does it affect both the independent/dependent variable? What would the dataset look like after the weighting is done before the model?

Many thanks,
Kevin