Displaying 20 results from an estimated 200 matches similar to: "obtaining the values for the hazard function in a cox regression"
2009 Mar 28
1
stratified variables in a cox regression
>Hello,
I am hoping for assistance in regards to examining the contribution
of stratified variables in a cox regression. A previous post by Terry
Therneau noted that "That is the point of a strata; you are declaring
a variable to NOT be proportional hazards, and thus there is no
single "hazard ratio" that describes it". Given this purpose of
stratification, in the
2009 Mar 16
0
hazard function in a Cox model
-- begin included message ---
I am hoping for some advice regarding obtaining the values for the
hazard function in a cox regression that I have undertaken. I have a
model in the following form, analysed with the package survival (v.
2.34-1) and a log-log plot obtained using Design (v. 2.1-2).
For two variables, the lines in the survival curves crossed. The
statistician I been obtaining
2008 Nov 29
0
Error in check(itp) : object does not represent a K sample problem with censored data
Hello,
I have two questions regarding a survival analysis I have been
working on. Below is the code to date.
The variables:
1) recidivism$intDaysUntilFVPO are the number of days before an
violent offence was committed - if no offence was committed than the
days between court hearing and end of data collection was recorded.
2) recidivism$intDaysUntilFNVPO are the number of days before a
2004 Jul 29
2
XP does not join domain
hi,
i've the following problem: i want a XP pro sp1 to join my samba (3.0.5)
domain (MHC). with my first try it complained that it could not resolve:
_ldap._tcp.dc._msdcs.MHC
i've fixed this with the following DNS setup:
------------------------------
_ldap._tcp.MHC. 600 IN SRV
0 100 389 server.MHC.
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
2012 Aug 09
1
basehaz() in package survival and warnings with coxph
I've never seen this, and have no idea how to reproduce it.
For resloution you are going to have to give me a working example of the
failure.
Also, per the posting guide, what is your sessionInfo()?
Terry Therneau
On 08/09/2012 04:11 AM, r-help-request at r-project.org wrote:
> I have a couple of questions with regards to fitting a coxph model to a data
> set in R:
>
> I have a
2008 Apr 07
2
basehaz and newdata
I am unable to get the basehaz function to apply a proportional
hazards model to a new data frame. I replicated my specific situation
with the example for coxph in the help, where I changed the x value of
the first record from 0 to 1. Is there something incorrect in the
syntax that I am using? Thanks in advance!
test1 <- list(time= c(4, 3,1,1,2,2,3),
status=c(1,NA,1,0,1,1,0),
2012 Aug 08
1
basehaz() in package 'Survival' and warnings() with coxph
Hello,
I have a couple of questions with regards to fitting a coxph model to a data
set in R:
I have a very large dataset and wanted to get the baseline hazard using the
basehaz() function in the package : 'survival'.
If I use all the covariates then the output from basehaz(fit), where fit is
a model fit using coxph(), gives 507 unique values for the time and the
corresponding cumulative
2008 Dec 28
1
cox regression warning/error messages
Hello,
I am hoping for some advice regarding warning/error messages I
received when running a Cox regression
# message 1 - obtained while creating a plot of residuals
> plot (NV.zph, main = "groupNUSM - UNFIT", var= 'groupNUSM')
Warning messages:
1: In approx(xx, xtime, seq(min(xx), max(xx), length.out = 17)[2 * :
collapsing to unique 'x' values
2: In
2005 Mar 29
3
smbd 100% systemload
hi,
i've a debian sarge setup with samba 3.0.10 with ldap as SAM backend. every
thing used to work as expected, but last week the machine went down. an
analysis of the problem has showen, that with increasing uptime there is a
growing number of smbd processes that caus 100% CPU utilation. tests have
showen, that i can kill these processes without harming smb conecctivtiy.
this is a
2009 Oct 27
2
cox regression extract strata as numeric
Hi there,
I perform a stratified cox and then I need the strata as a numeric array "straft.ln"
ft.ln <- coxph(Surv(times,deaths)~ages+chemos+chemos:f1+chemos:f2+horms+horms:f1+horms:f2+grades+grades:f1+grades:f2+positives+positives:f1+positives:f2+sizes+sizes:f1+sizes:f2+strata(stra),data=ddd)
basehazzft.ln=basehaz(ft.ln,centered=FALSE)
H0ft.ln=c(basehazzft.ln[,1])
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
2007 Jan 19
1
Error in basehaz function ?
Hello R-users.
I believe that the way basehaz (in the survival package) compute the
baseline hazard function is false.
I come to question this function when it gives me hazard probabilities
greater than 1.
Looking at the code I think I've localised the error :
hazard probability is computed as :
H <- -log(surv)
but it seems to me that hazard probabilities is rather an instantaneous
2012 Jan 25
4
formula error inside function
I want use survfit() and basehaz() inside a function, but it doesn't work.
Could you take a look at this problem. Thanks for your help. Following is my
codes:
library(survival)
n <- 50 # total sample size
nclust <- 5 # number of clusters
clusters <- rep(1:nclust,each=n/nclust)
beta0 <- c(1,2)
set.seed(13)
#generate phmm data set
Z <- cbind(Z1=sample(0:1,n,replace=TRUE),
2005 Jun 10
1
Estimate of baseline hazard in survival
Dear All,
I'm having just a little terminology problem, relating the language used in
the Hosmer and Lemeshow text on Applied Survival Analysis to that of the
help that comes with the survival package.
I am trying to back out the values for the baseline hazard, h_o(t_i), for
each event time or observation time.
Now survfit(fit)$surv gives me the value of the survival function,
S(t_i|X_i,B),
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 May 04
1
Nelson-Aalen estimator of cumulative hazard
Hi,
I am computing the Nelson-Aalen (NA) estimate of baseline cumulative hazard in two different ways using the "survival" package. I am expecting that they should be identical. However, they are not. Their difference is a monotonically increasing with time. This difference is probably not large to make any impact in the application, but is annoyingly non-trivial for me to just
2003 Jul 11
2
hazard estimate
Dear list,
is there a function available which provides an estimate of the hazard
function
based on a cox proportional hazard model? I only found the cumulative
hazard and the survival function as survfit options.
Thanks for your help
Peter
2008 Sep 17
0
fMultivar functions not loading under R-2.7
I submitted this to rmetrics help list as well...
I've been using R-2.4 with Rmetrics successfuly for a year or two.
I recently moved to Ubuntu Linux 8.04, loaded R via apt-get install R-base
etc. etc...
then in the R interface i ran install.packages("fMultivar"), chose the CRAN
mirror and it loaded fMultivar and all the required dependecies.
However, when I try to run the same