\documentclass{bmcart}


%%% Load packages
\usepackage{amsthm,amsmath}
\RequirePackage{hyperref}
\usepackage[utf8]{inputenc} %unicode support
\usepackage{pdflscape} % for landscape environment
\usepackage{tikz} % for drawing graphics
\usepackage[]{graphicx} % for fig
\usepackage{caption}
\usepackage{subcaption} % for subfig
\usepackage[labelfont=bf]{caption}
\usepackage{hyperref} % for sub ref fig 
\usepackage{natbib}
\bibliographystyle{bmc-mathphys}
\usepackage{comment}
\usepackage{csquotes}
\usepackage{pifont}
\usepackage{ragged2e}
\usepackage{threeparttable}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{xcolor}
\usepackage{array}
\usepackage{framed}
\usepackage{cellspace} % Added cellspace package
\usepackage[many]{tcolorbox}
\usepackage{lipsum} % For generating dummy text
\usepackage{changepage}
\usepackage{geometry}
\usepackage{float}
\usepackage[affil-it]{authblk}



\onecolumn  
\title{Addressing Treatment Switching Bias with
G-methods: Exploring the Impact of Model
Specification}
\author[1,2]{Amani Al Tawil\thanks{Correspondence: altawil@ibe.med.uni-muenchen.de}}
\author[3]{Sean McGrath}
\author[4]{Robin Ristl\thanks{Equally contributed}}
\author[1,2]{Ulrich Mansmann\textsuperscript{†}}
\affil[1]{Institute for Medical Information Processing, Biometry, and Epidemiology (IBE), Faculty of Medicine, Ludwig-Maximilians-Universität München}
\affil[2]{Pettenkofer School of Public Health, Faculty of Medicine, Ludwig-Maximilians-Universität München}
\affil[3]{Department of Biostatistics, Harvard T.H. Chan School of Public Health}
\affil[4]{Center for Medical Data Science, Medical University of Vienna}

\renewcommand\Affilfont{\itshape\small}
\date{}  % remove date

% Set the table counter to start from 3
\setcounter{table}{7}

% Define a custom label prefix for supplemental tables
\DeclareCaptionLabelFormat{supplemental}{#1~S\arabic{table}}
\captionsetup[table]{labelformat=supplemental}


\begin{document}
\newgeometry{left=2cm,right=2cm,top=2cm,bottom=2cm} % Adjust the values as needed for the title page
\maketitle
%\restoregeometry % Restore the default margins for the rest of the document
\maketitle
\begin{adjustwidth}{-1cm}{-1cm} % Adjust the values of X as needed
\vspace{-5em} % Increase the space between title and author names
\vspace{3em}  % Increase the space between author names and "Electronic Supplementary Material"
\begin{center}
\section*{\centering \LARGE Electronic Supplementary Material 7}
\vspace{1.5em} % Increase the space between "Electronic Supplementary Material 1" and "Data Dictionary"
\large \textbf{IPCW analysis using unstabilized weights}
\end{center}
%\vspace{30pt}
\maketitle
\end{adjustwidth}

\onecolumn
\begin{table}[H]
\centering
\begin{adjustwidth}{-2.5cm}{-2.5cm} % Adjust the values of X as needed
\centering
\begin{threeparttable}
\caption{\textbf{Causal effect of \enquote{assign to brigatinib} versus \enquote{assign to crizotinib} on Overall survival (OS) investigated through various models (specification 1 to 6) for the construction of inverse probability of censoring weights for Lost to follow-up (LTFU)/administrative censoring (AC); Death censored by LTFU/AC only; 92 deaths, ALTA-1L trial}}
\label{table: IPCW LOFU Results}
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{>{\raggedright\arraybackslash}p{1.5cm}p{6cm}p{1.5cm}p{2cm}p{2cm}p{2cm}}
\hline
\textbf{Specification} & \textbf{Description} & \multicolumn{2}{c}{\textbf{Estimated unstabilized weights }} & \multicolumn{2}{c}{\textbf{Difference in OS}}\\
\cmidrule(lr){3-4}
\cmidrule(lr){5-6}
& & Mean (SD) & Min (Max) & cHR\tnote{\ding{72}} \hspace{0.1cm}(95$\%$ CI)\tnote{\ding{61}} 
& RR\tnote{\ding{74}} \hspace{0.1cm}(95$\%$ CI)\tnote{\ding{61}}\\
\hline
1  & Full model \tnote{\ding{60}}
& 1.16 (1.32) & 1 (94.02) & 0.84 (0.52,1.28) &  0.87 (0.59,1.22) \\
\hline
2  & Restricted model \tnote{\ding{60}}
& 1.17 (1.24) & 1 (70.35) & 0.82 (0.51,1.22) &  0.85 (0.58,1.17) \\
\hline
3 & Same as \textbf{specification 1}, but replace the linear terms of time, target lesion size and age with 5 knots splines &  1.16 (1.10) & 1 (56.93)  & 0.83 (0.51,1.29) &  0.87 (0.59,1.21)\\
\hline
4 & Same as \textbf{specification 1}, but replace the step function (3 categories) for time-varying ECOG with 2 categories & 1.17 (1.58) &  1 (123.81) & 0.82 (0.50,1.26) &  0.86 (0.58,1.20) \\
\hline
5 & Same as \textbf{specification 2}, but replace the linear terms of time, target lesion size and age with 5 knots splines &  1.17 (1.40)  & 1 (85.29) & 0.80 (0.49,1.19) &  0.84 (0.57,1.15) \\
\hline
6 & Same as \textbf{specification 2}, but remove baseline covariates: sex, baseline ECOG and initial diagnosis stage in calculating the denominator of the experimental arm &  1.18 (2.34) & 1 (195.94) & 0.84 (0.51,1.28) &  0.87 (0.59,1.21) \\
\hline
\end{tabular}
\begin{tablenotes}
\item[\ding{60}] Details about the full and restricted model are available in Tables S1 and S2 in the \href{https://github.com/amanialtawil/treatment-switching.git}{Electronic Supplementary Material (ESM) 3}) 
\item[\ding{72}] \justifying cHR: Cumulative hazard ratio by month 48 (equation (5) in \href{https://github.com/amanialtawil/treatment-switching.git}{ESM 2}).
\item[\ding{74}] \justifying RR: Risk ratio formulated as the ratio of the cumulative risks by month 48.
\item[\ding{61}] Reported  $95\%$ Confidence Interval (CI) estimated using a non-parametric bootstrap procedure based on 1000 samples
\end{tablenotes}
\end{threeparttable}
\end{adjustwidth}
\end{table}
%\end{landscape}


\begin{minipage}[h]{\linewidth} % Align the title at the top of the page
\centering
\large \textbf{IPCW analysis using unstabilized weights}
\vspace{30pt}
% Spec 1
%\begin{landscape}
\begin{table}[H]
\centering
\begin{adjustwidth}{-2.5cm}{-2.5cm} % Adjust the values of X as needed
\centering
\begin{threeparttable}
\caption{\textbf{Causal effect of \enquote{always treat with brigatinib} versus \enquote{always treat with crizotinib} on Overall Survival (OS) investigated through various models (specification 1 to 8) for the construction of the inverse probability of censoring weights for switching; Lost to follow-up (LTFU) assumed at random; Death censored by a minimum of treatment switching and LTFU/administrative censoring; 72 deaths, ALTA-1L trial}}
\label{table: IPCW XO Results}
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{>{\raggedright\arraybackslash}p{1.5cm}p{6cm}p{1.5cm}p{2cm}p{2cm}p{2cm}}
\hline
\textbf{Specification} & \textbf{Description} & \multicolumn{2}{c}{\textbf{Estimated unstabilized weights }} & \multicolumn{2}{c}{\textbf{Difference in OS}}\\
\cmidrule(lr){3-4}
\cmidrule(lr){5-6}
& & Mean (SD) & Min (Max) & cHR\tnote{\ding{72}} \hspace{0.1cm}(95$\%$ CI)\tnote{\ding{61}} 
& RR\tnote{\ding{74}} \hspace{0.1cm}(95$\%$ CI)\tnote{\ding{61}}\\
\hline
1  & Full Model \tnote{\ding{60}}
& 1.13 (0.44) & 1 (7.31) & 0.68 (0.38,1.18) & 0.74 (0.48,1.14) \\
\hline
2  & Restricted Model \tnote{\ding{60}} 
& 1.14 (0.46)  & 1 (8.13)  & 0.68 (0.41,1.21) & 0.74 (0.51,1.16) \\
\hline
3 & Same as \textbf{specification 1}, but with 5 knots splines for time, time to disease progression, target lesion size and baseline age &  1.13 (0.47) & 1 (9.36)  & 0.65 (0.36,1.22) & 0.72 (0.47,1.17) \\
\hline
4 & Same as \textbf{specification 1}, but replace the step function (3 categories) for time-varying ECOG with 2 categories & 1.13 (0.43)  &  1 (7.55) & 0.68 (0.38,1.19) & 0.74 (0.48,1.14) \\
\hline
5 & Same as \textbf{specification 2}, but with 5 knots splines for time, time to disease progression, target lesion size and baseline age & 1.14 (0.52)  & 1 (12.22)  & 0.62 (0.31,1.19) & 0.70 (0.42,1.15) \\
\hline
6 & Same as \textbf{specification 2}, but without step function (4 categories) for initial diagnosis stage &  1.14 (0.46) &  1 (4.82)  & 0.72 (0.44,1.22) & 0.78 (0.53,1.17)\\
\hline
7 & Same as \textbf{specification 1}, but without linear and quadratic terms for time to disease progression   & 1.37 (2.31)  & 1 (38.72)  & 0.40 (0.11,1.22) & 0.52 (0.32,1.17) \\
\hline
8 & Same as \textbf{specification 2}, but without linear and quadratic terms for time to disease progression  & 1.36 (2.03)   & 1 (36.72)  & 0.37 (0.12,0.99) & 0.51 (0.32,0.99)\\
\hline
\end{tabular}
\begin{tablenotes}
\item[\ding{60}] Details about the full and restricted model are available in Tables S3 and S4 in the \href{https://github.com/amanialtawil/treatment-switching.git}{Electronic Supplementary Material (ESM) 3}
\item[\ding{72}] \justifying cHR: Cumulative hazard ratio by month 48 (equation (5) in \href{https://github.com/amanialtawil/treatment-switching.git}{ESM 2}).
\item[\ding{74}] \justifying RR: Risk ratio formulated as the ratio of the cumulative risks by month 48.
\item[\ding{61}] Reported  $95\%$ Confidence Interval (CI) estimated using a non-parametric bootstrap procedure based on 1000 samples
\end{tablenotes}
\end{threeparttable}
\end{adjustwidth}
\end{table}
\end{minipage}
%\end{landscape}





\end{document}