1

Although I looked up the R docs for survfit{survival}, I couldn't see any information on this syntax ~ 1 in the formula

survfit(Surv(time, status) ~ 1, data = lung).

Could someone please help to explain what ~ 1 generally means in R?

Nemo
  • 1,124
  • 2
  • 16
  • 39

0 Answers0