timriffe / Spells

Alignment, clocking, and macro patterns of episodes in the life course
0 stars 3 forks source link

AC: weights! #11

Closed afcastrot closed 4 years ago

afcastrot commented 4 years ago

Incorporate one-dimensional (person) weights to calculations. Note: Stratification and clustering do not affect the estimates of the means so we are ignoring these two elements of the sample design. Just as we decided to ignore S.Es. (unless R's ask for them)

afcastrot commented 4 years ago

Included person weights using the {stats} function weighted.mean()