[R] plotting with same axes

2005-08-22 Thread sms13+
I have used the 'par' command to overlay one plot on another. But how do I overlay it with the x-values plotted at the same points on the x-axis? Thank you, Steven __ R-help@stat.math.ethz.ch mailing list

[R] set differences

2005-09-12 Thread sms13+
University of Pittsburgh www.pitt.edu/~sms13 __ 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

[R] efficient filtering of matrices

2005-05-05 Thread sms13+
I was wondering if someone can tell me the best way to search through a matrix and choose certain rows (based on certain conditions) to put into a separate matrix. What I have tried so far is very slow for a large dataset I'm working with. e.g., I have this piece of code to create a new matrix

[R] 2 simple questions

2005-05-06 Thread sms13+
Please excuse what I'm sure are very easy questions but I'm relatively new to the R environment. How can I view a range of list elements, but not all. e.g., I had a matrix of patients and then split them out by patient id. I know I can do patlist[[1]] to see the first one, but how can I view,

[R] from list to dataframe

2005-05-18 Thread sms13+
I was wondering if someone can help me figure out the following: I have two patient datasets, ds1 and ds2. ds1 has fields patid, date, and lab1. ds2 has patid, date, and lab2. I want to find all the patids that have at least 2 dated records for each lab. I started by splitting each dataset

[R] obtaining first and last record for rows with same identifier

2005-05-24 Thread sms13+
I have a dataframe that contains fields such as patid, labdate, labvalue. The same patid may show up in multiple rows because of lab measurements on multiple days. Is there a simple way to obtain just the first and last record for each patient, or do I need to write some code that performs

[R] simple predict question

2005-05-31 Thread sms13+
Excuse the simple question... I'm not sure what I'm doing wrong with predict, but let me use this example: Suppose I do: dat-matrix(c(0,0,10,20),2,byrow=T) lm1-lm(dat[,2]~dat[,1]) Suppose I want to generate the linearly-interpolated y-values between the point (0,0) and (0,20) at every unit

[R] Weibull survival modeling with covariate

2005-06-08 Thread sms13+
--- - Steven Shechter PhD Candidate in Industrial Engineering University of Pittsburgh www.pitt.edu/~sms13 __ 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

[R] interpreting Weibull survival regression

2005-06-24 Thread sms13+
Hi, I was wondering if someone can help me interpret the results of running weibreg. I run the following and get the following R output. weibreg(Surv(time, censor)~covar) fit$fail = 0 Call: weibreg(formula = Surv(time, censor)~covar) Covariate Mean Coef Rel.Risk L-R p