Displaying 20 results from an estimated 2000 matches similar to: "smooth non cumulative baseline hazard in Cox model"
2004 Jul 26
5
covariate selection in cox model (counting process)
Hello everyone,
I am searching for a covariate selection procedure in a cox model formulated
as a counting process.
I use intervals, my formula looks like coxph(Surv(start,stop,status)~
x1+x2+...+cluster(id),robust=T) where id is a country code (I study
occurence of civil wars from 1962 to 1997).
I'd like something not based on p-values, since they have several flaws for
this purpose.
I turned
2013 Nov 04
0
Fwd: Re: How to obtain nonparametric baseline hazard estimates in the gamma frailty model?
-------- Original Message --------
Subject: Re: How to obtain nonparametric baseline hazard estimates in the gamma frailty model?
Date: Mon, 04 Nov 2013 17:27:04 -0600
From: Terry Therneau <therneau.terry at mayo.edu>
To: Y <yuhanusa at gmail.com>
The cumulative hazard is just -log(sfit$surv).
The hazard is essentially a density estimate, and that is much harder. You'll notice
1999 Aug 14
1
leaps and bounds
Dear friends. On the Bayesian averaging homepage http://www.research.att.com/~volinsky/bma.html I found
some S code some of which perhaps may run in R. There was a call to an algorithm possibly within S but not supported by R 64.1: "leaps and bounds". I guess it is a minimization step. Can anyone clarify the algorithm and perhaps even give a pointer to some code ?
I guess this may be
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
2004 Aug 13
1
How to use the whole dataset (including between events) in Cox model (time-varying covariates) ?
Hello,
coxph does not use any information that are in the dataset between event
times (or "death times") , since computation only occurs at event times.
For instance, removing observations when there is no event at that time in
the whole dataset does not change the results:
> set.seed(1)
> data <-
as.data.frame(cbind(start=c(1:5,1:5,1:4),stop=c(2:6,2:6,2:5),status=c(rep(
2002 Jan 31
1
Leaps and bound
Hi,
I used the bic.surv function, S-PLUS functions developed by Chris Volinsky
http://www.research.att.com/~volinsky/bma.html, without problems with
S-PLUS.
I have to use it with R but I am face with a problem: this function call a
fortran routine named "leaps" (answer <- .Fortran("leaps", arguments)). I
loaded the leaps library, and the leaps function work well with my R,
2003 Dec 05
1
Robust Covariance Estimation (NNVE) Package Released
Robust Covariance Estimation Software via Nearest Neighbor Variance Estimation (NNVE)
Software to carry out robust covariance estimation by Nearest Neighbor
Variance Estimation (NNVE) [Wang and Raftery (2002, J. Amer. Statist. Ass.)]
is now available for R and Splus. In the simulation studies published in JASA,
this had mean squared error at least 100 times smaller than that of
other leading
2003 Dec 05
1
Robust Covariance Estimation (NNVE) Package Released
Robust Covariance Estimation Software via Nearest Neighbor Variance Estimation (NNVE)
Software to carry out robust covariance estimation by Nearest Neighbor
Variance Estimation (NNVE) [Wang and Raftery (2002, J. Amer. Statist. Ass.)]
is now available for R and Splus. In the simulation studies published in JASA,
this had mean squared error at least 100 times smaller than that of
other leading
2013 Feb 18
1
nobs() with glm(family="poisson")
Hi!
The nobs() method for glm objects always returns the number of cases
with non-null weights in the data, which does not correspond to the
number of observations for Poisson regression/log-linear models, i.e.
when family="poisson" or family="quasipoisson".
This sounds dangerous since nobs() is, as the documentation states,
primarily aimed at computing the Bayesian
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
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 Mar 14
1
obtaining the values for the hazard function in a cox regression
Hello ,
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 advice from (who does not
2005 Nov 18
2
R-News 5/2, Bayesian Model Averaging, a detail
The article on BMA (Bayesian model averaging) presents most valuable tools for model selection, but I find one detail confusing in Example 1. In page 4 of RNews 5/2, second paragraph says that the probability of Time variable not being in the model is 0.445. It seems to me that the figure should be 1 - 0.445 = 0.555, because p!=0.445 is the prob. of Time variable being in the model. The plot in
2011 Jun 13
1
Convert SAS code to R code about survival analysis
Hi, I am working on transforming a SAS code to R code.
It's about the survival analysis and the SAS code is as below:
--------------------------------------
proc lifetest data=surdata plot=(s);
time surv*censht(1);
strata educ;
title 'Day 1 homework';
run;
----------------------------------------
here is the data:
subject surv censht educ
1 78 1 1
2
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
2010 Nov 15
1
Proportional hazard model with weibull baseline hazard
Dear R-users,
I would like to fit a fully parametric proportional hazard model with a
weibull baseline hazard and a logit link function. This is, the hazard
function is: lambda_i (t) = lambda_0 (t) psi (x_i* beta)
where lambda_0 is a weibull distribution and psi a logistic distribution.
Does someone know a package and/or function on R to do this?
Thanks.
--
M.L. AvendaƱo
[[alternative HTML
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
2001 Dec 21
1
proportional hazard with parametric baseline function: can it be estimated in R
Greetings --
I would like to estimate a proportional hazard model with a weibull or
lognormal baseline. I have looked at both the coxph() and survreg()
functions and neither appear (to me ) to do it. Am I missing something in
the docs or is there another terrific package out there that will do this.
Many Thanks.
Carl Mason
2004 Jun 07
2
MCLUST Covariance Parameterization.
Hello all (especially MCLUS users).
I'm trying to make use of the MCLUST package by C. Fraley and A. Raftery. My problem is trying to figure out how the (model) identifier (e.g, EII, VII, VVI, etc.) relates to the covariance matrix. The parameterization of the covariance matrix makes use of the method of decomposition in Banfield and Rraftery (1993) and Fraley and Raftery (2002) where