BaşlayınÜcretsiz Başlayın

Computing a Cox model

We have a dataset of lung cancer patients. We want to know if their performance score (variable performance) is associated with their survival time. The performance score measures how well a patient can perform usual daily activities (bad=0, good=100).

The survival package and the dat dataset are already loaded for you.

Bu egzersiz

Survival Analysis in R

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Compute Cox model
cxmod <- ___(Surv(time, status) ~ ___, data = dat)

# Show model coefficient
coef(___)
Kodu Düzenle ve Çalıştır