% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{avc}
\alias{avc}
\title{AVC: Atrioventricular Canal Repair}
\format{
A data frame with 310 rows and 11 variables:
\describe{
\item{study}{Patient identifier}
\item{status}{NYHA functional class (1--4)}
\item{inc_surg}{Surgical grade of AV valve incompetence}
\item{opmos}{Date of operation (months since January 1967)}
\item{age}{Age at repair (months)}
\item{mal}{Malalignment indicator (0/1)}
\item{com_iv}{Interventricular communication indicator (0/1)}
\item{orifice}{Associated cardiac anomaly indicator (0/1)}
\item{dead}{Death indicator (1 = dead, 0 = censored)}
\item{int_dead}{Follow-up interval to death or last contact (months)}
\item{op_age}{Interaction term: opmos x age}
}
}
\source{
Blackstone, Naftel, and Turner (1986)
\doi{10.1080/01621459.1986.10478314}. Cleveland Clinic Foundation.
}
\usage{
avc
}
\description{
Survival data for 310 patients who underwent repair of atrioventricular
septal defects (congenital heart disease) at the Cleveland Clinic between
1977 and 1993. Exhibits two identifiable hazard phases: an early
post-operative risk and a constant late phase.
}
\examples{
data(avc)
avc <- na.omit(avc)

# Kaplan-Meier survival
km <- survival::survfit(survival::Surv(int_dead, dead) ~ 1, data = avc)
plot(km, xlab = "Months after AVC repair", ylab = "Survival",
     main = "AVC: Kaplan-Meier survival estimate")

\donttest{
# Two-phase hazard fit (early CDF + constant -- what AVC supports)
fit <- hazard(
  survival::Surv(int_dead, dead) ~ 1, data = avc,
  dist = "multiphase",
  phases = list(
    early    = hzr_phase("cdf", t_half = 0.5, nu = 1, m = 1),
    constant = hzr_phase("constant")
  ),
  fit = TRUE, control = list(n_starts = 5, maxit = 1000)
)
summary(fit)
}

}
\seealso{
\code{vignette("fitting-hazard-models")},
\code{vignette("prediction-visualization")}

Other datasets:
\code{\link{cabgkul}},
\code{\link{omc}},
\code{\link{tga}},
\code{\link{valves}}
}
\concept{datasets}
\keyword{datasets}
