简体   繁体   English

R 与 SPSS 结果的置信区间不同

[英]Different confidence interval between R and SPSS results

I have a small dataset with the total number of cases under 20. When I ran survival analysis using Kaplan-Meier estimate on SPSS with this dataset, I was able to get specific 95% upper and lower confidence interval values, but in R (using survfit, conf.type "log-log") 0.95UCL is not estimated.我有一个案例总数低于 20 的小数据集。当我使用该数据集在 SPSS 上使用 Kaplan-Meier 估计进行生存分析时,我能够获得特定的 95% 上下置信区间值,但在 R 中(使用survfit, conf.type "log-log") 0.95UCL 估计不出来。 I get the feeling that this happens often when I get to use small datasets.我感觉当我开始使用小型数据集时,这种情况经常发生。 I'm not sure if it's accurate but I've read that SPSS provides log-log as default.我不确定它是否准确,但我读过 SPSS 默认提供 log-log。 So, could anyone let me know why the result is like this?那么,谁能告诉我为什么结果是这样的? Thank you in advance.先感谢您。

I believe the confidence intervals in SPSS KM are equivalent to the "plain" option in R's survfit, not the "log-log" option.我相信 SPSS KM 中的置信区间相当于 R 的 survfit 中的“plain”选项,而不是“log-log”选项。 You can see the formulas in the KM chapter of the IBM SPSS Statistics Algorithms manual .您可以在IBM SPSS Statistics Algorithms 手册的 KM 章节中查看公式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM