When PLP model is trained, the results will be held in the runPlp.rds and there is one table named prediction that has patient level information. Now when I want to share the prediction results with external collaborators, I want that they would be able run the shiny app, but I’m not allowed to share patient level tables with them. How can I generate shareable results in a way to keep the data sufficiently private? For example, turn off the inclusion of the prediction table in the results.
Just deleting this table from runPlp.rds file broke the viewPlp function.
There is a function called savePlpShareable which should save it in a form without patient level data. Then this can be loaded with loadPlpShareable and viewed with viewPlp . Try the following snippet to test it: