thehanlab / dynamicLM

Other
11 stars 4 forks source link

question:dynamicLM external validation #6

Closed liuyishuboo closed 9 months ago

liuyishuboo commented 9 months ago

Hello, and thank you very much for your generous sharing. I have encountered an issue while using dynamicLM to build a supermodel. Specifically, when I set the outcome event (event) values to survival (0) and death (1), I would perform external validation, the following error is reported:

scores_external <- score(list("csc" = supermodel3), cause=1,data = validation_test, lms = "LM") Error in predict.dynamicLM(o, data, lms, cause) : No cause should be specified for a coxph model.

I tried to remove the parameter cause and it still reports an error,for example

scores_external <- score(list("csc" = supermodel3),data = validation_test,lms = 'LM') Error in predict.dynamicLM(o, data, lms, cause) : No cause should be specified for a coxph model.

Could I trouble you for help? Thank you.