My problem is rather trivial. I am doing a survival analysis for my Master's in healthcare management.
I have data in Excel in the format Cloumn 1: Event, Column 2: Censoring [-1,0,1] for left, right, no censoring for each observation. All my attempts to import the Excel data (excel format, CSV format) have failed to yield usable data for "Eventdata" and "SurvivalModel"-Fit. The problem is that I cannot get the censor data information to be just integers and I always get the result "is no valid censoring format", i.e. I would need "0., -1.
etc. to be just lists of {0,1,-1.....}. It works just fine, if I correct the data by hand, but that is error prone and rather tedious for 800 observation in intervention and control. Any help, much appreciated. Christa