Displaying 20 results from an estimated 1000 matches similar to: "Plotting Cumulative Hazard Functions with Strata"
2008 Sep 05
1
Confidence Intervals on Hazard Plots
Hello, Is it possible to create confidence intervals for hazard rates? ?I'm creating two muhaz objects:?
haz1 <- muhaz(NumDaysCustomer[cRV=="true"],status[cRV=="true"])
haz2 <- muhaz(NumDaysCustomer[cRV=="false"],status[cRV=="false"])
and plotting them. ?
There are many, many more observations in the cohort cRV=="false" than
2008 Sep 26
1
Computing Mean Lifetime from Hazard
Hello,
If all I have access to is an empirically calculated hazard function, is it possible to compute an approximate value for the mean lifetime?
I know that if the hazard function is essentially constant, the mean lifetime is 1/hazard rate. ?But if I'm confident that the empirical hazard function is not constant, I'm not sure how to go about calculating an estimate of mean lifetime.
2018 Apr 04
1
parfm unable to fit models when hazard rate is small
Hello, I would like to use the parfm package: https://cran.r-project.org/web/packages/parfm/parfm.pdfhttps://cran.r-project.org/web/packages/parfm/parfm.pdf in my work. This package fits parametric frailty models to survival data. To ensure I was using it properly, I started by running some small simulations to generate some survival data (without any random effects), and analyse the data using
2010 Mar 16
1
Problems compiling a simple source package on MacOS X
Hello. I wrote a package (that contains C source) that I've been
compiling and running on both Linux and Windows for about a year.
However, that same source package fails to compile on MacOS (10.4.11,
PowerPC G4, Xcode installed, gcc version 4.0.1, make version 3.80, ld
version cctools-590.23.2.obj~17).
There is nothing platform-specific in the code-- just numerical
functions that I
2009 Jun 03
2
Create a time interval from a single time variable
I am trying to set up a data set for a survival analysis with time-varying covariates. The data is already in a long format, but does not have a variable to signify the stopping point for the interval. The variable DaysEnrolled is the variable I would like to use to form this interval. This is what I have now:
ID Age DaysEnrolled HAZ WAZ WHZ Food onARV
2004 May 10
1
Explaining Survival difference between Stata and R
Dear Everybody:
I'm doing my usual "how does that work in R" thing with some Stata
projects. I find a gross gap between the Stata and R in Cox PH models,
and I hope you can give me some pointers about what goes wrong. I'm
getting signals from R/Survival that the model just can't be estimated,
but Stata spits out numbers just fine.
I wonder if I should specify initial
2006 Jun 12
0
non parametric estimates of the hazard with right censored data
Hi,
I want to plot non parametric estimates of the empirical hazard function for
right censored data. I've tried many functions from different packages
(muhaz, Design, survival, eha, event), but none of them gave me what I
wanted. Am I missing something?
Here's what I want. The data below is the same used by Kiefer (J. Economic
Literature, 1988), which in turns use a subset of the data
2011 May 10
1
Cumulative dose in survival models
Dear List,
?
I want to fit a CPH survival model with a time-dependent cumulative exposure variable. More specifically, I have exposure measurements for all cohort members at discrete times (yearly measurements) during follow-up.
?
I suppose that when estimating the model parameters the most correct would be to have the cumulative exposure for everybody at risk at each death time, as I cannot
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
2014 Jan 30
2
objecto ggplot
Daniel,
Disculpa si no entiendo, pero, entonces un objecto ggplot en en realidad
una función
y no un gráfico
El 30 de enero de 2014, 11:09, Marta Garcia <marta000garcia@gmail.com>escribió:
> Sí, devuelve Error: No layers in plot, no le he agregado capas
> por eso el error, la funcion me dice que es un gráfico
>
>
> El 30 de enero de 2014, 10:31, José María Mateos
2012 Jan 05
1
Fwd: WHO Anthro growth curve macros and R&In-Reply-To=<CAAOCNNZawGtKkWpgFMYADSyxWGTeWEDxqVVHv7=Azo=1G+H9gg@mail.gmail.com>
Dear Gustaf,
I wish you a happy new year!
I am a PhD Staff at LSHTM and I have been trying to use WHO anthro macros in R with the file you posted on internet but when I double check the WHZ, HAZ, WAZ output with output from ENA or STATA, it differs slightly. Do you have any idea why that might be the case?
Many thanks
Severine
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
2009 May 27
2
Factor level with no cases shows up in a plot
Consider this data structure (df1) ...
Group Year PctProf FullYr
1 Never RF 2004 87 88
2 Cohort 1 2004 83 84
3 Cohort 2 2004 84 86
4 Cohort 3 2004 87 87
5 Cohort 4 2004 73 74
6 Never RF 2005 85 86
7 Cohort 1 2005 81 82
8 Cohort 2 2005 81 81
9 Cohort 3 2005 78 79
10 Cohort 4 2005 72 74
11
2010 May 26
2
Survival analysis extrapolation
Dear all,
I'm trying to fit a curve to some 1 year failure-time data, so that I can
extrapolate and predict failure rates up to 3 years. The data is in the
general form:
Treatment Time Status
Treatment A 28 0
Treatment B 28 0
Treatment B 28 0
Treatment A 28
2011 Nov 30
1
Nomogram with stratified cph in rms package, how to get failure probability
Hello,
I am using Dr. Harrell's rms package to make a nomogram. I was able to make
a beautiful one. However, I want to change 5-year survival probability to
5-year failure probability.
I couldn?t get hazard rate from Hazard(f1) because I used cph for the model.
Here is my code:
library(rms)
f1 <- cph(Surv(retime,dfs) ~
age+her2+t_stage+n_stage+er+grade+cytcyt+Cyt_PCDK2 , data=data11,
2012 May 07
1
Can't find the error in a Binomial GLM I am doing, please help
Hi all,
I can't find the error in the binomial GLM I have done. I want to use that
because there are more than one explanatory variables (all categorical) and
a binary response variable.
This is how my data set looks like:
> str(data)
'data.frame': 1004 obs. of 5 variables:
$ site : int 0 0 0 0 0 0 0 0 0 0 ...
$ sex : Factor w/ 2 levels "0","1": NA NA NA
2011 Oct 05
0
How to get the hazard of coxph (not cumulative hazard)
Dear all,
I think the coxph and survfit.coxph can give the cumulative hazard of cox
model.
But is there any method to calculate the hazard
Lambda(t)=lambda_0(t)*exp{beta*X(t)}?
Any suggestion will be great help.
Thank you very much!
Koshihaku
--
View this message in context: http://r.789695.n4.nabble.com/How-to-get-the-hazard-of-coxph-not-cumulative-hazard-tp3873516p3873516.html
Sent from the R
2005 Mar 21
2
Hazard function or cumulative Hazard function in R
Hi,
I'm student from canada, and i'work in survival
analysis.I want to know if there is a hazard function
or cumulative hazard function in R or not, i know how
to program it, but it is easy to use it if they exists
in R.
Thanks.
Yassir
2011 Jun 28
2
coxph() - unexpected result using Crawley's seedlings data (The R Book)
Hi,
I ran the example on pp. 799-800 from Machael Crawley's "The R Book" using package survival v. 2.36-5, R 2.13.0 and RStudio 0.94.83. The model is a Cox's Proportional Hazards model. The result was quite different compared to the R Book. I have compared my code to the code in the book but can not find any differences in the function call. My results are attached as well as a
2011 Aug 06
1
help with predict for cr model using rms package
Dear list,
I'm currently trying to use the rms package to get predicted ordinal
responses from a conditional ratio model. As you will see below, my
model seems to fit well to the data, however, I'm having trouble
getting predicted mean (or fitted) ordinal response values using the
predict function. I have a feeling I'm missing something simple,
however I haven't been able to