Forum Discussion
Survival Analysis with PowerBI and R
Hi Silver75,
Your script is right as I tested. I run the sample script and get expected result.
I create a sample table.
Then click R visual highlighted in red line in the following screenshot. Select the Test[tenure] andTest[censor] as value levels.
Type the R script and run, you will get the desired result which is same with the picture in Rsudio.
If there is any error message when you run the scipt? Could you please share more details for further analysis.
Best Regards,
Angelia
thank you, any error during the script, the survival probability is overstimated respect other software, in particular KM cut some time intervals.
In add, If I insert in the dataset other variable (eg sex, civil status, etc..) the Drill – Down on survival graph doesn’t work
- v-huizhn-msft9 years agoMicrosoft Employee
Hi Silver75,
Do you mind share your .pbix file for further analysis?
Best Regards,
Angelia