% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build_ebmed_model_mcat_ycont.R
\name{build_ebmed_model_mcat_ycont}
\alias{build_ebmed_model_mcat_ycont}
\title{Build JAGS Model String (Binary M & Continuous Y)}
\usage{
build_ebmed_model_mcat_ycont(P, K, parms)
}
\arguments{
\item{P}{Integer. The number of predictors/covariates.}

\item{K}{Integer. The number of mediators.}

\item{parms}{A \code{data.frame} generated by \code{\link{make_parms_main}}
containing columns: \code{priors}, \code{distribution}, \code{arguments},
and \code{template}.}
}
\value{
A character string containing the full JAGS model specification.
}
\description{
This internal function generates a JAGS model string using logistic
regression (logit link) for the binary mediators and a Gaussian
likelihood for the continuous outcome. It incorporates spike-and-slab
variable selection on all mediation pathways.
}
\details{
Constructs the JAGS model specification for a Bayesian mediation model
where mediators are binary (0/1) and the outcome is continuous.


The model structure for binary mediators:
\itemize{
  \item \strong{Mediator Models:} \eqn{M_k \sim Bernoulli(p_{m_k})}, where
  \eqn{logit(p_{m_k})} is a linear combination of predictors \eqn{X}.
  \item \strong{Outcome Model:} \eqn{Y \sim Normal(\mu_y, \tau_y)}, where
  \eqn{\mu_y} includes both direct effects from \eqn{X} and indirect
  effects from binary \eqn{M}.
  \item \strong{Precision:} Note that \code{m.prec} is not used in this
  formulation as the mediators are binary.
}
}
\seealso{
\code{\link{buzzEBMcatMcontY}}, \code{\link{define_init_values}}
}
\keyword{internal}
