Learn R Programming

carts (version 0.1.0)

est_phreg: Marginal Cox proportional hazards model for the treatment effect in RCT

Description

Marginal Cox proportional hazards model for the treatment effect in RCT

Usage

est_phreg(
  response = "Surv(time, status)",
  treatment = "a",
  level = 0.95,
  id = NULL
)

Value

function

Arguments

response

Response variable (character or formula). Default: "Surv(time, status)"

treatment

Treatment variable (character)

level

Confidence interval level

id

Optional subject id variable (character)

Author

Klaus Kähler Holst

See Also

Trial est_adj