Re: [R] Strang line while plotting failure curves

2008-11-06 Thread Lu, Jiang
rds, Jiang Lu Statistician Department of Epidemiology University of Pittsburgh On Thu, Nov 6, 2008 at 1:21 PM, Frank E Harrell Jr <[EMAIL PROTECTED] > wrote: > Lu, Jiang wrote: > >> Dear R helper, >> >> I encountered a problem when I tried to plot the cumula

[R] Strang line while plotting failure curves

2008-11-06 Thread Lu, Jiang
Dear R helper, I encountered a problem when I tried to plot the cumulative failure rate (i.e. 1 - survival probability). I have used the following code to plot. The scenario is that patients are randomized to different treatment arm (rev in the code), the PCI revascularization was monitored over 5

Re: [R] NA problem when use paste function

2008-04-17 Thread Lu, Jiang
k. Really appreciate your help! Jiang On Thu, Apr 17, 2008 at 1:38 AM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Wed, 16 Apr 2008, Lu, Jiang wrote: > > > Dear R helpers, > > > > I was doing a genetic project with two datasets X and Y. There are > > some

[R] NA problem when use paste function

2008-04-16 Thread Lu, Jiang
Dear R helpers, I was doing a genetic project with two datasets X and Y. There are some IDs in both data sets, and others in either data set. I used "merge(x,y,by="ID",all=TRUE)". The data set Y contains a variable (a genotype) which is also in data X. When I merge X with Y, these two variables we