Skip to content

Commit

Permalink
qa: Add information on how to run a mixture model
Browse files Browse the repository at this point in the history
  • Loading branch information
rikardn committed May 23, 2019
1 parent f28865e commit f08e3fa
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions doc/qa_userguide.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\input{inputs/format_header.tex}
\guidetitle{QA user guide}{2018-03-02}
\guidetitle{QA user guide}{2018-05-22}

\usepackage{hyperref}
\begin{document}
Expand Down Expand Up @@ -117,9 +117,20 @@ \subsection{General limitations and problems}
\item Only parameters associated with an ETA can be used in the \verb|-parameter=| option
\item All covariates must be available in the dataset and declared in \$INPUT
\item Missing values for covariates must be coded using -99
\item Mixture models are not supported
\item Mixture models are not directly supported and need some extra manual work. See section below.
\end{itemize}

\subsection{Mixture models}
Mixture models cannot be handled directly by qa, but with some extra steps they can be made to work by preestimating the most likely subpopulation for each individual and use this as a covariate instead of a mixture:
\begin{enumerate}
\item Get the MIXEST for each individual either from the .phm file or in a table
\item Add the MIXEST values as a column in your dataset and call it SPOP
\item Add SPOP to \$INPUT of the model
\item Remove the \$MIX of the model and all \$THETAS now not longer needed
\item Replace all the use of MIXNUM in the abbreviated code into SPOP
\end{enumerate}


\subsection{SCM}
\begin{itemize}
\item The SCM requires parameters defined in \verb|-parameter=P| to be associated with the corresponding ETA in the format P=f(ETA(x)), i.e. where the ETA is on the left-hand side of the equation defining the parameter. Parameters need to be defined in \$PK or \$PRED, not \$ERROR.
Expand Down

0 comments on commit f08e3fa

Please sign in to comment.