d**s 发帖数: 1255 | 1 问题:
有很多这样的 x ,要找出每个x 的 Wald p value。
用什么code能取出 wald P
one sample code: |
k*******a 发帖数: 772 | 2 用names(fit)看结果里面返回了什么变量,里面应该会有wald p对应的变量名,比如
wald,那么你用 fit$wald就得到wald p了 |
d**s 发帖数: 1255 | 3 多谢!
以前这样的问题,很容易解决。用 ls.str()就能找到对应的变量名。但这次有点奇
怪,试了几种都不work。
感谢哪位大侠能出手帮忙!
> names(fit)
[1] "coefficients" "var" "loglik" "score"
[5] "iter" "linear.predictors" "residuals" "means"
[9] "method" "hazards" "y" "isF"
[13] "covars" "ttr" "w.means" "formula"
[17] "terms" "call" "events"
【在 k*******a 的大作中提到】 : 用names(fit)看结果里面返回了什么变量,里面应该会有wald p对应的变量名,比如 : wald,那么你用 fit$wald就得到wald p了
|
l*********s 发帖数: 5409 | 4 which package? Its help does not cover Wald test? |
d**s 发帖数: 1255 | 5 library(eha)
【在 l*********s 的大作中提到】 : which package? Its help does not cover Wald test?
|
l*********s 发帖数: 5409 | 6 it has a component wald.test |