Dear Adam,
I was trying to apply the cat_trauma function on a wide-shaped, properly-prefixed dataset with only ICD-10 codes. But I keep running into an issue that none of the ICD-10 codes has returned a valid issbr, and therefore result in RISS to be zero for all the observations/patients.
For example, the following code was applied to my dataset:
dad_01 <- cat_trauma(df=temp,dx_pre = "DIAG_CODE_" ,calc_method = 1, icd10 = T,i10_iss_method = "roc_max")
Note that, all the ICD-10 codes in my dataset are formatted with no decimal points nor letter "A" in the eighth position. An example of the codes of my data is shown in the following picture.

In order to troubleshoot this issue, I made the following effort:
-
manually formating the ICD-10 codes to have decimal point on the 4th place, "A" on the 8th place, and re-run the cat_trauma function on the altered dataset. This did not help me to clear the problem (as attached below: row3 and row4 have exactly the same information as row1 and row2 with the ICD-10 codes formatted as wanted)

-
I have made sure that all the ICD-10 codes are recorded as characters (not factors)
-
tried different parameters for the cat_trauma function (e.g. let i10_iss_method = "roc_max"/"gen_min"/"gen_max"); again nothing helped
Could you please help me to figure out what I missed to result in such issue, or what steps I can take to deal with this issue?
Thank you a lot,
Xuejing
Dear Adam,
I was trying to apply the cat_trauma function on a wide-shaped, properly-prefixed dataset with only ICD-10 codes. But I keep running into an issue that none of the ICD-10 codes has returned a valid issbr, and therefore result in RISS to be zero for all the observations/patients.
For example, the following code was applied to my dataset:
dad_01 <- cat_trauma(df=temp,dx_pre = "DIAG_CODE_" ,calc_method = 1, icd10 = T,i10_iss_method = "roc_max")Note that, all the ICD-10 codes in my dataset are formatted with no decimal points nor letter "A" in the eighth position. An example of the codes of my data is shown in the following picture.

In order to troubleshoot this issue, I made the following effort:
manually formating the ICD-10 codes to have decimal point on the 4th place, "A" on the 8th place, and re-run the cat_trauma function on the altered dataset. This did not help me to clear the problem (as attached below: row3 and row4 have exactly the same information as row1 and row2 with the ICD-10 codes formatted as wanted)

I have made sure that all the ICD-10 codes are recorded as characters (not factors)
tried different parameters for the cat_trauma function (e.g. let i10_iss_method = "roc_max"/"gen_min"/"gen_max"); again nothing helped
Could you please help me to figure out what I missed to result in such issue, or what steps I can take to deal with this issue?
Thank you a lot,
Xuejing