# Merging Jan-Dec IPUMS CPS files: How to set up weights correctly?

**URL:** <https://forum.ipums.org/t/merging-jan-dec-ipums-cps-files-how-to-set-up-weights-correctly/3487>\
**Category:** CPS\
**Created:** [April 24, 2020, 3:57am UTC](https://forum.ipums.org/t/merging-jan-dec-ipums-cps-files-how-to-set-up-weights-correctly/3487 "2020-04-24T03:57:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MPI\_research](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@MPI\_research](https://forum.ipums.org/u/MPI_research)\
**Post date:** [April 24, 2020, 3:57am UTC](https://forum.ipums.org/t/merging-jan-dec-ipums-cps-files-how-to-set-up-weights-correctly/3487/1 "2020-04-24T03:57:39Z")

</div>

Hello, I’d like to estimate the number of young adults enrolled in higher education for the nation overall and top states. To do so, I’d like to pool monthly files (Jan to Dec 2019) to produce an annual average (and boost the sample size for the state level analysis). I’m using STATA.

Since I’m merging 12 monthly files into one dataset, I have to adjust the person-level final weight variable (wtfinl). Is it correct to divide wtfinl by 12 and round the outcome? (STATA doesn’t work with noninteger frequency weights) Is my approach correct:

gen perwt12=(wtfinl)/12  
replace perwt12=round(perwt12)

Thank you,  
Jeanne

---

<div class="post-metadata">

**Author:** ![JeffBloem](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.ipums.org/jeffbloem/32/40_2.png) [@JeffBloem](https://forum.ipums.org/u/JeffBloem)\
**Post date:** [April 24, 2020, 3:12pm UTC](https://forum.ipums.org/t/merging-jan-dec-ipums-cps-files-how-to-set-up-weights-correctly/3487/2 "2020-04-24T15:12:28Z")

</div>

Your approach is approximately correct. A conceptually more precise approach is to multiply the sampling weight in sample x by (sample size of sample x)/(pooled sample size). Because the sample sizes of each basic monthly sample within a given year is roughly similar, these two approaches should be approximately equivalent.

---

<div class="post-metadata">

**Author:** ![MPI\_research](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@MPI\_research](https://forum.ipums.org/u/MPI_research)\
**Post date:** [April 24, 2020, 4:19pm UTC](https://forum.ipums.org/t/merging-jan-dec-ipums-cps-files-how-to-set-up-weights-correctly/3487/3 "2020-04-24T16:19:16Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![MPI\_research](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@MPI\_research](https://forum.ipums.org/u/MPI_research)\
**Post date:** [April 24, 2020, 8:26pm UTC](https://forum.ipums.org/t/merging-jan-dec-ipums-cps-files-how-to-set-up-weights-correctly/3487/4 "2020-04-24T20:26:56Z")

</div>

Thank you!
