From the course: Descriptive Healthcare Analytics in R

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Completing categorical Table 1

Completing categorical Table 1 - R Tutorial

From the course: Descriptive Healthcare Analytics in R

Start my 1-month free trial

Completing categorical Table 1

- [Instructor] Now we move on to complete our categorical table one. Welcome to chapter five section six. Remember, we just made frequency code overall for univariate frequencies of the exposure in each confounder. So we can use that code as a template. It has a nice macro we can copy in it. Next, I'm going to show you how to run separate bivariate frequencies for the portion of the data set where people report having asthma and then for the rest of the data set, the no asthma people. As we did before, we will output CSVs and then copy paste the results into the categorical table one shell. Let's go look at our categorical table one and see how it's doing. As you can see, we need to fill in Freq Asthma and Freq No Asthma. Remember for each of these, the denominator of the percentage is the column total, having asthma or not having asthma. So what are we going to do? Reuse our code. See these freqs in our Data folder. Let's just erase all these freq CSVs. We don't need them now. They…

Contents