简体   繁体   English

R的clogit(生存包)功能如何处理不完整的组?

[英]How does R's clogit (Survival package) function handle incomplete groups?

I have matched case control data - 1 case matched to two controls. 我有案例控制数据匹配 - 1个案例与两个控件匹配。 My N is ~ 580 and I have 168 matched groups. 我的N是~580,我有168个匹配的组。 About 14 of these groups are missing 1-2 members, with cases and/or controls missing. 这些团体中约有14个缺少1-2名成员,缺少病例和/或对照。 I've been trying to figure out how R's clogit function - from the Survival package - handles these missing groups, if at all, and haven't found anything. 我一直试图弄清楚R的clogit功能 - 来自Survival包 - 处理这些缺失的组,如果有的话,并没有找到任何东西。

clogit actualy reframes the question to fit the inferential engine in coxph and the algorithm can handle varying numbers of cases and controls per stratum. clogit重新设计问题以适应coxph中的推理引擎,算法可以处理不同数量的案例和每个层次的控制。 The code includes this line that constructs a new coxph formula: 代码包含构造新的coxph公式的这一行:

newformula[[2]] <- substitute(Surv(rep(1, nn), case), list(case = formula[[2]], 
        nn = nrows))

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

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