# Errors when creating the descriptive statistics with the survey weights in R

**URL:** <https://forum.ipums.org/t/errors-when-creating-the-descriptive-statistics-with-the-survey-weights-in-r/5661>\
**Category:** CPS\
**Created:** [February 7, 2024, 4:58pm UTC](https://forum.ipums.org/t/errors-when-creating-the-descriptive-statistics-with-the-survey-weights-in-r/5661 "2024-02-07T16:58:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Ivan\_Strahof](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.ipums.org/ivan_strahof/32/626_2.png) [@Ivan\_Strahof](https://forum.ipums.org/u/Ivan_Strahof)\
**Post date:** [February 8, 2024, 8:23pm UTC](https://forum.ipums.org/t/errors-when-creating-the-descriptive-statistics-with-the-survey-weights-in-r/5661/2 "2024-02-08T20:23:35Z")

</div>

The post that you link to describes how to run an analysis in R using replicate weights. However, it does not appear that the tbl\_svysummary function or the gtsummary package allow for replicate weights. I was able to find [this StackOverflow post](https://stackoverflow.com/questions/77681732/gtsummary-tbl-svysummary-with-error-when-working-with-replicate-weights) that specifically mentions the error message that you are seeing. The package author replies stating that “replicate weights are not currently supported.”

Therefore, you will need to run your analysis without replicate weights, or use a different package (such as [srvyr as described in this user guide](https://cps.ipums.org/cps/repwt.shtml)) that does accept replicate weights. Please note that replicate weights (i.e. [REPWT](https://cps.ipums.org/cps-action/variables/REPWT), [REPWTP](https://cps.ipums.org/cps-action/variables/REPWTP)) are different from survey weights (e.g. [WTFINL](https://cps.ipums.org/cps-action/variables/WTFINL), [HWTFINL](https://cps.ipums.org/cps-action/variables/HWTFINL)).

---

_[View the full topic](https://forum.ipums.org/t/errors-when-creating-the-descriptive-statistics-with-the-survey-weights-in-r/5661)._
