hi,
 
a) i have something like:
 
ecdfgrp1<-ecdf(subset(mydata,TMT_GRP==1)$Y);

ecdfgrp2<-ecdf(subset(mydata,TMT_GRP==2)$Y);

how can i plot the difference between these 2 step functions?
 
i could begin with ecdfrefl<-function(x){ecdfgrp2(x)-ecdfgrp1(x);} ...
what next?
 
b) if i have a vector with repeated numeric values how can i get the
subset without repeated values .e.g (0,4,0,2,2) ----> (0,4,2) ?
 
thanks!

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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