R effects package Error: non-conformable arguments -
i using effects
r package , effect
function on cox model. there default method function somehow should work model.
when try use function error:
any idea how fix , wrong?
> eff_cf <- effect("tp53:mdm2", model) error in mod.matrix %*% mod$coefficients[!is.na(coef(mod))] : non-conformable arguments
my model looks this:
> model call: coxph(formula = surv(times, patient.vital_status) ~ tp53 + mdm2 + tp53:mdm2, data = clinforplot) coef exp(coef) se(coef) z p tp53other -0.163 0.850 0.217 -0.752 4.5e-01 tp53wild -1.086 0.337 0.277 -3.928 8.6e-05 mdm2(1183.7,1674.7] -0.669 0.512 0.235 -2.851 4.4e-03 mdm2(1674.7,2248.5] -0.744 0.475 0.305 -2.444 1.5e-02 mdm2(2248.5,50339] -0.867 0.420 0.375 -2.308 2.1e-02 tp53other:mdm2(1183.7,1674.7] 0.394 1.483 0.412 0.958 3.4e-01 tp53wild:mdm2(1183.7,1674.7] 0.133 1.142 0.413 0.323 7.5e-01 tp53other:mdm2(1674.7,2248.5] -0.192 0.825 0.517 -0.372 7.1e-01 tp53wild:mdm2(1674.7,2248.5] 0.546 1.726 0.433 1.260 2.1e-01 tp53other:mdm2(2248.5,50339] -0.140 0.869 0.650 -0.215 8.3e-01 tp53wild:mdm2(2248.5,50339] 0.786 2.195 0.484 1.623 1.0e-01 likelihood ratio test=72.8 on 11 df, p=3.54e-11 n= 1321, number of events= 258
and model , data.frame used model can reproduced using code
library(archivist) model <- loadfromgitub("68eeefba87be70364eb3801cec58eb3d", user = "marcinkosinski", repo = "museum", value = true) clinforplot <- loadfromgitub("cfa5145e6b98964d5f8b760bf749e426", user = "marcinkosinski", repo = "museum", value = true)
any idea how fix , wrong?
Comments
Post a Comment