Displaying 20 results from an estimated 9000 matches similar to: "Coxph"
2006 Jul 11
2
Proportional Hazard Function and Competing risks
How can I model coxph() in combination with competing risks
i.e. I have two events and for event the object will leave the data set.
So :
Coxph(Surv(time,event)~....) the event is for all my objects 1.
How can I model this?
Sharon
-----------------------------------------------------------------
ATTENTION:
The information in this electronic mail message is private and
confidential, and only
2006 Jul 11
0
Coxph function
Dear Sir/Madam,
My name is Sharon Mazurel and I'm busy with my final thesis about
estimating the probability of the success or withdrawal of a merger or
acquisition.
For my model I also use duration analysis and found after doing some
research that the coxph function in R is very useful.
My question is:
In the Surv object you have two arguments, "time" and "event". I
2006 Mar 15
5
Surv object in data.frame
Dear All,
a Surv object I put in a data frame behaves somehow unexpected (see example).
If I do a Cox regression on the original Surv object it works. If I put it
in a data.frame and do the regression on the data frame it does not work.
Seemingly it has to do with the class attribute, because if I change the
class attribute to let "Surv" appeare first, again it works.
Is this known?
2012 Jul 06
1
How to compute hazard function using coxph.object
My question is, how to compute hazard function(H(t)) after building the
coxph model. I even aware of the terminology that differs from hazard
function(H(t)) and the hazard rate(h(t)). Here onward I wish to calculate
both.
Here what I have done in two different methods;
##########################################################################################
2011 Sep 12
1
coxreg vs coxph: time-dependent treatment
Dear List,
After including cluster() option the coxreg (from eha package)
produces results slightly different than that of coxph (from survival)
in the following time-dependent treatment effect calculation (example
is used just to make the point). Will appreciate any explaination /
comment.
cheers,
Ehsan
############################
require(survival)
require(eha)
data(heart)
# create weights
2011 Mar 01
1
glht() used with coxph()
Hi, I am experimenting with using glht() from multcomp package together with
coxph(), and glad to find that glht() can work on coph object, for example:
> (fit<-coxph(Surv(stop, status>0)~treatment,bladder1))
coxph(formula = Surv(stop, status > 0) ~ treatment, data = bladder1)
coef exp(coef) se(coef) z p
treatmentpyridoxine -0.063 0.939 0.161
2004 Mar 05
1
Application of step to coxph using method="exact" (PR#6646)
Full_Name: John E. Kolassa
Version: Version 1.8.1
OS: Solaris
Submission from: (NULL) (128.6.76.36)
Stepwise model selection for coxph appears to fail with method="exact".
The code
step(coxph(Surv(1:100,rep(1,100))~factor(rep(1:4,25)),method="exact"))
produces the error message
Start: AIC= 733.07
Surv(1:100, rep(1, 100)) ~ factor(rep(1:4, 25))
Error in
2008 Jan 08
1
Problem in anova with coxph object
Dear R users,
I noticed a problem in the anova command when applied on
a single coxph object if there are missing observations in
the data:
This example code was run on R-2.6.1:
> library(survival)
> data(colon)
> colondeath = colon[colon$etype==2, ]
> m = coxph(Surv(time, status) ~ rx + sex + age + perfor, data=colondeath)
> m
Call:
coxph(formula = Surv(time, status) ~ rx +
2004 May 16
2
Error in using coxph()
Hi,
I am getting errors of the following kind. I can't
seem to point the source of the error. I would greatly
appreciate any advice.
Many thanks and good day,
-Melinda
Error message :
----------------
"Ran out of iterations and did not converge in:
fitter(X, Y, strats, offset, init, control, weights =
weights,..."
Details :
---------
E is a vector of survival times (or censored
2005 Jul 14
2
Coxph with factors
Hello,
I am fitting a coxph model with factors. I am running into problems when
using 'survfit'. I am unsure how R is treating the factors when I fit, say:
> DATA<-data.frame(time.sec,done,f.pom=factor(f.pom),po,vo)
> final<-coxph(Surv(time.sec,done)~f.pom*vo+po,data=DATA)
> final.surv<-survfit((final), individual=T,conf.type="log-log")
2011 Jun 25
2
cluster() or frailty() in coxph
Dear List,
Can anyone please explain the difference between cluster() and
frailty() in a coxph? I am a bit puzzled about it. Would appreciate
any useful reference or direction.
cheers,
Ehsan
> marginal.model <- coxph(Surv(time, status) ~ rx + cluster(litter), rats)
> frailty.model <- coxph(Surv(time, status) ~ rx + frailty(litter), rats)
> marginal.model
Call:
coxph(formula =
2005 Jun 29
1
sbrier (Brier score) and coxph
Hello
I've decided to try and distill an earlier rather ill focused question to
try and elicit a response. Any help is greatly appreciated. Why does mod.cox
not work with sbrier whilst mod.km does? Can I make it work?
> data(DLBCL)
> DLBCL.surv<-Surv(DLBCL$time,DLBCL$cens)
>
> mod.km<-survfit(DLBCL.surv)
> mod.cox<-survfit(coxph(DLBCL.surv~IPI, data=DLBCL))
>
2006 Jan 17
2
help with parsing multiple coxph() results
Dear All:
I have a question on using coxph for multiple genes:
I have written code to loop through all 22283 genes in the Hgu-133A and
apply coxph on survival data.
However, I don't know how to work with the result for each gene:
survtest<-coxph(Surv(pcc.primary.stg.3.cox[,'fup_interval'],pcc.primary.stg.
2013 Jan 24
1
predicted HR in coxph with psline
Hi all,
I have some questions about the predicted HR in coxph function including
psline covariate.
If just fitting covariate as linear form, by default, the reference value
for each of predictions type (linear predictor, risk and terms) is the mean
covariate within strata.
If the psline is specified for the covariate, what's the reference value
for the predictions?
I did some test code
2004 Oct 15
1
categorical varibles in coxph
Hello,
I wonder when I do coxph in R:
coxph( Surv(start, stop, event) ~ x, data=test)
If x is a categorical varible (1,2,3,4,5), should I creat four dummy
varibles for it? if yes, how can I get the overall p value on x other
than for each dummy variable?
Thanks
Lisa Wang
Princess Margaret Hospital
Phone 416 946 4501
2004 Apr 21
1
difference between coxph and cph
Hi. I am using Windows version of R 1.8.1. Being somewhat new to survival
analysis, I am trying to compare cph (Design) with coxph (survival) for use
with a survival data set.
I was wondering why cph and coxph provide me with different confidence
intervals
for the hazard ratios for one of the variables. I was wondering if I am
doing something wrong? Or if the two functions are calculating hazard
2007 Nov 09
2
wrapper for coxph with a subset argument
Dear R-help -
Thanks to those who replied yesterday (Christos H. and Thomas L.)
regarding my question on coxph and model formula, the answers worked
perfectly.
My new question involves the following.
I want to run several coxph models (package survival) with the same
dataset, but different subsets of that dataset.
I have found a way to do this, described below in functions subwrap1 and
2011 May 06
2
coxph and survfit issue - strata
Dear users,
In a study with recurrent events:
My objective is to get estimates of survival (obtained through a Cox model) by rank of recurrence and by treatment group.
With the following code (corresponding to a model with a global effect of the treatment=rx), I get no error and manage to obtain what I want :
data<-(bladder)
2007 Dec 09
2
Getting estimates from survfit.coxph
Dear all,
I'm having difficulty getting access to data generated by survfit and
print.survfit when they are using with a Cox model (survfit.coxph).
I would like to programmatically access the median survival time for
each strata together with the 95% confidence interval. I can get it on
screen, but can't get to it algorithmically. I found myself examining
the source of print.survfit to
2008 Jun 16
1
回复: cch() and coxph() for case-cohort
I tried to compare if cch() and coxph() can generate same result for
same case cohort data
Use the standard data in cch(): nwtco
Since in cch contains the cohort size=4028, while ccoh.data size =1154
after selection, but coxph does not contain info of cohort size=4028.
The rough estimate between coxph() and cch() is same, but the lower
and upper CI and P-value are a little different. Can we