The stata manual for collapse (p. 7) states that using aweight when calculating the sum with collapse normalizes the weights to sum to number of observations in a group. Can someone please explain what does that exactly mean? How does the exact formula look like for the weights when I calculate the sum in cell? And when should I use what weights (aweight vs f/i/pweight)?
Related Posts with Collapse Weight Normalization
Power for one group proportion where sample size is sufficient for lower 95%CI to be above a certain thresholdHi I am trying to replicate the sample size calculation from a 1:1 RCT. The sample size is based on…
CI for smoothed scaled Schoenfeld residuals after fitting Cox modelDear Stata list I would like to estimate a CI for the smoothed scaled Schoenfeld residuals after fi…
Census division by year fixed effectsHello stata community, My current research needs to account for time varying shocks , and therefore…
Endogeneity with Hausman test?Hello all, I'm finishing up my master thesis and I received feedback that I should include something…
margins - factor variables may not contain noninteger valuesDear all, i want to create a marginsplot of the variables returnoninvestment and pat_yr but I got t…
Subscribe to:
Post Comments (Atom)
0 Response to Collapse Weight Normalization
Post a Comment