Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不明白 newdata 参数是什么意思。有人可以向我解释一下吗?我已经阅读了文档,但老实说我无法理解它。我什么时候需要使用它?
大概这是对predict函数的引用?当您想要预测数据集中没有的预测变量组合的结果时,您需要使用“newdata”。您需要提供一个列名与 RHS 变量匹配的列表对象。如果您搜索coxph(或survfit)以及predict.
predict
coxph
survfit