\HeaderA{read.betas}{Function to read in eiMD parameter chains saved to disk}{read.betas}
\keyword{IO}{read.betas}
\keyword{utilities}{read.betas}
\begin{Description}\relax
In \code{\LinkA{ei.MD.bayes}{ei.MD.bayes}}, users have the option to save parameter
chains for the unit-level betas to disk rather than returning them to
the workspace.  This function reconstructs the parameter chains by
reading them back into R and producing either an array or an
\code{mcmc} object.
\end{Description}
\begin{Usage}
\begin{verbatim}
read.betas(rows, columns, units, dir = NULL, ret.mcmc = TRUE) 
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{rows}] a character vector of the row marginals to be read back
in
\item[\code{columns}] a character vector of the column marginals to be read
back in
\item[\code{units}] a character of numeric vector with the units to be read
back in
\item[\code{dir}] an optional character string identifying the directory in
which parameter chains are stored (defaults to \code{getwd})
\item[\code{ret.mcmc}] a logical value specifying whether to return the
parameters as an \code{mcmc} object (defaults to \code{TRUE})
\end{ldescription}
\end{Arguments}
\begin{Value}
If \code{ret.mcmc = TRUE}, an \code{mcmc} object with row names
corresponding to the parameter chains.  If \code{ret.mcmc = FALSE}, an
array with dimensions named according to the selected \code{rows},
\code{columns}, and \code{units}.
\end{Value}
\begin{Author}\relax
Olivia Lau \textless{}olivia.lau@post.harvard.edu\textgreater{}
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{ei.MD.bayes}{ei.MD.bayes}},\code{mcmc}
\end{SeeAlso}

