similar to: help drawing kaplan-meier plot starting from 0

Displaying 20 results from an estimated 300 matches similar to: "help drawing kaplan-meier plot starting from 0"

2010 May 23
3
"order" issue
Hi everybody, this is a real dummy thing. I sorted a matrix based on a given column, and what I get is right, until it comes to columns of negative and positive values; than, "order" orders everything from max to min in the negative values, and then AGAIN from max to min in the positive values!!! Why isn't everything order from max to min, and that's it? Thank you!!! Attached
2009 Nov 06
1
Survival Plot in R 2.10.0
I would like to produce a complimentary log-log survival plot with only the points appearing on the graph. I am using the code below, taken from the plot.survfit page of help for the the survival package (version 2.35-7). I am running in R 2.10.0 on Windows XP, and the list of packages following the error is loaded. Is there some specific 'type= ' syntax, or an additional parameter that
2010 Jan 29
1
help on drawing right colors within a grouped xyplot (Lattice)
Hi, I've lost my mind on it... I have to scatterplot two vectors, grouped by a third variable, with two different dimensions according to whether each cell line in the plot is sensitive or resistant to a given drug, and with a different color for each of 9 tissues of origin. Here's what I've done:
2009 May 18
1
discrepancies between stata and r for a cox regression
Hello I would like to develop the use of R. Trying R and more particulary the cox model, I am surprised by discrepancies between results with stata and R for a cox model With the same data base, I get a hazard ratio (4.82) that is not the same obtained with stata (4.52) You will find attached the file leukemia.dta I used (Stata) Here are the codes for R library(foreign)
2007 Jun 10
0
Question on weighted Kaplan-Meier analysis of case-cohort design
I have a study best described as a retrospective case-cohort design: the cases were all the events in a given time span surveyed, and the controls (event-free during the follow-up period) were selected in 2:1 ratio (2 controls per case). The sampling frequency for the controls was about 0.27, so I used a weight vector consisting of 1 for cases and 1/0.27 for controls for coxph to adjust
2012 Aug 22
1
plotting Kaplan Meier using ggplot2 returns class function error
Hi list I am running this ggplot2 R code: http://www.r-bloggers.com/an-enhanced-kaplan-meier-plot/ with its graphical output looks like this: http://statbandit.files.wordpress.com/2011/03/rstudio-v79384.pdf It gives me this error: ggplot2 doesn't know how to deal with data of class function I looked around seems like it's a common problem, but haven't found a solution. Thanks, Mike
2008 Jun 28
0
How to get the 5th percentile( with a 95% CI )of the Kaplan-meier estimator?
Hi, all dear R experts, I am really stuck by how to get the 5th percentile( with a 95% CI )of the Kaplan-meier estimator of survival function P(T>t). I have a simulated sample of lifetime Ts, then I set the KM estimator < km.fit<-survfit(Surv(T),type="kaplan-meier",data=Surv(T)) <quantile(km.fit,.05) However, it gave "Error in order...". Does someone have some
2009 Feb 01
1
need some help about using R for Kaplan-Meier estimator
Hi Fello: I am asked to compute the Kaplan-Meier estimator of data with right censoring without using surfit(). Does anyone know how to use R to compute the estimators? The data should input X: vector of right-censored observed time for n individuals, and d: vector of failure time indicators (0=censored individual;1=unconsored individual) and the function should return with t: vector of sorted
2001 Mar 11
2
Kaplan-Meier for left-truncated, right-censored data
Is it possible to calculate Kaplan-Meier for left-truncated, right-censored data using survival5? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at
2008 Dec 06
1
Kaplan-Meier function from survfit
Hi All, Please pardon me if I am missing something obvious here. How do I get the Kaplan-Meier estimate function that is created by survfit and plotted by the code. fit <- survfit(Surv(time, status) , data=aml) plot(fit) That is, I need a function that will give me the survival estimate at a given time: \hat{S}(t). Thanks in advance. Ritwik Sinha ritwik.sinha at gmail.com | +12033042111 |
2009 Jul 22
1
kaplan-meier error
Hi all, I am getting an error in my code and I don't know what the problem is. I am using R 2.9 on ubuntu. my code is as follows: ## Libraries ## library(survival) library(foreign) ## reading data ## data<-read.dta("http://psfaculty.ucdavis.edu/bsjjones/cabinet.dta") head(data) attach(data) fit1<-survfit(Surv(durat,censor)) and I get the following error >
2011 Jul 13
2
life table and Kaplan-Meier
Hello, I have a question about the function lifetab in package KMsurv. The description of the output value surv says "the estimated survival function at the start of the intervals". Are these estimates the ones calculated via Kaplan-Meier probability of survival ? Thanks in advance! -- View this message in context:
2012 Oct 24
2
Kaplan Meier Post Hoc?
This is more of a general question without data. After doing 'survdiff', from the 'survival' package, on strata including four groups (so 4 curves on a Kaplan Meier curve) you get a chi squared p-value whether to reject the null hypothesis or not. Is there a method to followup with pairwise testing on the respective groups? I have searched the library but have come up with
2012 Jan 05
2
Problem with axes in a plot of Kaplan-Meier
Helo: After changing "involuntarily" some of the graphics parameters with the command par() (I did not know that changes with this command are permanent), now when I made a plot of the survival Kaplan-Meier function, the Y axis does not start at 1, and the X axis does starts at 0. The commands that I use are: library(survival) BROWN.SPV = Surv(BROWN$TEMPS, BROWN$DEF)
2004 Jan 07
2
Survival, Kaplan-Meier, left truncation
Dear all, I have data from 1970 to 1990 for people above age 50. Now I want to calculate survival curves by age starting at age 50 using the Kaplan Meier Estimator. The problem I have is that there are already people in 1970 who are older than 50 years. I guess this is called delayed entry or left truncation (?). I thought the code would be: roland <- survfit(Surv(time=age.enter,
2007 Jul 05
1
Incidence estimated from Kaplan-Meier
Dear all, I have a stat question that may not be related to R, but I would like to have your advice. I have just read a medical paper in which the authors report the 1-p (where p is the cumulative survival probability from the Kaplan Meier curve) as incidence of disease. Specifically, the study followed ~12000 women on drug A and ~20000 women on drug B for 12 months. During that period
2012 Nov 26
1
Plotting an adjusted kaplan-meier curve
Dear R-users I am trying to make an adjusted Kaplan-Meier curve (using the Survival package) but I am having difficulty with plotting it so that the plot only shows the curves for the adjusted results. My data come from a randomised controlled trial, and I would like the adjusted Kaplan-Meier curve to only show two curves for the adjusted survival: one for those on treatment (Treatment==1)
2013 Mar 26
1
Weighted Kaplan-Meier estimates with R
There are two ways to view weights. One is to treat them as case weights, i.e., a weight of 3 means that there were actually three identical observations in the primary data, which were collapsed to a single observation in the data frame to save space. This is the assumption of survfit. (Most readers of this list will be too young to remember when computer memory was so small that we had to
2012 Feb 20
1
Reporting Kaplan-Meier / Cox-Proportional Hazard Standard Error, km.coxph.plot, survfit.object
What is the best way to report the standard error when publishing Kaplan-Meier plots? In my field (Vascular Surgery), practitioners loosely refer to the "10% error" cutoff as the point at which to stop drawing the KM curve. I am interpreting this as the *standard error of the cumulative hazard*, although I'm having a difficult time finding some guidelines about this (perhaps I am
2010 Mar 26
2
how to make stacked plot?
Dear friends: I'm interested to make a stacked plot of cumulative incidence. that's, the cuminc model is fitted [fit=cuminc(time, relapse)] and cumulative incidence is in place. I'd like to stack the cuminc plots (relapse of luekemia and death free from leukemia, for example) , then the constituent ratio of leukemia relapse and treatment related mortality is very clear. Can