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
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
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
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,
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
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
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
---
-
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
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