ADNI enrollment summaries using the ADNIMERGE R package

Description

This package vignette demonstrates how to use the ADNIMERGE package to generate simple enrollment and longitudinal summaries and plots with R and knitr.

Report generated from Enrollment.Rmd

Demographic Summaries by Diagnosis

Baseline

Descriptive Statistics by Baseline Dx

N CN (N=513) SMC (N=289) EMCI (N=372) LMCI (N=636) AD (N=378) Combined (N=2188) Test Statistic
Age [Years] 2215
    70.0/73.2/77.7
    66.9/70.3/75.7
    65.7/71.1/76.5
    69.2/74.3/79.3
    70.7/75.3/80.5
    68.3/73.2/78.3
F=21.1 d.f.=4,2181 P<0.001
Age : (39,49] 2214
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
Chi-square=168 d.f.=16 P<0.001
(49,59]
      1%  (   4)
      2%  (   6)
      5%  (  17)
      3%  (  21)
      4%  (  15)
      3%  (  63)
(59,69]
     19%  (  96)
     40%  ( 116)
     36%  ( 135)
     21%  ( 133)
     16%  (  62)
     25%  ( 542)
(69,79]
     62%  ( 316)
     47%  ( 134)
     42%  ( 157)
     49%  ( 310)
     47%  ( 177)
     50%  (1094)
(79,89]
     19%  (  95)
     10%  (  28)
     17%  (  63)
     27%  ( 169)
     31%  ( 117)
     22%  ( 472)
(89,99]
      0%  (   1)
      1%  (   4)
      0%  (   0)
      0%  (   2)
      2%  (   7)
      1%  (  14)
(99,109]
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
Sex : Male 2217
     48%  ( 244)
     39%  ( 114)
     56%  ( 208)
     61%  ( 389)
     56%  ( 211)
     53%  (1166)
Chi-square=46.9 d.f.=4 P<0.001
Education 2217
       14/16/18
       16/17/18
       14/16/18
       14/16/18
       13/16/18
       14/16/18
F=14.9 d.f.=4,2183 P<0.001
Marital : Divorced 2217
     10%  (  53)
     12%  (  35)
     11%  (  42)
      8%  (  51)
      4%  (  14)
      9%  ( 195)
Chi-square=57.9 d.f.=16 P<0.001
Married
     69%  ( 356)
     72%  ( 209)
     77%  ( 285)
     78%  ( 495)
     84%  ( 316)
     76%  (1661)
Never married
      5%  (  27)
      5%  (  14)
      4%  (  16)
      2%  (  12)
      3%  (  10)
      4%  (  79)
Unknown
      0%  (   1)
      0%  (   1)
      1%  (   4)
      0%  (   2)
      0%  (   0)
      0%  (   8)
Widowed
     15%  (  76)
     10%  (  30)
      7%  (  25)
     12%  (  76)
     10%  (  38)
     11%  ( 245)
Ethnicity : Unknown 2217
      0%  (   2)
      1%  (   2)
      1%  (   2)
      0%  (   3)
      1%  (   3)
      1%  (  12)
Chi-square=4.26 d.f.=8 P=0.833
Not Hisp/Latino
     96%  ( 494)
     96%  ( 276)
     95%  ( 352)
     97%  ( 616)
     96%  ( 362)
     96%  (2100)
Hisp/Latino
      3%  (  17)
      4%  (  11)
      5%  (  18)
      3%  (  17)
      3%  (  13)
      3%  (  76)
Race : Am Indian/Alaskan 2217
      0%  (   2)
      0%  (   0)
      0%  (   1)
      0%  (   1)
      0%  (   0)
      0%  (   4)
Chi-square=48.8 d.f.=24 P=0.002
Asian
      2%  (   9)
      3%  (   9)
      1%  (   4)
      2%  (  12)
      2%  (   9)
      2%  (  43)
Hawaiian/Other PI
      0%  (   0)
      0%  (   0)
      0%  (   1)
      0%  (   1)
      0%  (   0)
      0%  (   2)
Black
      6%  (  32)
      5%  (  14)
      2%  (   9)
      4%  (  28)
      4%  (  14)
      4%  (  97)
White
     91%  ( 468)
     88%  ( 255)
     93%  ( 346)
     93%  ( 591)
     93%  ( 351)
     92%  (2011)
More than one
      0%  (   2)
      3%  (  10)
      2%  (   8)
      0%  (   3)
      1%  (   4)
      1%  (  27)
Unknown
      0%  (   0)
      0%  (   1)
      1%  (   3)
      0%  (   0)
      0%  (   0)
      0%  (   4)
CDR-SB 2217
     0.0/0.0/0.0
     0.0/0.0/0.0
     0.5/1.0/1.5
     1.0/1.5/2.0
     3.5/4.5/5.0
     0.0/1.0/2.0
F=2964 d.f.=4,2183 P<0.001
ADAS 13 2188
   6.67/ 9.33/12.67
   8.00/11.00/14.33
   9.00/13.00/17.00
  14.67/18.67/23.33
  24.67/29.67/35.00
  10.00/15.00/22.00
F=649 d.f.=4,2162 P<0.001
MMSE 2217
       29/29/30
       29/29/30
       28/29/29
       26/27/29
       21/23/25
       26/28/29
F=587 d.f.=4,2183 P<0.001

Demographic Summaries by Diagnosis

Baseline

Descriptive Statistics by Baseline Dx

N CN (N=506) SMC (N=286) EMCI (N=361) LMCI (N=624) AD (N=368) Combined (N=2145) Test Statistic
Age [Years] 2172
    70.0/73.2/77.7
    66.9/70.2/75.8
    65.9/71.2/76.5
    69.2/74.3/79.2
    70.7/75.3/80.3
    68.3/73.2/78.3
F=20.1 d.f.=4,2138 P<0.001
Age : (39,49] 2171
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
Chi-square=163 d.f.=16 P<0.001
(49,59]
      1%  (   4)
      2%  (   6)
      4%  (  16)
      3%  (  20)
      4%  (  15)
      3%  (  61)
(59,69]
     19%  (  94)
     40%  ( 115)
     36%  ( 130)
     21%  ( 131)
     16%  (  60)
     25%  ( 530)
(69,79]
     62%  ( 312)
     46%  ( 132)
     43%  ( 154)
     49%  ( 305)
     47%  ( 173)
     50%  (1076)
(79,89]
     19%  (  94)
     10%  (  28)
     17%  (  61)
     26%  ( 165)
     31%  ( 113)
     22%  ( 461)
(89,99]
      0%  (   1)
      1%  (   4)
      0%  (   0)
      0%  (   2)
      2%  (   7)
      1%  (  14)
(99,109]
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
Sex : Male 2174
     48%  ( 242)
     39%  ( 112)
     57%  ( 204)
     61%  ( 383)
     56%  ( 206)
     53%  (1147)
Chi-square=48 d.f.=4 P<0.001
Education 2174
    14.0/16.0/18.0
    15.2/17.0/18.0
    14.0/16.0/18.0
    14.0/16.0/18.0
    13.0/16.0/18.0
    14.0/16.0/18.0
F=14.5 d.f.=4,2140 P<0.001
Marital : Divorced 2174
     10%  (  52)
     12%  (  35)
     11%  (  40)
      8%  (  51)
      4%  (  14)
      9%  ( 192)
Chi-square=56.7 d.f.=16 P<0.001
Married
     70%  ( 353)
     73%  ( 208)
     77%  ( 279)
     78%  ( 485)
     83%  ( 307)
     76%  (1632)
Never married
      5%  (  26)
      5%  (  14)
      4%  (  15)
      2%  (  11)
      3%  (  10)
      4%  (  76)
Unknown
      0%  (   1)
      0%  (   1)
      1%  (   4)
      0%  (   2)
      0%  (   0)
      0%  (   8)
Widowed
     15%  (  74)
     10%  (  28)
      6%  (  23)
     12%  (  75)
     10%  (  37)
     11%  ( 237)
Ethnicity : Unknown 2174
      0%  (   2)
      1%  (   2)
      1%  (   2)
      0%  (   3)
      1%  (   3)
      1%  (  12)
Chi-square=4.26 d.f.=8 P=0.833
Not Hisp/Latino
     96%  ( 487)
     95%  ( 273)
     95%  ( 342)
     97%  ( 605)
     96%  ( 353)
     96%  (2060)
Hisp/Latino
      3%  (  17)
      4%  (  11)
      5%  (  17)
      3%  (  16)
      3%  (  12)
      3%  (  73)
Race : Am Indian/Alaskan 2174
      0%  (   2)
      0%  (   0)
      0%  (   1)
      0%  (   1)
      0%  (   0)
      0%  (   4)
Chi-square=49 d.f.=24 P=0.002
Asian
      2%  (   9)
      3%  (   9)
      1%  (   4)
      2%  (  12)
      2%  (   9)
      2%  (  43)
Hawaiian/Other PI
      0%  (   0)
      0%  (   0)
      0%  (   1)
      0%  (   1)
      0%  (   0)
      0%  (   2)
Black
      6%  (  32)
      5%  (  14)
      2%  (   8)
      4%  (  27)
      4%  (  14)
      4%  (  95)
White
     91%  ( 461)
     88%  ( 252)
     93%  ( 337)
     93%  ( 580)
     93%  ( 341)
     92%  (1971)
More than one
      0%  (   2)
      3%  (  10)
      2%  (   7)
      0%  (   3)
      1%  (   4)
      1%  (  26)
Unknown
      0%  (   0)
      0%  (   1)
      1%  (   3)
      0%  (   0)
      0%  (   0)
      0%  (   4)
CDR-SB 2174
     0.0/0.0/0.0
     0.0/0.0/0.0
     0.5/1.0/1.5
     1.0/1.5/2.0
     3.5/4.5/5.0
     0.0/1.0/2.0
F=2940 d.f.=4,2140 P<0.001
ADAS 13 2149
   6.67/ 9.33/12.67
   8.33/11.00/14.33
   9.00/13.00/17.00
  14.67/18.67/23.33
  24.33/29.67/35.00
  10.00/15.00/22.00
F=631 d.f.=4,2123 P<0.001
MMSE 2174
       29/29/30
       29/29/30
       28/29/29
       26/27/29
       21/23/25
       26/28/29
F=569 d.f.=4,2140 P<0.001

Baseline box plots

ggplot(dd1, aes(DX.bl, MMSE)) + geom_boxplot(aes(fill = DX.bl), outlier.shape = NA) + 
    geom_jitter(size = 1, position = position_jitter(h = 0)) + theme(legend.position = "none")

ggplot(dd1, aes(DX.bl, CDRSB)) + geom_boxplot(aes(fill = DX.bl), outlier.shape = NA) + 
    geom_jitter(size = 1, position = position_jitter(h = 0)) + theme(legend.position = "none")

ggplot(dd1, aes(DX.bl, EcogPtMem)) + geom_boxplot(aes(fill = DX.bl), outlier.shape = NA) + 
    geom_jitter(size = 1, position = position_jitter(h = 0)) + theme(legend.position = "none") + 
    ylab("ECog Self Memory")

ggplot(dd1, aes(DX.bl, EcogSPMem)) + geom_boxplot(aes(fill = DX.bl), outlier.shape = NA) + 
    geom_jitter(size = 1, position = position_jitter(h = 0)) + theme(legend.position = "none") + 
    ylab("ECog Partner Memory")

ggplot(dd1, aes(DX.bl, EcogPtTotal)) + geom_boxplot(aes(fill = DX.bl), outlier.shape = NA) + 
    geom_jitter(size = 1, position = position_jitter(h = 0)) + theme(legend.position = "none") + 
    ylab("ECog Self Total")

ggplot(dd1, aes(DX.bl, EcogSPTotal)) + geom_boxplot(aes(fill = DX.bl), outlier.shape = NA) + 
    geom_jitter(size = 1, position = position_jitter(h = 0)) + theme(legend.position = "none") + 
    ylab("ECog Partner Total")

Baseline summary statistics


###  ADAS 13 

###  MMSE 

###  CDR-SB 

###  Pt ECog - Mem 

###  Pt ECog - Total 

###  SP ECog - Total 

Longitudinal plots


\clearpage
\subsection{ ADAS 13 change from baseline}

%latex.default(tab[, -(1:2)], file = "", rowlabel = "Month", rowname = tab[,     1], rgroup = unique(tab[, 2]), n.rgroup = table(tab[, 2]),     digits = 3, where = "h!", rownamesTexCmd = rcmd, label = paste("long",         oc, sep = ""))%
\begin{table}[h!]
\begin{center}
\begin{tabular}{lrrrrrrrr}
\hline\hline
\multicolumn{1}{l}{Month}&\multicolumn{1}{c}{N}&\multicolumn{1}{c}{Min.}&\multicolumn{1}{c}{Q.1}&\multicolumn{1}{c}{Median}&\multicolumn{1}{c}{Mean}&\multicolumn{1}{c}{Q.3}&\multicolumn{1}{c}{Max.}&\multicolumn{1}{c}{SD}\tabularnewline
\hline
{\bfseries CN}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $270$&   $-11.00$&   $-2.000$&   $ 0.000$&   $-0.3850$&   $ 2.00$&   $11.0$&   $ 3.43$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $252$&   $-11.00$&   $-3.000$&   $-0.165$&   $-0.5320$&   $ 2.00$&   $11.0$&   $ 3.75$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $252$&   $-10.00$&   $-3.000$&   $-1.000$&   $-0.6630$&   $ 2.00$&   $10.0$&   $ 3.54$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 42$&   $ -8.00$&   $-2.000$&   $-1.000$&   $-0.2780$&   $ 2.00$&   $11.0$&   $ 3.77$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $161$&   $ -8.00$&   $-2.000$&   $ 1.670$&   $ 1.3700$&   $ 4.00$&   $15.0$&   $ 4.64$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 53$&   $ -1.67$&   $ 2.670$&   $ 4.330$&   $ 5.1600$&   $ 7.00$&   $18.0$&   $ 4.46$\tabularnewline
   ~~72&   $ 98$&   $ -2.67$&   $ 2.000$&   $ 4.500$&   $ 5.3500$&   $ 7.58$&   $23.7$&   $ 4.65$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 40$&   $  0.00$&   $ 3.330$&   $ 5.500$&   $ 7.3500$&   $ 8.17$&   $28.3$&   $ 6.62$\tabularnewline
   ~~96&   $  9$&   $ -2.67$&   $ 2.670$&   $ 3.000$&   $ 4.5200$&   $ 7.33$&   $10.7$&   $ 4.18$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $429$&   $-12.00$&   $-3.000$&   $ 0.000$&   $ 0.0583$&   $ 3.00$&   $16.0$&   $ 4.38$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $476$&   $-15.00$&   $-3.000$&   $ 0.000$&   $ 0.0805$&   $ 3.00$&   $54.0$&   $ 5.08$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $374$&   $-11.00$&   $-3.000$&   $ 0.000$&   $ 1.0600$&   $ 4.00$&   $21.0$&   $ 5.55$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $315$&   $-14.00$&   $-2.000$&   $ 1.000$&   $ 2.0400$&   $ 5.00$&   $49.0$&   $ 7.47$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $252$&   $-12.00$&   $-2.000$&   $ 1.000$&   $ 3.4800$&   $ 6.00$&   $55.0$&   $ 9.57$\tabularnewline
   ~~60&   $139$&   $ -7.00$&   $ 0.000$&   $ 3.000$&   $ 5.5000$&   $ 8.16$&   $71.0$&   $10.90$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $ 99$&   $ -5.00$&   $ 1.840$&   $ 4.330$&   $ 5.6700$&   $ 8.00$&   $37.0$&   $ 6.80$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 75$&   $ -3.33$&   $ 2.670$&   $ 5.000$&   $ 6.8000$&   $ 9.33$&   $22.0$&   $ 6.11$\tabularnewline
   ~~96&   $ 31$&   $ -1.33$&   $ 4.660$&   $ 7.670$&   $ 9.5900$&   $11.30$&   $38.7$&   $ 8.31$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  3$&   $  5.33$&   $ 6.000$&   $ 6.670$&   $ 9.4400$&   $11.50$&   $16.3$&   $ 6.00$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $127$&   $-12.00$&   $-1.500$&   $ 2.000$&   $ 2.3800$&   $ 6.50$&   $23.0$&   $ 5.62$\tabularnewline
   ~~12&   $115$&   $-13.00$&   $ 0.835$&   $ 4.000$&   $ 4.8200$&   $ 8.66$&   $27.0$&   $ 6.43$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 33$&   $ -5.00$&   $ 3.000$&   $ 7.000$&   $ 8.8800$&   $13.00$&   $36.0$&   $ 9.57$\tabularnewline
\rowcolor[gray]{.9}   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~36&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~48&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~60&   $  2$&   $  6.33$&   $ 7.410$&   $ 8.500$&   $ 8.5000$&   $ 9.59$&   $10.7$&   $ 3.07$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  1$&   $ 10.00$&   $10.000$&   $10.000$&   $10.0000$&   $10.00$&   $10.0$&   $$\tabularnewline
\hline
\end{tabular}\end{center}
\end{table}

\clearpage
\subsection{ MMSE change from baseline}

%latex.default(tab[, -(1:2)], file = "", rowlabel = "Month", rowname = tab[,     1], rgroup = unique(tab[, 2]), n.rgroup = table(tab[, 2]),     digits = 3, where = "h!", rownamesTexCmd = rcmd, label = paste("long",         oc, sep = ""))%
\begin{table}[h!]
\begin{center}
\begin{tabular}{lrrrrrrrr}
\hline\hline
\multicolumn{1}{l}{Month}&\multicolumn{1}{c}{N}&\multicolumn{1}{c}{Min.}&\multicolumn{1}{c}{Q.1}&\multicolumn{1}{c}{Median}&\multicolumn{1}{c}{Mean}&\multicolumn{1}{c}{Q.3}&\multicolumn{1}{c}{Max.}&\multicolumn{1}{c}{SD}\tabularnewline
\hline
{\bfseries CN}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $274$&   $ -4$&   $-1.00$&   $ 0.0$&   $-0.0547$&   $ 1.0$&   $ 4$&   $1.400$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $255$&   $ -8$&   $-1.00$&   $ 0.0$&   $-0.2240$&   $ 1.0$&   $ 4$&   $1.610$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $256$&   $ -4$&   $-1.00$&   $ 0.0$&   $-0.1840$&   $ 1.0$&   $ 4$&   $1.500$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 45$&   $ -5$&   $-1.00$&   $ 0.0$&   $-0.3780$&   $ 1.0$&   $ 4$&   $1.810$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $161$&   $ -7$&   $-1.00$&   $ 0.0$&   $-0.2730$&   $ 1.0$&   $ 4$&   $1.690$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 53$&   $-10$&   $-1.00$&   $ 0.0$&   $-0.1890$&   $ 0.0$&   $ 4$&   $1.970$\tabularnewline
   ~~72&   $ 98$&   $ -8$&   $-1.00$&   $ 0.0$&   $-0.3670$&   $ 1.0$&   $ 4$&   $1.990$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 39$&   $ -7$&   $-3.00$&   $ 0.0$&   $-1.2100$&   $ 0.0$&   $ 2$&   $2.020$\tabularnewline
   ~~96&   $  9$&   $ -2$&   $-1.00$&   $ 0.0$&   $-0.2220$&   $ 0.0$&   $ 1$&   $0.972$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $430$&   $-10$&   $-2.00$&   $ 0.0$&   $-0.4490$&   $ 1.0$&   $ 5$&   $1.880$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $479$&   $-11$&   $-2.00$&   $ 0.0$&   $-0.5050$&   $ 1.0$&   $ 6$&   $2.050$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $379$&   $-11$&   $-2.00$&   $ 0.0$&   $-0.9050$&   $ 1.0$&   $ 6$&   $2.440$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $316$&   $-23$&   $-2.00$&   $-1.0$&   $-1.2400$&   $ 1.0$&   $ 6$&   $3.330$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $256$&   $-20$&   $-3.00$&   $-1.0$&   $-1.6000$&   $ 1.0$&   $ 5$&   $3.820$\tabularnewline
   ~~60&   $143$&   $-30$&   $-3.00$&   $-1.0$&   $-1.9900$&   $ 0.0$&   $ 4$&   $4.640$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $103$&   $-24$&   $-2.00$&   $ 0.0$&   $-1.5000$&   $ 1.0$&   $ 5$&   $4.240$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 81$&   $-20$&   $-3.00$&   $-1.0$&   $-1.6200$&   $ 1.0$&   $ 6$&   $4.290$\tabularnewline
   ~~96&   $ 31$&   $-12$&   $-2.00$&   $-1.0$&   $-1.5200$&   $ 0.5$&   $ 5$&   $3.600$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  4$&   $ -4$&   $-1.75$&   $-0.5$&   $-0.7500$&   $ 0.5$&   $ 2$&   $2.500$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $131$&   $-16$&   $-3.00$&   $-1.0$&   $-1.1800$&   $ 1.0$&   $ 8$&   $3.070$\tabularnewline
   ~~12&   $119$&   $-19$&   $-4.00$&   $-2.0$&   $-2.3100$&   $ 0.0$&   $ 5$&   $4.040$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 34$&   $-12$&   $-6.00$&   $-3.0$&   $-3.8200$&   $-2.0$&   $ 3$&   $3.450$\tabularnewline
\rowcolor[gray]{.9}   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~36&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~48&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~60&   $  2$&   $ -4$&   $-3.00$&   $-2.0$&   $-2.0000$&   $-1.0$&   $ 0$&   $2.830$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  2$&   $ -5$&   $-4.50$&   $-4.0$&   $-4.0000$&   $-3.5$&   $-3$&   $1.410$\tabularnewline
\hline
\end{tabular}\end{center}
\end{table}

\clearpage
\subsection{ CDR-SB change from baseline}

%latex.default(tab[, -(1:2)], file = "", rowlabel = "Month", rowname = tab[,     1], rgroup = unique(tab[, 2]), n.rgroup = table(tab[, 2]),     digits = 3, where = "h!", rownamesTexCmd = rcmd, label = paste("long",         oc, sep = ""))%
\begin{table}[h!]
\begin{center}
\begin{tabular}{lrrrrrrrr}
\hline\hline
\multicolumn{1}{l}{Month}&\multicolumn{1}{c}{N}&\multicolumn{1}{c}{Min.}&\multicolumn{1}{c}{Q.1}&\multicolumn{1}{c}{Median}&\multicolumn{1}{c}{Mean}&\multicolumn{1}{c}{Q.3}&\multicolumn{1}{c}{Max.}&\multicolumn{1}{c}{SD}\tabularnewline
\hline
{\bfseries CN}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $273$&   $-1.0$&   $ 0.000$&   $ 0.00$&   $ 0.0879$&   $ 0.000$&   $ 2.5$&   $0.348$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $250$&   $-1.0$&   $ 0.000$&   $ 0.00$&   $ 0.1340$&   $ 0.000$&   $ 4.0$&   $0.506$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $255$&   $-1.0$&   $ 0.000$&   $ 0.00$&   $ 0.1760$&   $ 0.000$&   $ 5.0$&   $0.629$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 42$&   $-0.5$&   $ 0.000$&   $ 0.00$&   $ 0.4760$&   $ 0.500$&   $ 5.0$&   $1.130$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $156$&   $-0.5$&   $ 0.000$&   $ 0.00$&   $ 0.2020$&   $ 0.000$&   $ 5.0$&   $0.686$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 56$&   $-0.5$&   $ 0.000$&   $ 0.00$&   $ 0.5540$&   $ 0.500$&   $11.0$&   $1.710$\tabularnewline
   ~~72&   $103$&   $-0.5$&   $ 0.000$&   $ 0.00$&   $ 0.4030$&   $ 0.000$&   $10.0$&   $1.230$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 45$&   $-0.5$&   $ 0.000$&   $ 0.00$&   $ 0.6560$&   $ 0.500$&   $ 8.5$&   $1.510$\tabularnewline
   ~~96&   $ 10$&   $ 0.0$&   $ 0.000$&   $ 0.00$&   $ 0.2500$&   $ 0.375$&   $ 1.5$&   $0.486$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $426$&   $-3.5$&   $-0.500$&   $ 0.00$&   $ 0.1310$&   $ 0.500$&   $ 3.0$&   $0.807$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $470$&   $-3.0$&   $-0.500$&   $ 0.00$&   $ 0.2100$&   $ 0.500$&   $ 5.5$&   $1.030$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $384$&   $-3.0$&   $-0.500$&   $ 0.00$&   $ 0.5650$&   $ 1.000$&   $11.5$&   $1.630$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $325$&   $-3.5$&   $-0.500$&   $ 0.00$&   $ 0.9080$&   $ 1.500$&   $12.5$&   $2.380$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $257$&   $-3.5$&   $-0.500$&   $ 0.00$&   $ 1.1200$&   $ 2.000$&   $16.0$&   $2.910$\tabularnewline
   ~~60&   $141$&   $-3.0$&   $-0.500$&   $ 0.00$&   $ 0.9260$&   $ 1.500$&   $14.5$&   $2.650$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $105$&   $-3.0$&   $-0.500$&   $ 0.00$&   $ 1.1700$&   $ 1.500$&   $15.5$&   $3.330$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 84$&   $-3.5$&   $-0.500$&   $ 0.00$&   $ 1.5900$&   $ 2.000$&   $15.0$&   $3.750$\tabularnewline
   ~~96&   $ 36$&   $-2.5$&   $-0.625$&   $ 0.00$&   $ 1.3300$&   $ 1.120$&   $12.0$&   $3.690$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  4$&   $-2.5$&   $-1.750$&   $-0.25$&   $-0.5000$&   $ 1.000$&   $ 1.0$&   $1.780$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $131$&   $-2.5$&   $ 0.000$&   $ 0.50$&   $ 0.8130$&   $ 1.500$&   $ 9.0$&   $1.540$\tabularnewline
   ~~12&   $123$&   $-2.0$&   $ 0.250$&   $ 1.00$&   $ 1.8700$&   $ 2.500$&   $11.5$&   $2.510$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 34$&   $-1.0$&   $ 0.500$&   $ 2.25$&   $ 2.6300$&   $ 4.000$&   $ 8.5$&   $2.460$\tabularnewline
\rowcolor[gray]{.9}   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~36&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~48&   $  1$&   $ 3.0$&   $ 3.000$&   $ 3.00$&   $ 3.0000$&   $ 3.000$&   $ 3.0$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~60&   $  4$&   $ 2.0$&   $ 4.250$&   $ 8.00$&   $ 7.3800$&   $11.100$&   $11.5$&   $4.640$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  3$&   $ 7.0$&   $ 7.750$&   $ 8.50$&   $10.0000$&   $11.500$&   $14.5$&   $3.970$\tabularnewline
\hline
\end{tabular}\end{center}
\end{table}

\clearpage
\subsection{ Pt ECog - Mem change from baseline}

%latex.default(tab[, -(1:2)], file = "", rowlabel = "Month", rowname = tab[,     1], rgroup = unique(tab[, 2]), n.rgroup = table(tab[, 2]),     digits = 3, where = "h!", rownamesTexCmd = rcmd, label = paste("long",         oc, sep = ""))%
\begin{table}[h!]
\begin{center}
\begin{tabular}{lrrrrrrrr}
\hline\hline
\multicolumn{1}{l}{Month}&\multicolumn{1}{c}{N}&\multicolumn{1}{c}{Min.}&\multicolumn{1}{c}{Q.1}&\multicolumn{1}{c}{Median}&\multicolumn{1}{c}{Mean}&\multicolumn{1}{c}{Q.3}&\multicolumn{1}{c}{Max.}&\multicolumn{1}{c}{SD}\tabularnewline
\hline
{\bfseries CN}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $273$&   $-1.500$&   $-0.2500$&   $ 0.000$&   $ 0.0303$&   $ 0.250$&   $ 1.6200$&   $0.431$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $255$&   $-1.380$&   $-0.2500$&   $ 0.000$&   $ 0.0185$&   $ 0.250$&   $ 1.6200$&   $0.432$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $257$&   $-1.380$&   $-0.2500$&   $ 0.000$&   $ 0.0504$&   $ 0.375$&   $ 1.7500$&   $0.451$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 44$&   $-0.589$&   $-0.2500$&   $ 0.000$&   $-0.0361$&   $ 0.125$&   $ 0.7500$&   $0.313$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $163$&   $-1.380$&   $-0.2500$&   $ 0.000$&   $ 0.0563$&   $ 0.375$&   $ 2.1200$&   $0.495$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 57$&   $-1.430$&   $ 0.0000$&   $ 0.125$&   $ 0.1470$&   $ 0.375$&   $ 1.3800$&   $0.495$\tabularnewline
   ~~72&   $100$&   $-1.000$&   $-0.1250$&   $ 0.125$&   $ 0.1880$&   $ 0.500$&   $ 1.6200$&   $0.536$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 46$&   $-0.839$&   $ 0.0000$&   $ 0.250$&   $ 0.2590$&   $ 0.625$&   $ 1.8200$&   $0.574$\tabularnewline
   ~~96&   $ 10$&   $-0.500$&   $-0.0938$&   $ 0.000$&   $ 0.1250$&   $ 0.406$&   $ 0.8750$&   $0.395$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $428$&   $-2.120$&   $-0.3750$&   $-0.125$&   $-0.1040$&   $ 0.250$&   $ 1.6200$&   $0.539$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $476$&   $-2.250$&   $-0.3840$&   $ 0.000$&   $-0.0679$&   $ 0.250$&   $ 1.6200$&   $0.599$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $381$&   $-2.880$&   $-0.3750$&   $ 0.000$&   $-0.0295$&   $ 0.250$&   $ 2.5000$&   $0.645$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $318$&   $-2.380$&   $-0.3750$&   $-0.125$&   $-0.0443$&   $ 0.375$&   $ 2.5000$&   $0.637$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $250$&   $-2.500$&   $-0.5000$&   $-0.125$&   $-0.0975$&   $ 0.312$&   $ 2.3600$&   $0.725$\tabularnewline
   ~~60&   $141$&   $-1.500$&   $-0.3750$&   $ 0.000$&   $ 0.0201$&   $ 0.500$&   $ 1.7500$&   $0.596$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $102$&   $-2.120$&   $-0.3750$&   $ 0.000$&   $ 0.0115$&   $ 0.469$&   $ 1.7500$&   $0.738$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 82$&   $-2.380$&   $-0.3750$&   $-0.125$&   $-0.0661$&   $ 0.250$&   $ 2.0000$&   $0.671$\tabularnewline
   ~~96&   $ 33$&   $-2.500$&   $-0.5000$&   $-0.250$&   $-0.1670$&   $ 0.250$&   $ 2.2100$&   $0.838$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  3$&   $-0.375$&   $-0.2500$&   $-0.125$&   $-0.0417$&   $ 0.125$&   $ 0.3750$&   $0.382$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $124$&   $-1.880$&   $-0.4060$&   $ 0.000$&   $-0.0592$&   $ 0.375$&   $ 1.7500$&   $0.725$\tabularnewline
   ~~12&   $105$&   $-2.000$&   $-0.3750$&   $ 0.000$&   $-0.1160$&   $ 0.375$&   $ 2.0000$&   $0.730$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 26$&   $-1.750$&   $-0.5940$&   $-0.268$&   $-0.2620$&   $ 0.103$&   $ 1.0000$&   $0.618$\tabularnewline
\rowcolor[gray]{.9}   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~36&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~48&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~60&   $  2$&   $-0.875$&   $-0.6650$&   $-0.455$&   $-0.4550$&   $-0.246$&   $-0.0357$&   $0.593$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  1$&   $-0.875$&   $-0.8750$&   $-0.875$&   $-0.8750$&   $-0.875$&   $-0.8750$&   $$\tabularnewline
\hline
\end{tabular}\end{center}
\end{table}

\clearpage
\subsection{ SP ECog - Mem change from baseline}

%latex.default(tab[, -(1:2)], file = "", rowlabel = "Month", rowname = tab[,     1], rgroup = unique(tab[, 2]), n.rgroup = table(tab[, 2]),     digits = 3, where = "h!", rownamesTexCmd = rcmd, label = paste("long",         oc, sep = ""))%
\begin{table}[h!]
\begin{center}
\begin{tabular}{lrrrrrrrr}
\hline\hline
\multicolumn{1}{l}{Month}&\multicolumn{1}{c}{N}&\multicolumn{1}{c}{Min.}&\multicolumn{1}{c}{Q.1}&\multicolumn{1}{c}{Median}&\multicolumn{1}{c}{Mean}&\multicolumn{1}{c}{Q.3}&\multicolumn{1}{c}{Max.}&\multicolumn{1}{c}{SD}\tabularnewline
\hline
{\bfseries CN}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $263$&   $-1.380$&   $-0.1250$&   $0.000$&   $ 0.01720$&   $0.125$&   $1.620$&   $0.361$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $249$&   $-1.500$&   $-0.1250$&   $0.000$&   $ 0.04240$&   $0.250$&   $2.120$&   $0.415$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $246$&   $-1.500$&   $-0.1250$&   $0.000$&   $ 0.04550$&   $0.250$&   $2.120$&   $0.449$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 41$&   $-1.380$&   $-0.1250$&   $0.000$&   $ 0.12100$&   $0.300$&   $2.120$&   $0.542$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $155$&   $-1.250$&   $-0.1550$&   $0.000$&   $ 0.11400$&   $0.250$&   $2.120$&   $0.490$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 54$&   $-0.750$&   $-0.1250$&   $0.000$&   $ 0.14100$&   $0.250$&   $2.460$&   $0.568$\tabularnewline
   ~~72&   $101$&   $-1.500$&   $-0.0571$&   $0.000$&   $ 0.24300$&   $0.500$&   $2.250$&   $0.620$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 45$&   $-2.380$&   $ 0.0000$&   $0.125$&   $ 0.37000$&   $0.625$&   $2.750$&   $0.874$\tabularnewline
   ~~96&   $ 10$&   $-0.500$&   $-0.1250$&   $0.000$&   $ 0.12900$&   $0.250$&   $1.160$&   $0.480$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $424$&   $-1.880$&   $-0.2500$&   $0.000$&   $ 0.00345$&   $0.375$&   $2.120$&   $0.561$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $469$&   $-2.750$&   $-0.2500$&   $0.000$&   $ 0.01480$&   $0.250$&   $2.250$&   $0.585$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $383$&   $-1.880$&   $-0.2500$&   $0.000$&   $ 0.10500$&   $0.500$&   $2.120$&   $0.650$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $317$&   $-2.250$&   $-0.2500$&   $0.125$&   $ 0.15000$&   $0.500$&   $2.140$&   $0.706$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $245$&   $-1.750$&   $-0.2500$&   $0.125$&   $ 0.22500$&   $0.500$&   $2.880$&   $0.710$\tabularnewline
   ~~60&   $137$&   $-1.620$&   $-0.1790$&   $0.125$&   $ 0.27000$&   $0.625$&   $2.500$&   $0.783$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $106$&   $-1.620$&   $-0.2500$&   $0.125$&   $ 0.19300$&   $0.554$&   $2.290$&   $0.675$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 86$&   $-1.250$&   $-0.2630$&   $0.125$&   $ 0.28000$&   $0.844$&   $2.500$&   $0.844$\tabularnewline
   ~~96&   $ 33$&   $-1.120$&   $-0.1250$&   $0.125$&   $ 0.20300$&   $0.500$&   $2.120$&   $0.644$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  3$&   $-0.375$&   $-0.1250$&   $0.125$&   $-0.04170$&   $0.125$&   $0.125$&   $0.289$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $130$&   $-2.750$&   $-0.2500$&   $0.000$&   $ 0.04210$&   $0.479$&   $1.620$&   $0.616$\tabularnewline
   ~~12&   $121$&   $-1.620$&   $ 0.0000$&   $0.125$&   $ 0.21700$&   $0.500$&   $2.120$&   $0.516$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 34$&   $-1.540$&   $-0.0938$&   $0.000$&   $ 0.13600$&   $0.375$&   $1.500$&   $0.583$\tabularnewline
\rowcolor[gray]{.9}   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~36&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~48&   $  1$&   $ 0.000$&   $ 0.0000$&   $0.000$&   $ 0.00000$&   $0.000$&   $0.000$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~60&   $  4$&   $ 0.000$&   $ 0.0938$&   $0.625$&   $ 0.84400$&   $1.380$&   $2.120$&   $0.992$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  2$&   $ 0.000$&   $ 0.4550$&   $0.911$&   $ 0.91100$&   $1.370$&   $1.820$&   $1.290$\tabularnewline
\hline
\end{tabular}\end{center}
\end{table}

\clearpage
\subsection{ Pt ECog - Total change from baseline}

%latex.default(tab[, -(1:2)], file = "", rowlabel = "Month", rowname = tab[,     1], rgroup = unique(tab[, 2]), n.rgroup = table(tab[, 2]),     digits = 3, where = "h!", rownamesTexCmd = rcmd, label = paste("long",         oc, sep = ""))%
\begin{table}[h!]
\begin{center}
\begin{tabular}{lrrrrrrrr}
\hline\hline
\multicolumn{1}{l}{Month}&\multicolumn{1}{c}{N}&\multicolumn{1}{c}{Min.}&\multicolumn{1}{c}{Q.1}&\multicolumn{1}{c}{Median}&\multicolumn{1}{c}{Mean}&\multicolumn{1}{c}{Q.3}&\multicolumn{1}{c}{Max.}&\multicolumn{1}{c}{SD}\tabularnewline
\hline
{\bfseries CN}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $273$&   $-1.140$&   $-0.10300$&   $ 0.00000$&   $ 0.01780$&   $ 0.12800$&   $ 0.8210$&   $0.253$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $255$&   $-0.751$&   $-0.10300$&   $ 0.00000$&   $ 0.02350$&   $ 0.12800$&   $ 1.4600$&   $0.249$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $257$&   $-0.985$&   $-0.10300$&   $ 0.00000$&   $ 0.03880$&   $ 0.17900$&   $ 1.1800$&   $0.300$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 44$&   $-0.526$&   $-0.10300$&   $-0.02560$&   $ 0.00677$&   $ 0.10300$&   $ 0.7440$&   $0.225$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $164$&   $-0.985$&   $-0.10700$&   $ 0.04180$&   $ 0.04310$&   $ 0.16700$&   $ 1.7200$&   $0.304$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 57$&   $-0.725$&   $-0.04660$&   $ 0.13300$&   $ 0.11100$&   $ 0.22100$&   $ 0.7270$&   $0.314$\tabularnewline
   ~~72&   $100$&   $-1.010$&   $ 0.00152$&   $ 0.10900$&   $ 0.15000$&   $ 0.27200$&   $ 1.3000$&   $0.315$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 46$&   $-0.536$&   $-0.02450$&   $ 0.08230$&   $ 0.16000$&   $ 0.29200$&   $ 1.1600$&   $0.339$\tabularnewline
   ~~96&   $ 10$&   $-0.153$&   $-0.01250$&   $ 0.04180$&   $ 0.06660$&   $ 0.11600$&   $ 0.3490$&   $0.161$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $430$&   $-2.080$&   $-0.21900$&   $-0.02630$&   $-0.03500$&   $ 0.15000$&   $ 1.5900$&   $0.376$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $478$&   $-1.690$&   $-0.23100$&   $ 0.00000$&   $-0.01700$&   $ 0.18200$&   $ 1.6700$&   $0.397$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $382$&   $-1.690$&   $-0.20500$&   $ 0.00000$&   $ 0.02580$&   $ 0.23100$&   $ 1.7400$&   $0.437$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $314$&   $-1.730$&   $-0.20500$&   $ 0.02220$&   $ 0.04000$&   $ 0.29200$&   $ 1.9900$&   $0.453$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $249$&   $-2.310$&   $-0.24700$&   $ 0.02560$&   $ 0.03160$&   $ 0.30800$&   $ 2.7100$&   $0.529$\tabularnewline
   ~~60&   $139$&   $-1.210$&   $-0.14100$&   $ 0.05130$&   $ 0.07250$&   $ 0.32600$&   $ 1.1300$&   $0.438$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $102$&   $-1.130$&   $-0.16700$&   $ 0.04660$&   $ 0.09410$&   $ 0.38600$&   $ 1.4800$&   $0.469$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 82$&   $-1.070$&   $-0.20000$&   $ 0.00742$&   $ 0.03470$&   $ 0.21600$&   $ 1.6000$&   $0.486$\tabularnewline
   ~~96&   $ 33$&   $-1.090$&   $-0.30300$&   $ 0.02830$&   $ 0.05420$&   $ 0.28900$&   $ 2.5900$&   $0.634$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  3$&   $-0.263$&   $-0.18600$&   $-0.10900$&   $-0.08630$&   $ 0.00216$&   $ 0.1130$&   $0.189$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $120$&   $-1.690$&   $-0.29800$&   $ 0.02320$&   $-0.01190$&   $ 0.28400$&   $ 1.5100$&   $0.554$\tabularnewline
   ~~12&   $102$&   $-1.310$&   $-0.23100$&   $-0.01060$&   $ 0.00867$&   $ 0.26000$&   $ 2.1000$&   $0.526$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 26$&   $-1.430$&   $-0.28400$&   $ 0.00679$&   $-0.01760$&   $ 0.35700$&   $ 0.8820$&   $0.487$\tabularnewline
\rowcolor[gray]{.9}   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~36&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~48&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~60&   $  2$&   $-0.543$&   $-0.39400$&   $-0.24500$&   $-0.24500$&   $-0.09570$&   $ 0.0535$&   $0.422$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  1$&   $-0.191$&   $-0.19100$&   $-0.19100$&   $-0.19100$&   $-0.19100$&   $-0.1910$&   $$\tabularnewline
\hline
\end{tabular}\end{center}
\end{table}

\clearpage
\subsection{ SP ECog - Total change from baseline}

%latex.default(tab[, -(1:2)], file = "", rowlabel = "Month", rowname = tab[,     1], rgroup = unique(tab[, 2]), n.rgroup = table(tab[, 2]),     digits = 3, where = "h!", rownamesTexCmd = rcmd, label = paste("long",         oc, sep = ""))%
\begin{table}[h!]
\begin{center}
\begin{tabular}{lrrrrrrrr}
\hline\hline
\multicolumn{1}{l}{Month}&\multicolumn{1}{c}{N}&\multicolumn{1}{c}{Min.}&\multicolumn{1}{c}{Q.1}&\multicolumn{1}{c}{Median}&\multicolumn{1}{c}{Mean}&\multicolumn{1}{c}{Q.3}&\multicolumn{1}{c}{Max.}&\multicolumn{1}{c}{SD}\tabularnewline
\hline
{\bfseries CN}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $265$&   $-0.879$&   $-0.0513$&   $0.0000$&   $ 0.00909$&   $0.0769$&   $0.846$&   $0.193$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $249$&   $-1.210$&   $-0.0365$&   $0.0000$&   $ 0.03900$&   $0.0978$&   $1.620$&   $0.262$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $246$&   $-1.130$&   $-0.0685$&   $0.0000$&   $ 0.04590$&   $0.1030$&   $2.000$&   $0.305$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 41$&   $-1.330$&   $ 0.0000$&   $0.0513$&   $ 0.11900$&   $0.2290$&   $2.050$&   $0.469$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $156$&   $-1.050$&   $-0.0516$&   $0.0000$&   $ 0.08570$&   $0.1290$&   $1.680$&   $0.341$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 54$&   $-0.540$&   $-0.0447$&   $0.0395$&   $ 0.16500$&   $0.2110$&   $2.540$&   $0.509$\tabularnewline
   ~~72&   $101$&   $-0.994$&   $-0.0256$&   $0.0321$&   $ 0.17500$&   $0.2810$&   $2.520$&   $0.468$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 45$&   $-1.540$&   $ 0.0000$&   $0.0830$&   $ 0.29700$&   $0.2910$&   $2.950$&   $0.738$\tabularnewline
   ~~96&   $ 10$&   $-0.564$&   $-0.1840$&   $0.0277$&   $-0.03910$&   $0.1020$&   $0.451$&   $0.298$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $426$&   $-1.460$&   $-0.1670$&   $0.0206$&   $ 0.05150$&   $0.2540$&   $1.990$&   $0.411$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $469$&   $-2.040$&   $-0.1290$&   $0.0425$&   $ 0.08300$&   $0.2820$&   $2.090$&   $0.462$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $383$&   $-1.410$&   $-0.1050$&   $0.1030$&   $ 0.18600$&   $0.3910$&   $2.410$&   $0.533$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $316$&   $-2.140$&   $-0.1030$&   $0.1440$&   $ 0.25400$&   $0.4890$&   $2.510$&   $0.619$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $245$&   $-2.110$&   $-0.1030$&   $0.1540$&   $ 0.28400$&   $0.5710$&   $2.620$&   $0.648$\tabularnewline
   ~~60&   $137$&   $-1.050$&   $-0.1030$&   $0.1660$&   $ 0.32500$&   $0.6910$&   $2.400$&   $0.676$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $106$&   $-1.100$&   $-0.1000$&   $0.1450$&   $ 0.26300$&   $0.4990$&   $2.250$&   $0.614$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 86$&   $-1.340$&   $-0.1200$&   $0.1870$&   $ 0.40000$&   $0.8460$&   $2.400$&   $0.812$\tabularnewline
   ~~96&   $ 33$&   $-0.491$&   $-0.0418$&   $0.0973$&   $ 0.32000$&   $0.5790$&   $2.030$&   $0.612$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  3$&   $ 0.085$&   $ 0.1100$&   $0.1340$&   $ 0.28900$&   $0.3920$&   $0.649$&   $0.312$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $130$&   $-2.500$&   $-0.1470$&   $0.1260$&   $ 0.10500$&   $0.4100$&   $1.330$&   $0.524$\tabularnewline
   ~~12&   $122$&   $-1.460$&   $ 0.0833$&   $0.3160$&   $ 0.33200$&   $0.5780$&   $1.570$&   $0.467$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 34$&   $-0.374$&   $ 0.0338$&   $0.3400$&   $ 0.41900$&   $0.7760$&   $1.890$&   $0.516$\tabularnewline
\rowcolor[gray]{.9}   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~36&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~48&   $  1$&   $ 0.718$&   $ 0.7180$&   $0.7180$&   $ 0.71800$&   $0.7180$&   $0.718$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~60&   $  4$&   $-0.241$&   $ 0.4780$&   $0.7580$&   $ 0.97900$&   $1.2600$&   $2.640$&   $1.200$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  2$&   $ 0.675$&   $ 0.8240$&   $0.9730$&   $ 0.97300$&   $1.1200$&   $1.270$&   $0.421$\tabularnewline
\hline
\end{tabular}\end{center}
\end{table}

R Session Information

{r results = "markup" print(sessionInfo(), locale=FALSE)