Skip to main content
added 18 characters in body; edited title
Source Link
Alexis
  • 30.7k
  • 8
  • 101
  • 176

Cox phproportional hazards model formulation with two correlated covariates

I want to set up a Cox phproportional hazards model with two correlated covariates $x$ and $y$. The two covariates are defined as this in R:

x <- rexp(n)
y <- 2x + rnorm(n)

Does the hazard function look like this:

$h(t|x) = h_0(t)*exp(\beta_1x+\beta_2y)$$h(t|x) = h_0(t)\times e^{\beta_1x+\beta_2y}$ or $h(t|x) = h_0(t)*exp(\beta_1x+\beta_2y+\beta_1\beta_2xy)$$h(t|x) = h_0(t)\times e^{\beta_1x+\beta_2y+\beta_1\beta_2xy}$?

Cox ph model formulation with two correlated covariates

I want to set up a Cox ph model with two correlated covariates $x$ and $y$. The two covariates are defined as this in R:

x <- rexp(n)
y <- 2x + rnorm(n)

Does the hazard function look like this:

$h(t|x) = h_0(t)*exp(\beta_1x+\beta_2y)$ or $h(t|x) = h_0(t)*exp(\beta_1x+\beta_2y+\beta_1\beta_2xy)$?

Cox proportional hazards model formulation with two correlated covariates

I want to set up a Cox proportional hazards model with two correlated covariates $x$ and $y$. The two covariates are defined as this in R:

x <- rexp(n)
y <- 2x + rnorm(n)

Does the hazard function look like this:

$h(t|x) = h_0(t)\times e^{\beta_1x+\beta_2y}$ or $h(t|x) = h_0(t)\times e^{\beta_1x+\beta_2y+\beta_1\beta_2xy}$?

Source Link
Tino
  • 87
  • 3
  • 8

Cox ph model formulation with two correlated covariates

I want to set up a Cox ph model with two correlated covariates $x$ and $y$. The two covariates are defined as this in R:

x <- rexp(n)
y <- 2x + rnorm(n)

Does the hazard function look like this:

$h(t|x) = h_0(t)*exp(\beta_1x+\beta_2y)$ or $h(t|x) = h_0(t)*exp(\beta_1x+\beta_2y+\beta_1\beta_2xy)$?