-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
Description
I noticed that some commands like gegen take weights but actually do not use them. For example, if you try to generate a count or total of a variable and use weights. Below I provide an example where the total is 5, but I thought it would be 25 if using the weights. Perhaps it would be good to stop allowing the use of weights and give an error if the user uses them for these particular commands.
set obs 5
g units=1
g weight=5
gegen total=total(units) [w=weight]
sum total// Variable | Obs Mean Std. Dev. Min Max
// -------------+---------------------------------------------------------
// total | 5 5 0 5 5