Skip to menu
Keep me signed in.
You will be still signed in even when the browser is closed. It is not recommended to use this if you are using a public computer, for your personal information could be violated
에곤쉴레 2023.12.20 14:48 Views : 26
KM curve를 그릴 때, 단일군에서의 survival 결과를 알 수 있나요?
2023.12.21 08:00
안녕하세요? survfit()함수를 사용하실때 설명변수를 1로 사용하시면 됩니다. 예를 들어
fit=survfit(Surv(time,status)~1, data=colon) 등과 같이 하시면 됩니다.
이후 summary(fit), plot(fit)등으로 진행하시면 됩니다.
Comment
2023.12.21 10:52
survival로 들어가서 돌리려하면
설명/독립변수들에 변수를 넣지 않으면 통계가 돌아가지 않아서요.
방법 좀 여쭙니다.
2023.12.21 10:53
survival의 median, IQR 등의 결과도 볼 수 있나요?
안녕하세요? survfit()함수를 사용하실때 설명변수를 1로 사용하시면 됩니다. 예를 들어
fit=survfit(Surv(time,status)~1, data=colon) 등과 같이 하시면 됩니다.
이후 summary(fit), plot(fit)등으로 진행하시면 됩니다.