Advertisement
Guest User

trythis

a guest
Apr 11th, 2025
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. library(gtsummary)
  2. library(survey)
  3.  
  4. design.ACS2023 <- svydesign(
  5. strata = ~STRATA,
  6. id = ~SERIAL,
  7. weights = ~PERWT,
  8. nest = TRUE,
  9. data = data_ACS2023
  10. )
  11.  
  12. design.ACS2023.NPs <- subset(design.ACS2023, OCC == 3258)
  13.  
  14. table1 <- tbl_svysummary(
  15. design = design.ACS2023.NPs,
  16. include = c(gender_f, AGE, race_f, hispanic_f, empstat_f, UHRSWORK, INCWAGE),
  17. missing = "no"
  18. )
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement