% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compare.R
\name{compare_rem_models}
\alias{compare_rem_models}
\title{Forest plot comparing fitted REM coefficients}
\usage{
compare_rem_models(
  models,
  term_order = NULL,
  palette = NULL,
  title = "REM Coefficient Comparison"
)
}
\arguments{
\item{models}{Named list of \code{coxph} objects.}

\item{term_order}{Character vector giving the desired y-axis order (bottom
to top). Defaults to reverse alphabetical over all terms present.}

\item{palette}{Named character vector of hex colours keyed to
\code{names(models)}. A colour-blind-friendly default palette is applied when
\code{NULL}.}

\item{title}{Plot title string.}
}
\value{
A \code{ggplot} object (invisibly). The plot is also printed as a
side-effect.
}
\description{
Produces a coefficient plot with 95\% confidence intervals for a named list
of \code{coxph} models, with one colour per model source.
}
\examples{
\dontrun{
data(edgelist)
el <- prepare_edgelist(edgelist)
f  <- survival::Surv(time1, occurred) ~ Repetition + Recencylog +
         survival::strata(time2)
m1 <- fit_rem(el[1:150, ], f, n_nonevents = 30L, method = "cox")
m2 <- fit_rem(el[1:300, ], f, n_nonevents = 30L, method = "cox")
compare_rem_models(list("N=150" = m1, "N=300" = m2))
}
}
