|
|
|
@ -19,97 +19,101 @@ written or requires reparameterization.
|
|
|
|
%TODO: and info about how I learned about these diagnostics
|
|
|
|
%TODO: and info about how I learned about these diagnostics
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\subsubsection{Diagnostics}
|
|
|
|
% \subsubsection{Diagnostics}
|
|
|
|
%Examine trank plots
|
|
|
|
% %Examine trank plots
|
|
|
|
To identify which parameters were problematic, I first looked at trace rank
|
|
|
|
% To identify which parameters were problematic, I first looked at trace rank
|
|
|
|
histograms.
|
|
|
|
% histograms.
|
|
|
|
Under idea circumstances, each line (representing a chain) should exchange
|
|
|
|
% Under idea circumstances, each line (representing a chain) should exchange
|
|
|
|
places with the other lines frequently.
|
|
|
|
% places with the other lines frequently.
|
|
|
|
In both \cref{fig:mu_trank} and \cref{fig:sigma_trank}, most parameters seem
|
|
|
|
% In both \cref{fig:mu_trank} and \cref{fig:sigma_trank}, most parameters seem
|
|
|
|
to mix well but there are a couple of exceptions.
|
|
|
|
% to mix well but there are a couple of exceptions.
|
|
|
|
This warrants further investigation.
|
|
|
|
% This warrants further investigation.
|
|
|
|
|
|
|
|
%
|
|
|
|
|
|
|
|
% \begin{figure}[H]
|
|
|
|
|
|
|
|
% \includegraphics[width=\textwidth]{../assets/img/mu_trank.png}
|
|
|
|
|
|
|
|
% \caption{Trace Rank Histogram: Mu values}
|
|
|
|
|
|
|
|
% \label{fig:mu_trank}
|
|
|
|
|
|
|
|
% \end{figure}
|
|
|
|
|
|
|
|
%
|
|
|
|
|
|
|
|
% \begin{figure}[H]
|
|
|
|
|
|
|
|
% \includegraphics[width=\textwidth]{../assets/img/sigma_trank.png}
|
|
|
|
|
|
|
|
% \caption{Trace Rank Histogram: Sigma values}
|
|
|
|
|
|
|
|
% \label{fig:sigma_trank}
|
|
|
|
|
|
|
|
% \end{figure}
|
|
|
|
|
|
|
|
%
|
|
|
|
|
|
|
|
% %Take a look at batman and points for mu
|
|
|
|
|
|
|
|
% In the case of the Mu values, a parallel coordinates plot
|
|
|
|
|
|
|
|
% doesn't seem to indicate any parameters as likely candidates
|
|
|
|
|
|
|
|
% for causing the issues with divergent transitions.
|
|
|
|
|
|
|
|
% \begin{figure}[H]
|
|
|
|
|
|
|
|
% \includegraphics[width=\textwidth]{../assets/img/mu_batman.png}
|
|
|
|
|
|
|
|
% \caption{Parallel Coordinate Plot: Mu values}
|
|
|
|
|
|
|
|
% \label{fig:mu_batman}
|
|
|
|
|
|
|
|
% \end{figure}
|
|
|
|
|
|
|
|
% Note that at each parameter, there is some level of dispersion between
|
|
|
|
|
|
|
|
% values that diverged.
|
|
|
|
|
|
|
|
%
|
|
|
|
|
|
|
|
% On the other hand, in the parallel coordinates plot for sigma values,
|
|
|
|
|
|
|
|
% it appears that most divergent transitions occur with values of
|
|
|
|
|
|
|
|
% sigma[1], sigma[3], sigma[6], and sigma[7] close to zero.
|
|
|
|
|
|
|
|
% \begin{figure}[H]
|
|
|
|
|
|
|
|
% \includegraphics[width=\textwidth]{../assets/img/sigma_batman.png}
|
|
|
|
|
|
|
|
% \caption{Parallel Coordinate Plot: Sigma values}
|
|
|
|
|
|
|
|
% \label{fig:sigma_batman}
|
|
|
|
|
|
|
|
% \end{figure}
|
|
|
|
|
|
|
|
% Overall this suggests that there is an issue with the specification
|
|
|
|
|
|
|
|
% of the covariance structures of the hyperparameters.
|
|
|
|
|
|
|
|
%
|
|
|
|
|
|
|
|
% Additional evidence that the covariance structure is incorrect comes from
|
|
|
|
|
|
|
|
% plotting pairs of parameter values and examining the chains with divergent
|
|
|
|
|
|
|
|
% transitions.
|
|
|
|
|
|
|
|
%
|
|
|
|
|
|
|
|
% \begin{figure}[H]
|
|
|
|
|
|
|
|
% \includegraphics[width=\textwidth]{../assets/img/sigma_pairs_5-9.png}
|
|
|
|
|
|
|
|
% \caption{Parameter Pairs plots: Sigma[5] through Sigma[9]}
|
|
|
|
|
|
|
|
% \label{fig:sigma_pairs_5-9.png}
|
|
|
|
|
|
|
|
% \end{figure}
|
|
|
|
|
|
|
|
% From this we can see that divergent pairs are highly correlated with the cases
|
|
|
|
|
|
|
|
% where sigma[6] or sigma[7] are equal to zero.
|
|
|
|
|
|
|
|
% This has an impact on the shape of both of those estimated parameters, causing
|
|
|
|
|
|
|
|
% both to be bimodal.
|
|
|
|
|
|
|
|
|
|
|
|
\begin{figure}[H]
|
|
|
|
|
|
|
|
\includegraphics[width=\textwidth]{../assets/img/mu_trank.png}
|
|
|
|
|
|
|
|
\caption{Trace Rank Histogram: Mu values}
|
|
|
|
|
|
|
|
\label{fig:mu_trank}
|
|
|
|
|
|
|
|
\end{figure}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin{figure}[H]
|
|
|
|
\subsection{Interpretation}
|
|
|
|
\includegraphics[width=\textwidth]{../assets/img/sigma_trank.png}
|
|
|
|
|
|
|
|
\caption{Trace Rank Histogram: Sigma values}
|
|
|
|
|
|
|
|
\label{fig:sigma_trank}
|
|
|
|
|
|
|
|
\end{figure}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%Take a look at batman and points for mu
|
|
|
|
The key results so far are related to the distribution of differences in $p$.
|
|
|
|
In the case of the Mu values, a parallel coordinates plot
|
|
|
|
|
|
|
|
doesn't seem to indicate any parameters as likely candidates
|
|
|
|
In figure \ref{fig:pred_dist_dif_delay} we see that there while most trials do not see any increased risk
|
|
|
|
for causing the issues with divergent transitions.
|
|
|
|
from a delay in closing enrollment, there is a small group that does experience this.
|
|
|
|
\begin{figure}[H]
|
|
|
|
|
|
|
|
\includegraphics[width=\textwidth]{../assets/img/mu_batman.png}
|
|
|
|
|
|
|
|
\caption{Parallel Coordinate Plot: Mu values}
|
|
|
|
|
|
|
|
\label{fig:mu_batman}
|
|
|
|
|
|
|
|
\end{figure}
|
|
|
|
|
|
|
|
Note that at each parameter, there is some level of dispersion between
|
|
|
|
|
|
|
|
values that diverged.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
On the other hand, in the parallel coordinates plot for sigma values,
|
|
|
|
|
|
|
|
it appears that most divergent transitions occur with values of
|
|
|
|
|
|
|
|
sigma[1], sigma[3], sigma[6], and sigma[7] close to zero.
|
|
|
|
|
|
|
|
\begin{figure}[H]
|
|
|
|
\begin{figure}[H]
|
|
|
|
\includegraphics[width=\textwidth]{../assets/img/sigma_batman.png}
|
|
|
|
\includegraphics[width=\textwidth]{../assets/img/current/pred_dist_diff-delay}
|
|
|
|
\caption{Parallel Coordinate Plot: Sigma values}
|
|
|
|
\caption{}
|
|
|
|
\label{fig:sigma_batman}
|
|
|
|
\label{fig:pred_dist_diff_delay}
|
|
|
|
\end{figure}
|
|
|
|
\end{figure}
|
|
|
|
Overall this suggests that there is an issue with the specification
|
|
|
|
|
|
|
|
of the covariance structures of the hyperparameters.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Additional evidence that the covariance structure is incorrect comes from
|
|
|
|
|
|
|
|
plotting pairs of parameter values and examining the chains with divergent
|
|
|
|
|
|
|
|
transitions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Figure \ref{fig:pred_dist_dif_delay2} shows how this varies across disease categories
|
|
|
|
\begin{figure}[H]
|
|
|
|
\begin{figure}[H]
|
|
|
|
\includegraphics[width=\textwidth]{../assets/img/sigma_pairs_5-9.png}
|
|
|
|
\includegraphics[width=\textwidth]{../assets/img/current/pred_dist_diff-delay-group}
|
|
|
|
\caption{Parameter Pairs plots: Sigma[5] through Sigma[9]}
|
|
|
|
\caption{}
|
|
|
|
\label{fig:sigma_pairs_5-9.png}
|
|
|
|
\label{fig:pred_dist_dif_delay2}
|
|
|
|
\end{figure}
|
|
|
|
\end{figure}
|
|
|
|
From this we can see that divergent pairs are highly correlated with the cases
|
|
|
|
|
|
|
|
where sigma[6] or sigma[7] are equal to zero.
|
|
|
|
|
|
|
|
This has an impact on the shape of both of those estimated parameters, causing
|
|
|
|
|
|
|
|
both to be bimodal.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\subsection{Interpretation}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ignoring the diagnosed issues with the model, we do see some interesting
|
|
|
|
|
|
|
|
preliminary results.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%in mu, mu[5] shifted strongly
|
|
|
|
|
|
|
|
In \cref{fig:mu_posterior} we see that mu[5], the parameter corresponding
|
|
|
|
|
|
|
|
to enrollment appears to be strongly negative.
|
|
|
|
|
|
|
|
This is consistent with the idea that enrollment close to planned enrollment
|
|
|
|
|
|
|
|
decreases the probability of terminating the trial.
|
|
|
|
|
|
|
|
In \cref{fig:sigma_posterior}, sigma[2] (corresponding to the number of brands
|
|
|
|
|
|
|
|
selling the drug of interest) has a large variance covers some relatively
|
|
|
|
|
|
|
|
high values.
|
|
|
|
|
|
|
|
This suggests that the impact of how frequently the drug is sold varies greatly
|
|
|
|
|
|
|
|
across different ICD-10 categories of disease.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
We can also examine the direct effect from adding a single generic competitior drug.
|
|
|
|
|
|
|
|
|
|
|
|
\begin{figure}[H]
|
|
|
|
\begin{figure}[H]
|
|
|
|
\includegraphics[width=\textwidth]{../assets/img/mu_posterior.png}
|
|
|
|
\includegraphics[width=\textwidth]{../assets/img/current/pred_dist_diff-generic}
|
|
|
|
\caption{Posterior Parameter Estimates: Mu}
|
|
|
|
\caption{}
|
|
|
|
\label{fig:mu_posterior}
|
|
|
|
\label{fig:pred_dist_diff_generic}
|
|
|
|
\end{figure}
|
|
|
|
\end{figure}
|
|
|
|
|
|
|
|
|
|
|
|
% Sigma[2] suggests there is a high variance in the impact that the number of drugs on the market has.
|
|
|
|
Figure \ref{fig:pred_dist_dif_generic2} shows how this varies across disease categories
|
|
|
|
\begin{figure}[H]
|
|
|
|
\begin{figure}[H]
|
|
|
|
\includegraphics[width=\textwidth]{../assets/img/sigma_posterior.png}
|
|
|
|
\includegraphics[width=\textwidth]{../assets/img/current/pred_dist_diff-generic-group}
|
|
|
|
\caption{Posterior Hyperparameter Estimates: Sigma}
|
|
|
|
\caption{}
|
|
|
|
\label{fig:sigma_posterior}
|
|
|
|
\label{fig:pred_dist_dif_generic2}
|
|
|
|
\end{figure}
|
|
|
|
\end{figure}
|
|
|
|
|
|
|
|
|
|
|
|
Due to the deficiencies in the data and model, this is the limit of the
|
|
|
|
|
|
|
|
analysis I will perform at this time.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\end{document}
|
|
|
|
\end{document}
|
|
|
|
|