% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ui-bind.R
\name{rxAppendModel}
\alias{rxAppendModel}
\title{Append two rxui models together}
\usage{
rxAppendModel(..., common = TRUE)
}
\arguments{
\item{...}{models to append together}

\item{common}{boolean that determines if you need a common value to bind}
}
\value{
New model with both models appended together
}
\description{
Append two rxui models together
}
\examples{

\donttest{

ocmt <- function() {
  ini({
    tka <- exp(0.45) # Ka
    tcl <- exp(1) # Cl
    tv <- exp(3.45); # log V
    ## the label("Label name") works with all models
    add.sd <- 0.7
  })
  model({
    ka <- tka
    cl <- tcl
    v <- tv
    d/dt(depot) <- -ka * depot
    d/dt(center) <- ka * depot - cl / v * center
    cp <- center / v
    cp ~ add(add.sd)
  })
}

idr <- function() {
  ini({
    tkin <- log(1)
    tkout <- log(1)
    tic50 <- log(10)
    gamma <- fix(1)
    idr.sd <- 1
  })
  model({
    kin <- exp(tkin)
    kout <- exp(tkout)
    ic50 <- exp(tic50)
    d/dt(eff) <- kin - kout*(1-ceff^gamma/(ic50^gamma+ceff^gamma))
    eff ~ add(idr.sd)
  })
}

rxAppendModel(ocmt |>
  model(ceff=cp,append=TRUE), idr)

}

}
\author{
Matthew L. Fidler
}
