The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use (other programs) » How to calculate the prevalence of an outcome by SAS for ever married women surveys?
How to calculate the prevalence of an outcome by SAS for ever married women surveys? [message #21781] Fri, 18 December 2020 09:51 Go to previous message
Han is currently offline  Han
Messages: 4
Registered: December 2020
Member
I am doing an analysis that looks at smoking prevalence of women from ever married women surveys.

For a "all-women" survey, we can calculate the overall smoking prevalence of women using PROC SURVEYFREQ to in SAS:

weight --> (V005 Women's individual sample weight (6 decimals) / 1,000,000)
cluster --> V021 Primary sampling unit
strata --> V023 Stratification used in sample design
y --> V463a Smokes cigarettes

proc surveyfreq data=a;
strata strata;
cluster cluster;
weight weight;
tables y;
run;

However, if I would like to calculate the overall smoking prevalence of women from an ever married women survey, then what should I do? How should I use the awfactt variable?

Thank you!
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: MERGING BR,IR and HR DATA FILES IN R
Next Topic: Mixed effect models with complex survey design R
Goto Forum:
  


Current Time: Thu Mar 28 18:35:37 Coordinated Universal Time 2024