MulaiMulai sekarang secara gratis

Digging into the GBSG2 dataset 1

In the previous exercise, we learned about the GBSG2 dataset. Let's dig a bit deeper into it to understand the variables we will use in the following.

The cens variable contains values that indicate whether or not a person in the study has died. In this exercise, you'll explore these censored values.

Latihan ini adalah bagian dari kursus

Survival Analysis in R

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Our data set is called GBSG2 and is from package TH.data
data("GBSG2", package = "TH.data")

# Count censored and uncensored data
num_cens <- table(GBSG2$___)
num_cens

# Create barplot of censored and uncensored data
___

# Use help() to look at cens
___(GBSG2, package = ___)
Edit dan Jalankan Kode