Hi, I am a new R user. I used Stata more before switching to R. When we want to obtain 95% confodence interval for proportion of the categories with survey data (for instance, body weight could have four categories, underweight, normal, overweight and obese), in Stata it is just like 'svy: proportion bmi_cat', even though I tried to use several commands like 'svyciprop', I could not get it with R. Can anyone please tell me if there is any such easy package in R?
If you're going to be working with survey data in R, two of the best packages to get to know are survey and srvyr. It looks like you found survey as that is where the svyciprop() function comes from.
For more specific help here, you should post a reproducible example (reprex) including a sample of the data you are working with (or toy data if you can't share your data) as well as the code you have tried so far and the error message you've received. See below for more info on creating a reprex: