% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/makes_parms_from_df.R
\name{make_parms_from_df}
\alias{make_parms_from_df}
\title{Create Parameter Mapping from Data Frame}
\usage{
make_parms_from_df(my_prior)
}
\arguments{
\item{my_prior}{A \code{data.frame} containing the columns:
\code{priors}, \code{distribution}, and \code{arguments}.}
}
\value{
A validated \code{data.frame} with columns: \code{priors},
\code{distribution}, \code{arguments}, and \code{template}.
}
\description{
This internal worker function validates and merges a user-supplied
prior specification data frame with the system defaults.
}
\details{
This function is called by \code{\link{make_parms_main}} when a user provides
a custom prior data frame (Method 2) or completes the interactive wizard.
It enforces the following logic:
\itemize{
  \item \strong{Structural Validation:} Ensures the input is a data frame
  with all three required columns.
  \item \strong{Prior Filtering:} Any unrecognized priors (those not present
  in system defaults) are dropped with a warning.
  \item \strong{Missing Priors:} Any required priors missing from the user's
  data frame are filled using system defaults, and a warning is issued.
  \item \strong{Immutable Templates:} The \code{template} column is always
  sourced from \code{.make_default_parms} and cannot be overridden,
  ensuring the JAGS model structure remains valid.
  \item \strong{Argument Validation:} Arguments are split, coerced to
  numeric (except for \eqn{a.coef} and \eqn{b.coef} hyperprior references),
  and checked against distribution-specific range rules.
}
}
\seealso{
\code{\link{make_parms_main}}, \code{\link{run_parms_wizard}}
}
\keyword{internal}
