Hello all,
Has anyone encountered the warning below when creating tabulations/statistical summaries of an outcome across various socio-economic characteristic. This is after accounting for survey design. The function used for statistical summary is tbl_svysummary() from the gtsummary package.
Warning: There were 48 warnings in `mutate()`.
The first warning was:
ℹ In argument: `df_stats = pmap(...)`.
Caused by warning in `svymean.survey.design2()`:
! Sample size greater than population size: are weights correctly scaled?
ℹ Run dplyr::last_dplyr_warnings() to see the 47 remaining warnings.
code used for survey design
svydesign(id=mydata$hv021,data=mydata, strata=mydata$hv023,
weight=mydata$wt,nest=T)
options(survey.lonely.psu="adjust")
Notably when i run similar analysis in stata I do not get the error and despite the warning the proportions produced in R are similar to those
produced in stata.
Should i be concerned about the warning in R or ignore?
Thanks in advance.
Best wishes,
RobertB