% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ild_compare_pipelines.R
\name{ild_compare_pipelines}
\alias{ild_compare_pipelines}
\title{Compare provenance of two objects and report differences}
\usage{
ild_compare_pipelines(x1, x2)
}
\arguments{
\item{x1}{First object (ILD data, model fit, or diagnostics with provenance).}

\item{x2}{Second object (same types as x1).}
}
\value{
A list of class \code{ild_compare_pipelines} with \code{only_in_first}
  (step names only in x1), \code{only_in_second}, \code{differing} (list of
  per-step arg differences), and \code{summary} (character vector of
  human-readable differences). If either object has no provenance, returns
  a list with \code{message} and empty comparison components.
}
\description{
Flattens provenance for each object (data steps plus analysis steps), then
compares step sequences and key arguments. Useful to compare preprocessing
pipelines, model settings, or to see what changed between two analyses.
}
\examples{
set.seed(1)
d <- ild_simulate(n_id = 5, n_obs_per = 6, seed = 1)
x1 <- ild_prepare(d, id = "id", time = "time")
x1 <- ild_center(x1, y)
x2 <- ild_prepare(d, id = "id", time = "time")
x2 <- ild_center(x2, y)
ild_compare_pipelines(x1, x2)
}
