Displaying 20 results from an estimated 700 matches similar to: "plot.survfit"
2009 Feb 25
3
survival::survfit,plot.survfit
I am confused when trying the function survfit.
my question is: what does the survival curve given by plot.survfit mean?
is it the survival curve with different covariates at different points?
or just the baseline survival curve?
for example, I run the following code and get the survival curve
####
library(survival)
fit<-coxph(Surv(futime,fustat)~resid.ds+rx+ecog.ps,data=ovarian)
2011 Oct 01
4
Is the output of survfit.coxph survival or baseline survival?
Dear all,
I am confused with the output of survfit.coxph.
Someone said that the survival given by summary(survfit.coxph) is the
baseline survival S_0, but some said that is the survival S=S_0^exp{beta*x}.
Which one is correct?
By the way, if I use "newdata=" in the survfit, does that mean the survival
is estimated by the value of covariates in the new data frame?
Thank you very much!
2013 May 22
0
rmean in survfit
One approach is to use the rms package's cph and Mean.cph functions.
Mean.cph (cph calls coxph and can compute Kaplan-Meier and other survival
estimates) can compute mean restricted life.
Frank
Dinesh W wrote
> I am using survfit to generate a survival curve. My population is such
> that my x axis is in days and i have a starting population of say 10,000
> of which say only 2000 are
2007 Sep 27
2
center option of basehaz in survfit
I have a very general question about what the centering option in basehaz does to factors. (basehaz computes the baseline cumulative hazard for a coxph object using the Breslow estimator).
Lets say I'm interested in a survival model with two (dichotomous) factors and a continuous covariate.
Variable Possible Values
Factor1 0 or 1
Factor2 0 or 1
2004 Nov 10
0
RE: [S] worked in R, but not in S-Plus
The following works, you need to include x=TRUE in the call to coxph.
Passing the time and status variables as additional arguments is a matter of
personal preference.
f.coxph.zph<-function(x, timeVar, statusVar)
{
cox.fit <- coxph(Surv(timeVar, statusVar) ~ x, na.action =
na.exclude, method = "breslow", x=TRUE)
fit.zph<-cox.zph(cox.fit)
fit.zph$table[,3]
}
time.cox <-
2004 Mar 30
0
koq.q ---- Kent O' Quigley R2
Dear R-users,
I apply to your kind attention to know if someone have used the Splus software
koq.q (Kent & O'Quigley's measure of dependence for censored data) in R and
kindly can help me.
I have tried several times to contact the authors Andrej Blejec
(andrej.blejec at uni-lj.si) or Janez Stare (janez.stare at mf.uni-lj.si) but
unfortunately no one answered me.
Following
2011 Jun 24
1
UnoC function in survAUC for censoring-adjusted C-index
Hello,
I am having some trouble with the 'censoring-adjusted C-index' by Uno et al, in the package survAUC. The relevant function is UnoC.
The question has to do with what happens when I specify a time point t for the upper limit of the time range under consideration (we want to avoid using the right-end tail of the KM curve).
Copying from the example in the help file:
TR <-
2005 Jun 15
3
Error using newdata argument in survfit
Dear R-helpers,
To get curves for a pseudo cohort other than the one centered at the mean of
the covariates, I have been trying to use the newdata argument to survfit
with no success. Here is my model statement, the newdata and the ensuing
error. What am I doing wrong?
> summary(fit)
Call:
coxph(formula = Surv(Start, Stop, Event, type = "counting") ~
Week + LagAOO + Prior.f +
2011 Jul 22
3
Cox model approximaions (was "comparing SAS and R survival....)
For time scale that are truly discrete Cox proposed the "exact partial
likelihood". I call that the "exact" method and SAS calls it the
"discrete" method. What we compute is precisely the same, however they
use a clever algorithm which is faster. To make things even more
confusing, Prentice introduced an "exact marginal likelihood" which is
not
2007 Jul 08
2
Making Gehan-Breslow test for Survival data
Hi all,
The survivals functions can be tested by the Log-rank test and others, for
example the Gehan-Breslow. The graham breslow work with the alpha values.
But I don't know how is the Gehan-Breslow test with R. Somebody know a
type function?.. or other suggestions? Any help will be really
appreciated
Jos? Bustos
Marine Biologist
Master Apllied Stat Program
University of Concepci?n
2005 Feb 04
2
no. at risk in survfit()
Hi,
when I generated a survfit() object, I can get number
of patients at risk at various time points by using
summary():
fit<-survfit(Surv(time,status)~class,data=mtdata)
summary(fit)
class=1
time n.risk n.event survival std.err lower 95% CI
upper 95% CI
9.9 78 1 0.987 0.0127 0.963 1
41.5 77 1 0.974 0.0179 0.940 1
54.0 76
2003 Dec 02
2
model of fish over exploitation
Dear all,
I have a serious problem to solve my model. I study over exploitation of
fish in the bay of biscay (france). I know only the level of catch and
the fishing effort (see data below) by year.
My model is composed by the following equations:
* the growth function
Gt(St) = r*St*(1-St/sbar)
with Gt the growth of each period t
r intrinsec growth of the stock
sbar carriyng capacity of the
2009 Mar 30
1
Possible bug in summary.survfit - 'scale' argument ignored?
Hi all,
Using:
R version 2.8.1 Patched (2009-03-07 r48068)
on OSX (10.5.6) with survival version:
Version: 2.35-3
Date: 2009-02-10
I get the following using the first example in ?summary.survfit:
> summary( survfit( Surv(futime, fustat)~1, data=ovarian))
Call: survfit(formula = Surv(futime, fustat) ~ 1, data = ovarian)
time n.risk n.event survival
2006 Mar 07
1
breslow estimator for cumulative hazard function
Dear R-users,
I am checking the proportional hazard assumption of a cox model for a
given covariate, let say Z1, after adjusting for other relavent covariates
in the model. To this end, I fitted cox model stratified on the discrete
values of Z1 and try to get beslow estimator for the baseline cumulative
hazard function (H(t)) in each stratum. As far as i know, if the
proportionality assumption
2009 Dec 16
1
Baseline survival estimate
Dear R-help,
I am trying to obtain the baseline survival estimate of a fitted Cox model
(S_0 (t)). I know that previous posts have said use 'basehaz' but this
gives the baseline hazard function and not the baseline survival estimate.
Is there a way to obtain the baseline survival estimate or do I have to use
the formula which does something like S(t) = exp[- the integral from 0 to t
of
2009 Jul 13
0
adjusting survival using coxph
I have what I *think* should be a simple problem in R, and hope
someone might be able to help me.
I'm working with cancer survival data, and would like to calculate
adjusted survival figures based on the age of the patient and the
tumour classification. A friendly statistician told me I should use
Cox proportional hazards to do this, and I've made some progress with
using the
2009 Nov 20
0
How do I specify a partially completed survival analysis model
--- begin inclusion --
After I simulate Time and Censor data vectors denoting the censoring
time
and status respectively, I can call the following function to fit the
data
into the Cox model (a is a data.frame containing 4 columns X1, X2, Time
and
Censor):
b = coxph (Surv (Time, Censor) ~ X1 + X2, data = a, method = "breslow");
Now the purpose of me doing simulation is that I have
2012 Oct 06
2
Expected number of events, Andersen-Gill model fit via coxph in package survival
Hello,
I am interested in producing the expected number of events, in a
recurring events setting. I am using the Andersen-Gill model, as fit
by the function "coxph" in the package "survival."
I need to produce expected numbers of events for a cohort,
cumulatively, at several fixed times. My ultimate goal is: To fit an
AG model to a reference sample, then use that fitted model
2012 Aug 31
2
test Breslow-Day for svytable??
Hi all,
I want to know how to perform the test Breslow-Day test for homogeneity of
odds ratios (OR) stratified for svytable. This test is obtained with the following code:
epi.2by2 (dat = daty, method = "case.control" conf.level = 0.95,
units = 100, homogeneity = "breslow.day", verbose = TRUE)
where "daty" is the object type table svytable consider it, but
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 |