Hi,
I'm going crazy trying to plot a quite simple graph.
i need to plot estimated hazard rate from a cox model.
supposing the model i like this:
coxPhMod=coxph(Surv(TIME, EV) ~ AGE+A+B+strata(C) data=data)
with 4 level for C.
how can i obtain a graph with 4 estimated (better smoothed) hazard curve
Thank you for your answer. It helps a lot and is very appreciated.
Also, thanks for the advice about dput(), I was wondering how to present my
data or code easily.
--
View this message in context:
http://r.789695.n4.nabble.com/Dividing-rows-when-time-is-overlapping-tp4170428p4191334.html
Sent fro
Hi all,
I have dataframe that was created from the fusion of two dataframes. Both
spanned over the same time intervall but contained different information.
When I put them together, the info overlapped since there is no holes in the
time interval of one of the dataframe. Here is an example where t
Turns out it was really easy since your lines converted my data in POSIXct.
Thanks again for your time.
--
View this message in context:
http://r.789695.n4.nabble.com/Splitting-row-in-function-of-time-tp4077622p4101192.html
Sent from the R help mailing list archive at Nabble.com.
_
Thank you for the quick and precise answer.
I am sorry for the very slow reply. I've been really busy lately.
The lines you sent me work pretty well although my graphs still seem to
consider periods that end with 00:00:00 as part of another day, probably
because of the date. I'm currently trying
ot; and "beg".
"phaseno" and "activity" should stay the same for the two new
lines.
Here is a sample of my data that covers a few days:
http://r.789695.n4.nabble.com/file/n4077622/example.txt example.txt
Thank you to anyone who takes the time to read this and an
Thank you very much. This is exactly what I needed.
Problem solved!
Thanks again
PEL
--
View this message in context:
http://r.789695.n4.nabble.com/Creating-barplot-using-time-as-X-tp3981961p3986882.html
Sent from the R help mailing list archive at Nabble.com
ataframes spanning 24h. I tried with by() but I doubt this is the correct
function. If possible, I would also like to separate a row the phasetime of
a row if it overlaps two 24 periods.
I joined part of my data where *header=TRUE and sep="\t"*
http://r.789695.n4.nabble.com/file/n3981961
8 matches
Mail list logo