% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate.R
\name{compare_models}
\alias{compare_models}
\title{Compare two stock-and-flow models}
\usage{
compare_models(sfm1, sfm2)
}
\arguments{
\item{sfm1}{A stock-and-flow model of class \code{\link{stockflow}}.}

\item{sfm2}{A stock-and-flow model of class \code{\link{stockflow}}.}
}
\value{
An object of class \code{compare_stockflow} (a list) containing:
\describe{
\item{\code{labels}}{Names of the two model objects (captured expressions).}
\item{\code{added}}{Variables present in \code{sfm2} but not \code{sfm1}.}
\item{\code{removed}}{Variables present in \code{sfm1} but not \code{sfm2}.}
\item{\code{type_changed}}{Variables with different types.}
\item{\code{eqn_changed}}{Variables with different equations.}
\item{\code{sim_settings_diff}}{Simulation settings that differ.}
\item{\code{properties}}{Per-model counts of variables by type.}
}
}
\description{
Compares the structure, equations, and simulation settings of two
\code{stockflow} models.
}
\examples{
sfm1 <- stockflow("sir")
sfm2 <- stock(sfm1, "susceptible", eqn = 0.5)
compare_models(sfm1, sfm2)

}
\seealso{
\code{\link[=simulate.stockflow]{simulate()}}, \code{\link[=summary.stockflow]{summary()}}
}
\concept{build}
