# Tag Info

## Hot answers tagged hazard

17

As some of the information you provided states, the two are not the same. I like better the terminology of conditional (on covariates) and unconditional (marginal) estimates. There is a very subtle language problem that clouds the issue greatly. Analysts who tend to love "population average effects" have a dangerous tendency to try to estimate such ...

16

Your intuition is correct. The following relationship between survival functions holds: $$S_1(t)=S_0(t)^r$$ where $r$ is the hazard ratio (see, e.g. the Wikipedia article Hazard ratio). From this we may show that your statement implies an exponential survival function. Let us denote the medians by $M_r$, $M_1$ for two variables with hazard ratio $r$. Your ...

16

If you have not assumed linearity for the continuous variables, or if linearity truly holds, then a next logical step is to assess proportionality of hazards using smoothed scaled Schoenfeld residual plots as implemented in the R survival package's cox.zph function. These plots show the estimated regression coefficient for a binary or continuous variable as ...

15

The derivative of $S$ is $$\frac{\mathrm{d}S(t)}{\mathrm{dt}} = \frac{\mathrm{d}(1 - F(t))}{\mathrm{dt}} = - \frac{\mathrm{d}F(t)}{\mathrm{dt}} = -f(t)$$ Therefore, as mentioned by @StéphaneLaurent, we have $$-\frac{\mathrm{d}\log(S(t))}{\mathrm{dt}} = \cfrac{-\frac{\mathrm{d}S(t)}{\mathrm{dt}}}{S(t)} = \frac{f(t)}{S(t)} = h(t)$$ where the last equality ...

14

The function basehaz (from the previous answer) provides the cumulative hazard, not the hazard function (the rate). I believe that question was about the hazard function. Estimating the hazard function would require specification of the type of smoothing (like in density estimation). The Muhaz R package can do this for one sample data. I am not aware of a ...

14

Assuming proportional hazards (as in a Cox model) and the hazard ratio for a 1 mg increase in nicotine smoked a day is 1.02, then this tells you that persons smoking 11 mgs were 1.02 as likely to die in the monitored time period than persons smoking 10 mgs. The same applies to 12 vs 11 mgs etc. If the units of your continuous covariable are too small for ...

14

Consider that there are shapes of pdf that have a mode, but at which the derivative of the pdf is not zero (the Laplace being an obvious example). There are also cases where there's no mode in the domain of the variable (examples below). That is, we can't say as a general statement "the mode can be obtained by taking the derivative of $g(x)$ and setting ...

12

an odds ratio of 2 means that the event is 2 time more probable given a one-unit increase in the predictor It means the odds would double, which is not the same as the probability doubling. In Cox regression, a hazard ratio of 2 means the event will occur twice as often at each time point given a one-unit increase in the predictor. Aside a bit of ...

11

The Book "An Introduction to Survival Analysis Using Stata" (2nd Edition) by Mario Cleves has a good chapter on that topic. You can find the chapter on google books, p. 13-15. But I would advise on reading the whole chapter 2. Here is the short form: "it measures the total amount of risk that has been accumulated up to time t" (p. 8) count data ...

11

A Poisson process is a model for a stream of "random" arrivals and has the properties that there can be at most one arrival at any instant $t$ the number of arrivals in any interval $(t_1,t_2]$ is a Poisson random variable which is here denoted as $\mathbb N(t_1,t_2]$ For $t_1 < t_2 \leq t_3 < t_4 \leq t_5 < t_6 < \cdots \leq t_{2n-1} < t_{... 11 Let$X$denote the time of death (or time of failure if you prefer a less morbid description). Suppose that$X$is a continuous random variable whose density function$f(t)$is nonzero only on$(0,\infty)$. Now, notice that it must be the case that$f(t)$decays away to$0$as$t \to \infty$because if$f(t)$does not decay away as stated, then$\...

11

The argument of a conditional pdf cannot depend on the conditioning event in any way, shape or form. In $$f_{T\mid A}(t\mid A) = \lim_{\delta\to 0} \frac{P\{t < T \leq t+\delta\mid A\}}{\delta},$$ $A$ can be a fixed event such as $\{T>5\}$ but not something that depends on $t$ such as $\{T > t\}$. Another important reason why a hazard function $h(... 10 Imagine that you are interested in the incidence of (first) marriage for men. To look at the incidence of marriage at age 20, say, you would select a sample of people who are not married at that age and see if they get married within the next year (before they turn 21). The you could get a rough estimate for $$P(\mathrm{marry\,\, before\,\, 21}| \mathrm{... 9 This kind of wild fluctuation arises from floating point rounding errors in the calculations. The hazard function of a \Gamma(a,1) distribution, with shape parameter a and scale parameter 1, equals$$H(x; a) = \frac{x^{a-1}\exp(-x)}{\int_x^\infty t^{a-1} \exp(-t) dt }.$$The maximum requested in the question is also the limiting value as x\to\infty... 9 I think your question could be further defined. The first distinction for churn models is between creating (1) a binary (or multi-class if there are multiple types of churn) model to estimate the probability of a customer churning within or by a certain future point (e.g. the next 3 months) (2) a survival type model creating an estimate of the risk of ... 9 The hazard is indeed a rate. It is the expected number of events a person can expect per time unit conditional on being at risk, i.e. not having died before. Say we are studying the time until you get the flu [influenza] , and we measured time in months and we got a hazard rate of .10, that is, a person is expected to get the flu .10 times per month assuming ... 8 If the matter is numerical stability, you could look at the log of the hazard function:$$log(h(t; \theta)) = log(f(t;\theta)) - log(1-F(t;\theta))$$You could use the log / log.p = TRUE flag in R for log values and the lower.tail flag for obtaining log(1 - F(t;\theta)) values: dweibull(100,1,1, log = T) # -100 pweibull(100, 1, 1, log.p = TRUE, lower.... 8 The gold standard in the frequentist world is the profile likelihood interval, but for the Cox model the log likelihood is very quadratic in shape with respect to the log hazard ratio. So a normal approximation on the log ratio scale works quite well for the proportional hazards model. 7 Assume K is the largest value of k (i.e. the largest month/period observed in your data). Here is the hazard function with a fully discrete parametrization of time, and with a vector of parameters \mathbf{B} a vector of conditioning variables \mathbf{X}: h_{j,k} = \frac{e^{\alpha_{k} + \mathbf{BX}}}{1 + e^{\alpha_{k} + \mathbf{BX}}}. The hazard ... 7 If the positive random variable T denotes the time of failure of a system with hazard rate \lambda(t), then it is straightforward to show that the cumulative probability distribution function of T is given by$$F_T(t) = 1 - \exp\left(-\int_0^t \lambda(\tau)\,\mathrm d\tau\right), ~ t \geq 0.$$Thus, if the hazard rate \lambda(t) equals a constant ... 7 Combining proportions dying as you do is not giving you cumulative hazard. Hazard rate in continuous time is a conditional probability that during a very short interval an event will happen:$$h(t) = \lim_{\Delta t \rightarrow 0} \frac {P(t<T \le t + \Delta t | T >t)} {\Delta t}$$Cumulative hazard is integrating (instantaneous) hazard rate over ... 7 muhaz() doesn't return the baseline hazard rate, but the hazard function including the contribution of covariates to the final hazard. You can divide the two contribution as I do with this code. First start simulating a dataset with a fixed hazard rate$h_0$: library(survival) set.seed(6) n <- 200 age <- 50 + 12*rnorm(n) sex <- factor(... 7 Cohen's approach been increasingly criticized. In general, attempting to define cutoffs for "small", "large", etc. is futile. The interpretation of any statistical measure is context-dependent. What is useful is to supplement a relative effect (hazard ratio, odds ratio, etc.) with an absolute effect. Suppose one had a model with only age and sex as ... 7 I think that many people who use the words "multivariate regression" with Cox models really mean to say "multiple regression." (I will confess to having done that myself; it's common in the literature.) "Multiple regression" means having more than one predictor in a regression model, while "multivariate regression" is a term perhaps better reserved for ... 7 The term for it seems to be relatively recent but the notion is considerably older. Jeff Miller's Earliest Known Uses of Some of the Words of Mathematics discusses the use of the term 'hazard rate', and it looks like that's from the 50s and 60s. It reports that the term "death-hazard rate" occurs in D. J. Davis "An Analysis of Some Failure Data," Journal ... 6 I'd HAZARD a guess that it's noteworthy owing to its use in diagnostic plots: (1) In the Cox proportional hazards model$h(x)=\mathrm{e}^{\beta^\mathrm{T} z}h_0(x)$, where$\beta$and$z$are the coefficient and covariate vectors respectively, &$h_0(x)$is the baseline hazard function; & so$\log H(x)=\beta^\mathrm{T} z + H_0(x)$. If you plot the ... 6 You seem to be talking about a simple parametric survival model. An exponential survival model would have survivor function$S(t)=e^{-\lambda_it}$, and hazard rate$\lambda_i$. (The function$f_i(t)= \lambda_ie^{-\lambda_it}$would be the failure density.) A parametric survival model is akin to a regression or a GLM, in that it has linear predictors, but (... 6 The Proportional Hazards Assumption is an assumption that the hazard function is proportional between two (or more) groups. So, for example, if you have "High Risk" and "Low Risk" patients, their survival functions can change over time, but as long as they change in a way where they are still proportional to one another, the assumption is met. What you're ... 6 Most likely you have a situation where, for a particular level of a categorical variable, >0 people have an event, but for the other levels, no one does. That makes it so that the HR is infinite--the extremely large HR you find is the computer's attempt to tell you the MLE is infinity. In logistic regression, this is called "complete separation"; I assume ... 5 The answer is that both are used, unfortunately. In the continuous case, you are right the distinction is unimportant. In the discrete case, the interpretation would be slightly different and therefore clarity is important. In my experience, the most common definition of the survival function is$S(t) = Pr(T>t)\$ and so would match your yellow column. ...

Only top voted, non community-wiki answers of a minimum length are eligible