From the course: R Essential Training Part 2: Modeling Data

Unlock the full course today

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

Comparing proportions

Comparing proportions

From the course: R Essential Training Part 2: Modeling Data

Start my 1-month free trial

Comparing proportions

- [Instructor] One of the most basic analyses is simply looking at proportions. What percentage of people say yes in this group? And what percentage say yes over here? And it's really easy to look at this kind of data and get some important insights. Let's start by doing an example in R and I'm going to load a few packages including one called survival because it has an example data set that I want to use. And then I'm going to come down here and we'll get a little bit of information about the sample data set which is called lung for the NCCTG Lung Cancer Study and it talks about people with lung cancer and how long they survived and lots of things like their age and their sex and the severity and calories and lot of different information. I don't want all of this information. I'm going to look at just two. I'm going to look at status, which is censored, which means they're still alive, and two which means they are not.…

Contents