{'fraction_non_alphanumeric': 0.018233618233618232, 'fraction_numerical': 0.0, 'mean_word_length': 5.5767790262172285, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Calculating Subset Weighted Analysis Using PROC SURVEYFREQ and GENMOD

Stratum-specific weighted analysis is available in SAS procedures such as PROC SURVEYMEANS & SURVEYLOGISTIC, which include the DOMAIN statement. However, other procedures that can model correlated outcomes, including PROC GENMOD, do not. This presentation demonstrates a method of assigning individual weights to each record in a dataset to perform weighted subset analysis on a correlated outcome without creating domain variables or transferring analysis to a separate program. This demonstration employs data from the National Immunization Survey Teen (NIS-Teen).The NIS-TEEN includes provider & household weights and details the immunization status for several vaccines for each respondent. To compare weighted estimates of vaccination rates, where respondents receive several vaccines and had adequate provider data, a domain variable must be created or analysis moved into a different program. To calculate individual weights, the sum of the provider weights of the respondents with a positive provider weight is calculated. Then, each respondent’s positive provider weight is divided by the sum of the positive provider weights & multiplied by the total sample size of respondents with a positive provider weight. The newly recalculated individual level provider weights can be used in the in SAS PROC SURVEYFREQ, allowing for weighted variable by variable comparisons. It permits the use of PROC GENMOD, with multivariate data, to perform weighted domain-specific analyses that account for correlations among the multiple vaccines offered to individuals. Validation of the proper calculation of weighted results is proven by producing identical estimates as analysis in STATA.