l have the following dataset and would like to calculate the actual survival 
time by 
  if censoring time > survival time then actual survival time =survival time 
else its= censoring time.
        treatmentgrp strata  censoringTime    survivalTime     censoring   
actualsurvivaltim
     [1,]             1      1       1.012159           1137.80922              
  0
   [2,]             2      2      32.971439           247.21786                 0
   [3,]             2      1      85.758253           797.04949                 0
   [4,]             1      1      16.999171            78.92309                 
 0
  
  l used matrix to genarate the data
  thanks in advance
  
  
       
---------------------------------


        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to