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?
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?