# Needed help on using the PERWT variable to create replicate samples in RStudio

**URL:** <https://forum.ipums.org/t/needed-help-on-using-the-perwt-variable-to-create-replicate-samples-in-rstudio/1366>\
**Category:** USA\
**Created:** [July 19, 2016, 10:09pm UTC](https://forum.ipums.org/t/needed-help-on-using-the-perwt-variable-to-create-replicate-samples-in-rstudio/1366 "2016-07-19T22:09:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ash1094](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@ash1094](https://forum.ipums.org/u/ash1094)\
**Post date:** [July 19, 2016, 10:09pm UTC](https://forum.ipums.org/t/needed-help-on-using-the-perwt-variable-to-create-replicate-samples-in-rstudio/1366/1 "2016-07-19T22:09:00Z")

</div>

Hi! I’m using ACS data for 2011-2014. I needed help on using the PERWT variable to create replicate samples. I understand there are easy ways to do this on Stata, but I only have access to R so I wanted to know how I can do this on RStudio.

---

<div class="post-metadata">

**Author:** ![grover](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.ipums.org/grover/32/5_2.png) [@grover](https://forum.ipums.org/u/grover)\
**Post date:** [July 21, 2016, 2:51pm UTC](https://forum.ipums.org/t/needed-help-on-using-the-perwt-variable-to-create-replicate-samples-in-rstudio/1366/2 "2016-07-21T14:51:00Z")

</div>

There are a number of different user-written packages that include functions for handling replicate weights in R. [Here](https://www.kaggle.com/chankov/d/census/2013-american-community-survey/homeowners-rmd/run/98487) is an example of a household level analysis of ACS data using replicate weights in R that is a good starting point. You will need to select the [REPWTP](https://usa.ipums.org/usa-action/variables/REPWTP#description_section) from the data selection menue which will include the 80 person level replicate weight variables in your extract.

I hope this helps.
