From the course: SAS Essential Training: 1 Descriptive Analysis for Healthcare Research
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Using weights with PROC FREQ - SAS Tutorial
From the course: SAS Essential Training: 1 Descriptive Analysis for Healthcare Research
Using weights with PROC FREQ
- [Instructor] In the BRFSS dataset, there are weights included. These weights are designed to weight the estimates derived from the BRFSS sample, back to the United States population based on characteristics such as age, sex, and location. I'm going to demonstrate using PROC FREQ with weights to make a weighted estimate. Please notice that I have opened exercise file 420_PROCFREQ with weights. Let's start with the unweighted PROC FREQ. Please notice that I'm using the whole dataset BRFSS_a. I need that because that is the one with the weight column in it. I'm going to demonstrate a PROC FREQ on the INCOME2 variable, which is annual household income. It is an ordinal variable with eight income levels, and some coding for refused, unknown, and missing. You will see I included the missing option in the PROC FREQ command. Let's look at this unweighted PROC FREQ first. We'll highlight and run. Alright, here's the output. Let's look at the level where INCOME2 equals one. Remember, this…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.