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 - R Tutorial
From the course: Descriptive Healthcare Analytics in R
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…
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.
Contents
-
-
-
-
-
-
-
(Locked)
Preparing categorical Table 1 shell6m 10s
-
(Locked)
Preparing continuous Table 1 shell2m 46s
-
(Locked)
Adding overall frequencies to categorical Table 14m 59s
-
(Locked)
Making a frequency macro4m 8s
-
Adding overall frequencies to continuous Table 13m 4s
-
(Locked)
Completing categorical Table 17m 7s
-
Completing continuous Table 15m 47s
-
(Locked)
-
-