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

Load required R packages and functions

options(digits = 3)
library(knitr)
library(ADNIMERGE)
library(ggplot2)
library(Hmisc)
library(gridExtra)
library(RColorBrewer)
source("https://adni.bitbucket.io/myfunctions.R")
theme_set(theme_bw())
dd <- adnimerge
dd$AGEC <- cut(dd$AGE, breaks = seq(39, 110, by = 10))

label(dd$PTEDUCAT) <- "Education"
label(dd$AGE) <- "Age"
label(dd$AGEC) <- "Age"
label(dd$PTGENDER) <- "Sex"
label(dd$PTETHCAT) <- "Ethnicity"
label(dd$PTRACCAT) <- "Race"
label(dd$PTMARRY) <- "Marital"
label(dd$CDRSB) <- "CDR-SB"
label(dd$ADAS11) <- "ADAS 11"
label(dd$ADAS13) <- "ADAS 13"
label(dd$MMSE) <- "MMSE"

# indicate the bl withdrawals:
BLTDS <- subset(treatdis, VISCODE == "bl" & WDRAWTYPE == "Full")$RID
dd$VISCODE <- with(dd, ifelse(VISCODE == "bl" & RID %in% BLTDS, "blwd", VISCODE))

Demographic Summaries by Diagnosis

Baseline

Descriptive Statistics by Baseline Dx

N CN (N=514) SMC (N=289) EMCI (N=375) LMCI (N=640) AD (N=381) Combined (N=2199) Test Statistic
Age [Years] 2224
    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.3 d.f.=4,2192 P<0.001
Age : (39,49] 2223
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
Chi-square=169 d.f.=16 P<0.001
(49,59]
      1%  (   4)
      2%  (   6)
      5%  (  17)
      3%  (  21)
      4%  (  15)
      3%  (  63)
(59,69]
     19%  (  97)
     40%  ( 116)
     37%  ( 137)
     21%  ( 133)
     16%  (  62)
     25%  ( 545)
(69,79]
     62%  ( 316)
     47%  ( 134)
     42%  ( 157)
     49%  ( 313)
     47%  ( 179)
     50%  (1099)
(79,89]
     19%  (  95)
     10%  (  28)
     17%  (  64)
     27%  ( 170)
     31%  ( 118)
     22%  ( 475)
(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 2226
     47%  ( 244)
     39%  ( 114)
     56%  ( 210)
     61%  ( 391)
     56%  ( 214)
     53%  (1173)
Chi-square=47.3 d.f.=4 P<0.001
Education 2226
       14/16/18
       16/17/18
       14/16/18
       14/16/18
       13/16/18
       14/16/18
F=15.1 d.f.=4,2194 P<0.001
Marital : Divorced 2226
     10%  (  53)
     12%  (  35)
     11%  (  42)
      8%  (  51)
      4%  (  14)
      9%  ( 195)
Chi-square=58.5 d.f.=16 P<0.001
Married
     69%  ( 357)
     72%  ( 209)
     77%  ( 288)
     78%  ( 499)
     84%  ( 319)
     76%  (1672)
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 2226
      0%  (   2)
      1%  (   2)
      1%  (   2)
      0%  (   3)
      1%  (   3)
      1%  (  12)
Chi-square=4.93 d.f.=8 P=0.765
Not Hisp/Latino
     96%  ( 494)
     96%  ( 276)
     94%  ( 354)
     97%  ( 620)
     96%  ( 365)
     96%  (2109)
Hisp/Latino
      4%  (  18)
      4%  (  11)
      5%  (  19)
      3%  (  17)
      3%  (  13)
      4%  (  78)
Race : Am Indian/Alaskan 2226
      0%  (   2)
      0%  (   0)
      0%  (   1)
      0%  (   1)
      0%  (   0)
      0%  (   4)
Chi-square=48.7 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%  (  15)
      4%  (  98)
White
     91%  ( 469)
     88%  ( 255)
     93%  ( 349)
     93%  ( 595)
     93%  ( 353)
     92%  (2021)
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 2226
     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=2947 d.f.=4,2194 P<0.001
ADAS 13 2198
   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.59/29.67/35.00
  10.00/15.00/22.00
F=650 d.f.=4,2174 P<0.001
MMSE 2226
       29/29/30
       29/29/30
       28/29/29
       26/27/29
       21/23/25
       26/28/29
F=591 d.f.=4,2194 P<0.001

Demographic Summaries by Diagnosis

Baseline

Descriptive Statistics by Baseline Dx

N CN (N=507) SMC (N=286) EMCI (N=364) LMCI (N=628) AD (N=371) Combined (N=2156) Test Statistic
Age [Years] 2181
    70.0/73.2/77.7
    66.9/70.2/75.8
    66.0/71.2/76.5
    69.2/74.3/79.2
    70.7/75.3/80.4
    68.3/73.2/78.3
F=20.4 d.f.=4,2149 P<0.001
Age : (39,49] 2180
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
Chi-square=164 d.f.=16 P<0.001
(49,59]
      1%  (   4)
      2%  (   6)
      4%  (  16)
      3%  (  20)
      4%  (  15)
      3%  (  61)
(59,69]
     19%  (  95)
     40%  ( 115)
     36%  ( 132)
     21%  ( 131)
     16%  (  60)
     25%  ( 533)
(69,79]
     62%  ( 312)
     46%  ( 132)
     42%  ( 154)
     49%  ( 308)
     47%  ( 175)
     50%  (1081)
(79,89]
     19%  (  94)
     10%  (  28)
     17%  (  62)
     26%  ( 166)
     31%  ( 114)
     22%  ( 464)
(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 2183
     48%  ( 242)
     39%  ( 112)
     57%  ( 206)
     61%  ( 385)
     56%  ( 209)
     54%  (1154)
Chi-square=48.4 d.f.=4 P<0.001
Education 2183
    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.7 d.f.=4,2151 P<0.001
Marital : Divorced 2183
     10%  (  52)
     12%  (  35)
     11%  (  40)
      8%  (  51)
      4%  (  14)
      9%  ( 192)
Chi-square=57.3 d.f.=16 P<0.001
Married
     70%  ( 354)
     73%  ( 208)
     77%  ( 282)
     78%  ( 489)
     84%  ( 310)
     76%  (1643)
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 2183
      0%  (   2)
      1%  (   2)
      1%  (   2)
      0%  (   3)
      1%  (   3)
      1%  (  12)
Chi-square=4.99 d.f.=8 P=0.759
Not Hisp/Latino
     96%  ( 487)
     95%  ( 273)
     95%  ( 344)
     97%  ( 609)
     96%  ( 356)
     96%  (2069)
Hisp/Latino
      4%  (  18)
      4%  (  11)
      5%  (  18)
      3%  (  16)
      3%  (  12)
      3%  (  75)
Race : Am Indian/Alaskan 2183
      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%  (  15)
      4%  (  96)
White
     91%  ( 462)
     88%  ( 252)
     93%  ( 340)
     93%  ( 584)
     92%  ( 343)
     92%  (1981)
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 2183
    0.00/0.00/0.00
    0.00/0.00/0.00
    0.50/1.00/1.62
    1.00/1.50/2.00
    3.50/4.50/5.00
    0.00/1.00/2.00
F=2923 d.f.=4,2151 P<0.001
ADAS 13 2159
   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=633 d.f.=4,2135 P<0.001
MMSE 2183
       29/29/30
       29/29/30
       28/29/29
       26/27/29
       21/23/25
       26/28/29
F=573 d.f.=4,2151 P<0.001

Baseline box plots

dd1 <- subset(dd, VISCODE == "bl" & !is.na(DX.bl), c("RID", "DX.bl", "ADAS13", 
    "CDRSB", "MMSE", "EcogPtMem", "EcogSPMem", "EcogPtTotal", "EcogSPTotal"))
ggplot(dd1, aes(DX.bl, ADAS13)) + 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, 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

cols <- c("ADAS13", "MMSE", "CDRSB", "EcogPtMem", "EcogPtTotal", "EcogSPTotal")
for (cc in cols) {
    dd1$x <- dd1[, cc]
    tab <- with(dd1, Hmisc::summarize(x, by = DX.bl, FUN = summary.default, 
        stat.name = "N"))
    cat("\n### ", label(dd1[, cc]), "\n")
    rownames(tab) <- tab[, 1]
    kable(tab[, -1])
}

###  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.00$&   $ 0.00$&   $-0.3850$&   $ 2.00$&   $11.0$&   $ 3.43$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $257$&   $-11.00$&   $-3.00$&   $-0.33$&   $-0.5370$&   $ 2.00$&   $11.0$&   $ 3.72$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $256$&   $-10.00$&   $-3.00$&   $-1.00$&   $-0.6900$&   $ 2.00$&   $10.0$&   $ 3.55$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 42$&   $ -8.00$&   $-2.00$&   $-1.00$&   $-0.2780$&   $ 2.00$&   $11.0$&   $ 3.77$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $161$&   $ -8.00$&   $-2.00$&   $ 1.67$&   $ 1.3700$&   $ 4.00$&   $15.0$&   $ 4.64$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 53$&   $ -1.67$&   $ 2.67$&   $ 4.33$&   $ 5.1600$&   $ 7.00$&   $18.0$&   $ 4.46$\tabularnewline
   ~~72&   $108$&   $ -2.67$&   $ 2.00$&   $ 4.84$&   $ 5.4800$&   $ 7.67$&   $23.7$&   $ 4.73$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 40$&   $  0.00$&   $ 3.33$&   $ 5.50$&   $ 7.3500$&   $ 8.17$&   $28.3$&   $ 6.62$\tabularnewline
   ~~96&   $ 13$&   $ -2.67$&   $ 2.00$&   $ 2.67$&   $ 3.8000$&   $ 6.00$&   $10.7$&   $ 3.88$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $429$&   $-12.00$&   $-3.00$&   $ 0.00$&   $ 0.0583$&   $ 3.00$&   $16.0$&   $ 4.38$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $483$&   $-15.00$&   $-3.00$&   $ 0.00$&   $ 0.0752$&   $ 3.00$&   $54.0$&   $ 5.05$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $374$&   $-11.00$&   $-3.00$&   $ 0.00$&   $ 1.0600$&   $ 4.00$&   $21.0$&   $ 5.55$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $315$&   $-14.00$&   $-2.00$&   $ 1.00$&   $ 2.0400$&   $ 5.00$&   $49.0$&   $ 7.47$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $252$&   $-12.00$&   $-2.00$&   $ 1.00$&   $ 3.4800$&   $ 6.00$&   $55.0$&   $ 9.57$\tabularnewline
   ~~60&   $139$&   $ -7.00$&   $ 0.00$&   $ 3.00$&   $ 5.5000$&   $ 8.16$&   $71.0$&   $10.90$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $100$&   $ -5.00$&   $ 1.92$&   $ 4.50$&   $ 5.7500$&   $ 8.00$&   $37.0$&   $ 6.81$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 77$&   $ -3.33$&   $ 2.67$&   $ 5.67$&   $ 6.9500$&   $ 9.67$&   $22.0$&   $ 6.10$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
   ~~96&   $ 36$&   $ -3.00$&   $ 3.67$&   $ 7.67$&   $ 9.2200$&   $11.50$&   $38.7$&   $ 8.40$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  6$&   $  3.00$&   $ 5.50$&   $ 6.34$&   $ 9.2800$&   $13.90$&   $18.3$&   $ 6.39$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $127$&   $-12.00$&   $-1.50$&   $ 2.00$&   $ 2.3800$&   $ 6.50$&   $23.0$&   $ 5.62$\tabularnewline
   ~~12&   $117$&   $-13.00$&   $ 1.00$&   $ 4.00$&   $ 4.9300$&   $ 9.00$&   $27.0$&   $ 6.47$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 33$&   $ -5.00$&   $ 3.00$&   $ 7.00$&   $ 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.41$&   $ 8.50$&   $ 8.5000$&   $ 9.59$&   $10.7$&   $ 3.07$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  1$&   $ 10.00$&   $10.00$&   $10.00$&   $10.0000$&   $10.00$&   $10.0$&   $$\tabularnewline
   ~~84&   $  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.0547$&   $ 1.00$&   $ 4$&   $1.40$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $260$&   $ -8$&   $-1.00$&   $ 0$&   $-0.2120$&   $ 1.00$&   $ 4$&   $1.60$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $261$&   $ -4$&   $-1.00$&   $ 0$&   $-0.1840$&   $ 1.00$&   $ 4$&   $1.49$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 45$&   $ -5$&   $-1.00$&   $ 0$&   $-0.3780$&   $ 1.00$&   $ 4$&   $1.81$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $161$&   $ -7$&   $-1.00$&   $ 0$&   $-0.2730$&   $ 1.00$&   $ 4$&   $1.69$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 53$&   $-10$&   $-1.00$&   $ 0$&   $-0.1890$&   $ 0.00$&   $ 4$&   $1.97$\tabularnewline
   ~~72&   $108$&   $ -8$&   $-1.00$&   $ 0$&   $-0.4170$&   $ 1.00$&   $ 4$&   $1.95$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 39$&   $ -7$&   $-3.00$&   $ 0$&   $-1.2100$&   $ 0.00$&   $ 2$&   $2.02$\tabularnewline
   ~~96&   $ 14$&   $ -2$&   $-0.75$&   $ 0$&   $ 0.2140$&   $ 0.75$&   $ 4$&   $1.48$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $430$&   $-10$&   $-2.00$&   $ 0$&   $-0.4490$&   $ 1.00$&   $ 5$&   $1.88$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $486$&   $-11$&   $-2.00$&   $ 0$&   $-0.5040$&   $ 1.00$&   $ 6$&   $2.04$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $380$&   $-11$&   $-2.00$&   $ 0$&   $-0.9210$&   $ 1.00$&   $ 6$&   $2.46$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $316$&   $-23$&   $-2.00$&   $-1$&   $-1.2400$&   $ 1.00$&   $ 6$&   $3.33$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $256$&   $-20$&   $-3.00$&   $-1$&   $-1.6000$&   $ 1.00$&   $ 5$&   $3.82$\tabularnewline
   ~~60&   $143$&   $-30$&   $-3.00$&   $-1$&   $-1.9900$&   $ 0.00$&   $ 4$&   $4.64$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $104$&   $-24$&   $-2.00$&   $ 0$&   $-1.5500$&   $ 1.00$&   $ 5$&   $4.24$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 83$&   $-20$&   $-3.00$&   $-1$&   $-1.6300$&   $ 1.00$&   $ 6$&   $4.25$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
   ~~96&   $ 36$&   $-12$&   $-2.00$&   $-1$&   $-1.4700$&   $ 1.00$&   $ 5$&   $3.57$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  7$&   $ -4$&   $-2.00$&   $-1$&   $-0.8570$&   $ 0.50$&   $ 2$&   $2.12$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $131$&   $-16$&   $-3.00$&   $-1$&   $-1.1800$&   $ 1.00$&   $ 8$&   $3.07$\tabularnewline
   ~~12&   $121$&   $-19$&   $-4.00$&   $-2$&   $-2.3700$&   $ 0.00$&   $ 5$&   $4.04$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 34$&   $-12$&   $-6.00$&   $-3$&   $-3.8200$&   $-2.00$&   $ 3$&   $3.45$\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$&   $-2.0000$&   $-1.00$&   $ 0$&   $2.83$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  2$&   $ -5$&   $-4.50$&   $-4$&   $-4.0000$&   $-3.50$&   $-3$&   $1.41$\tabularnewline
   ~~84&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\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.00$&   $ 0.00$&   $ 0.0879$&   $ 0.00$&   $ 2.5$&   $0.348$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $254$&   $-1.0$&   $ 0.00$&   $ 0.00$&   $ 0.1320$&   $ 0.00$&   $ 4.0$&   $0.502$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $260$&   $-1.0$&   $ 0.00$&   $ 0.00$&   $ 0.1810$&   $ 0.00$&   $ 5.0$&   $0.629$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 42$&   $-0.5$&   $ 0.00$&   $ 0.00$&   $ 0.4760$&   $ 0.50$&   $ 5.0$&   $1.130$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $156$&   $-0.5$&   $ 0.00$&   $ 0.00$&   $ 0.2020$&   $ 0.00$&   $ 5.0$&   $0.686$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 56$&   $-0.5$&   $ 0.00$&   $ 0.00$&   $ 0.5540$&   $ 0.50$&   $11.0$&   $1.710$\tabularnewline
   ~~72&   $113$&   $-0.5$&   $ 0.00$&   $ 0.00$&   $ 0.4470$&   $ 0.50$&   $10.0$&   $1.280$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 45$&   $-0.5$&   $ 0.00$&   $ 0.00$&   $ 0.6560$&   $ 0.50$&   $ 8.5$&   $1.510$\tabularnewline
   ~~96&   $ 15$&   $ 0.0$&   $ 0.00$&   $ 0.00$&   $ 0.2670$&   $ 0.25$&   $ 1.5$&   $0.530$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $426$&   $-3.5$&   $-0.50$&   $ 0.00$&   $ 0.1310$&   $ 0.50$&   $ 3.0$&   $0.807$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $477$&   $-3.0$&   $-0.50$&   $ 0.00$&   $ 0.2090$&   $ 0.50$&   $ 5.5$&   $1.020$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $385$&   $-3.0$&   $-0.50$&   $ 0.00$&   $ 0.5870$&   $ 1.00$&   $11.5$&   $1.680$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $325$&   $-3.5$&   $-0.50$&   $ 0.00$&   $ 0.9080$&   $ 1.50$&   $12.5$&   $2.380$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $257$&   $-3.5$&   $-0.50$&   $ 0.00$&   $ 1.1200$&   $ 2.00$&   $16.0$&   $2.910$\tabularnewline
   ~~60&   $141$&   $-3.0$&   $-0.50$&   $ 0.00$&   $ 0.9260$&   $ 1.50$&   $14.5$&   $2.650$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $106$&   $-3.0$&   $-0.50$&   $ 0.00$&   $ 1.1700$&   $ 1.50$&   $15.5$&   $3.310$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 85$&   $-3.5$&   $-0.50$&   $ 0.00$&   $ 1.5900$&   $ 2.00$&   $15.0$&   $3.730$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
   ~~96&   $ 41$&   $-2.5$&   $-0.50$&   $ 0.00$&   $ 1.3200$&   $ 1.50$&   $12.0$&   $3.590$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  6$&   $-2.5$&   $-1.25$&   $ 0.25$&   $-0.1670$&   $ 1.00$&   $ 1.5$&   $1.600$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $131$&   $-2.5$&   $ 0.00$&   $ 0.50$&   $ 0.8130$&   $ 1.50$&   $ 9.0$&   $1.540$\tabularnewline
   ~~12&   $125$&   $-2.0$&   $ 0.50$&   $ 1.00$&   $ 1.8700$&   $ 2.50$&   $11.5$&   $2.490$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 34$&   $-1.0$&   $ 0.50$&   $ 2.25$&   $ 2.6300$&   $ 4.00$&   $ 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.00$&   $ 3.00$&   $ 3.0000$&   $ 3.00$&   $ 3.0$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~60&   $  4$&   $ 2.0$&   $ 4.25$&   $ 8.00$&   $ 7.3800$&   $11.10$&   $11.5$&   $4.640$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  4$&   $ 7.0$&   $ 8.12$&   $10.00$&   $10.4000$&   $12.20$&   $14.5$&   $3.330$\tabularnewline
   ~~84&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\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.250$&   $ 0.000$&   $ 0.0303$&   $ 0.250$&   $ 1.6200$&   $0.431$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $259$&   $-1.380$&   $-0.250$&   $ 0.000$&   $ 0.0209$&   $ 0.250$&   $ 1.6200$&   $0.429$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $262$&   $-1.380$&   $-0.250$&   $ 0.000$&   $ 0.0538$&   $ 0.375$&   $ 1.7500$&   $0.452$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 44$&   $-0.589$&   $-0.250$&   $ 0.000$&   $-0.0361$&   $ 0.125$&   $ 0.7500$&   $0.313$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $163$&   $-1.380$&   $-0.250$&   $ 0.000$&   $ 0.0563$&   $ 0.375$&   $ 2.1200$&   $0.495$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 57$&   $-1.430$&   $ 0.000$&   $ 0.125$&   $ 0.1470$&   $ 0.375$&   $ 1.3800$&   $0.495$\tabularnewline
   ~~72&   $110$&   $-1.000$&   $-0.125$&   $ 0.125$&   $ 0.1800$&   $ 0.500$&   $ 1.6200$&   $0.538$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 46$&   $-0.839$&   $ 0.000$&   $ 0.250$&   $ 0.2590$&   $ 0.625$&   $ 1.8200$&   $0.574$\tabularnewline
   ~~96&   $ 15$&   $-0.500$&   $-0.125$&   $ 0.000$&   $ 0.1920$&   $ 0.438$&   $ 1.1200$&   $0.430$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $428$&   $-2.120$&   $-0.375$&   $-0.125$&   $-0.1040$&   $ 0.250$&   $ 1.6200$&   $0.539$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $483$&   $-2.250$&   $-0.375$&   $ 0.000$&   $-0.0617$&   $ 0.250$&   $ 1.6200$&   $0.601$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $381$&   $-2.880$&   $-0.375$&   $ 0.000$&   $-0.0295$&   $ 0.250$&   $ 2.5000$&   $0.645$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $318$&   $-2.380$&   $-0.375$&   $-0.125$&   $-0.0443$&   $ 0.375$&   $ 2.5000$&   $0.637$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $250$&   $-2.500$&   $-0.500$&   $-0.125$&   $-0.0975$&   $ 0.312$&   $ 2.3600$&   $0.725$\tabularnewline
   ~~60&   $141$&   $-1.500$&   $-0.375$&   $ 0.000$&   $ 0.0201$&   $ 0.500$&   $ 1.7500$&   $0.596$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $103$&   $-2.120$&   $-0.375$&   $ 0.000$&   $ 0.0223$&   $ 0.500$&   $ 1.7500$&   $0.742$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 84$&   $-2.380$&   $-0.375$&   $-0.125$&   $-0.0481$&   $ 0.250$&   $ 2.0000$&   $0.682$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
   ~~96&   $ 38$&   $-2.500$&   $-0.469$&   $-0.250$&   $-0.1510$&   $ 0.188$&   $ 2.2100$&   $0.783$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  6$&   $-0.750$&   $-0.312$&   $ 0.000$&   $ 0.0625$&   $ 0.312$&   $ 1.1200$&   $0.651$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $124$&   $-1.880$&   $-0.406$&   $ 0.000$&   $-0.0592$&   $ 0.375$&   $ 1.7500$&   $0.725$\tabularnewline
   ~~12&   $106$&   $-2.000$&   $-0.375$&   $ 0.000$&   $-0.1080$&   $ 0.375$&   $ 2.0000$&   $0.731$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 26$&   $-1.750$&   $-0.594$&   $-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.665$&   $-0.455$&   $-0.4550$&   $-0.246$&   $-0.0357$&   $0.593$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  1$&   $-0.875$&   $-0.875$&   $-0.875$&   $-0.8750$&   $-0.875$&   $-0.8750$&   $$\tabularnewline
   ~~84&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\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.0000$&   $0.01720$&   $0.125$&   $1.62$&   $0.361$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $252$&   $-1.500$&   $-0.1250$&   $0.0000$&   $0.04140$&   $0.250$&   $2.12$&   $0.413$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $251$&   $-1.500$&   $-0.1250$&   $0.0000$&   $0.05160$&   $0.250$&   $2.12$&   $0.452$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 41$&   $-1.380$&   $-0.1250$&   $0.0000$&   $0.12100$&   $0.300$&   $2.12$&   $0.542$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $155$&   $-1.250$&   $-0.1550$&   $0.0000$&   $0.11400$&   $0.250$&   $2.12$&   $0.490$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 54$&   $-0.750$&   $-0.1250$&   $0.0000$&   $0.14100$&   $0.250$&   $2.46$&   $0.568$\tabularnewline
   ~~72&   $111$&   $-1.500$&   $-0.1250$&   $0.0000$&   $0.23000$&   $0.500$&   $2.25$&   $0.639$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 45$&   $-2.380$&   $ 0.0000$&   $0.1250$&   $0.37000$&   $0.625$&   $2.75$&   $0.874$\tabularnewline
   ~~96&   $ 15$&   $-0.589$&   $-0.1250$&   $0.0000$&   $0.06310$&   $0.250$&   $1.16$&   $0.438$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $424$&   $-1.880$&   $-0.2500$&   $0.0000$&   $0.00345$&   $0.375$&   $2.12$&   $0.561$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $475$&   $-2.750$&   $-0.2500$&   $0.0000$&   $0.01650$&   $0.268$&   $2.25$&   $0.583$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $384$&   $-1.880$&   $-0.2500$&   $0.0000$&   $0.10500$&   $0.500$&   $2.12$&   $0.649$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $317$&   $-2.250$&   $-0.2500$&   $0.1250$&   $0.15000$&   $0.500$&   $2.14$&   $0.706$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $245$&   $-1.750$&   $-0.2500$&   $0.1250$&   $0.22500$&   $0.500$&   $2.88$&   $0.710$\tabularnewline
   ~~60&   $137$&   $-1.620$&   $-0.1790$&   $0.1250$&   $0.27000$&   $0.625$&   $2.50$&   $0.783$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $107$&   $-1.620$&   $-0.2500$&   $0.1250$&   $0.20100$&   $0.598$&   $2.29$&   $0.677$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 88$&   $-1.250$&   $-0.2540$&   $0.1250$&   $0.29800$&   $0.875$&   $2.50$&   $0.843$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
   ~~96&   $ 39$&   $-1.250$&   $-0.1880$&   $0.1250$&   $0.18800$&   $0.500$&   $2.12$&   $0.670$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  6$&   $-0.625$&   $-0.2810$&   $0.0625$&   $0.00000$&   $0.125$&   $0.75$&   $0.474$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $130$&   $-2.750$&   $-0.2500$&   $0.0000$&   $0.04210$&   $0.479$&   $1.62$&   $0.616$\tabularnewline
   ~~12&   $123$&   $-1.620$&   $ 0.0000$&   $0.1250$&   $0.21500$&   $0.500$&   $2.12$&   $0.514$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 34$&   $-1.540$&   $-0.0938$&   $0.0000$&   $0.13600$&   $0.375$&   $1.50$&   $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.0000$&   $0.00000$&   $0.000$&   $0.00$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~60&   $  4$&   $ 0.000$&   $ 0.0938$&   $0.6250$&   $0.84400$&   $1.380$&   $2.12$&   $0.992$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  3$&   $ 0.000$&   $ 0.9110$&   $1.8200$&   $1.32000$&   $1.970$&   $2.12$&   $1.150$\tabularnewline
   ~~84&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\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.1030$&   $ 0.00000$&   $ 0.01780$&   $ 0.1280$&   $ 0.8210$&   $0.253$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $259$&   $-0.751$&   $-0.1030$&   $ 0.00000$&   $ 0.02500$&   $ 0.1280$&   $ 1.4600$&   $0.248$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $262$&   $-0.985$&   $-0.1030$&   $ 0.00000$&   $ 0.04110$&   $ 0.1790$&   $ 1.1800$&   $0.303$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 44$&   $-0.526$&   $-0.1030$&   $-0.02560$&   $ 0.00677$&   $ 0.1030$&   $ 0.7440$&   $0.225$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $164$&   $-0.985$&   $-0.1070$&   $ 0.04180$&   $ 0.04310$&   $ 0.1670$&   $ 1.7200$&   $0.304$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 57$&   $-0.725$&   $-0.0466$&   $ 0.13300$&   $ 0.11100$&   $ 0.2210$&   $ 0.7270$&   $0.314$\tabularnewline
   ~~72&   $110$&   $-1.010$&   $-0.0376$&   $ 0.10600$&   $ 0.13600$&   $ 0.2640$&   $ 1.3000$&   $0.331$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 46$&   $-0.536$&   $-0.0245$&   $ 0.08230$&   $ 0.16000$&   $ 0.2920$&   $ 1.1600$&   $0.339$\tabularnewline
   ~~96&   $ 15$&   $-0.153$&   $ 0.0148$&   $ 0.07890$&   $ 0.11300$&   $ 0.2200$&   $ 0.4540$&   $0.170$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $430$&   $-2.080$&   $-0.2190$&   $-0.02630$&   $-0.03500$&   $ 0.1500$&   $ 1.5900$&   $0.376$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $485$&   $-1.690$&   $-0.2310$&   $ 0.00000$&   $-0.01460$&   $ 0.1840$&   $ 1.6700$&   $0.397$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $382$&   $-1.690$&   $-0.2050$&   $ 0.00000$&   $ 0.02580$&   $ 0.2310$&   $ 1.7400$&   $0.437$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $314$&   $-1.730$&   $-0.2050$&   $ 0.02220$&   $ 0.04000$&   $ 0.2920$&   $ 1.9900$&   $0.453$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $249$&   $-2.310$&   $-0.2470$&   $ 0.02560$&   $ 0.03160$&   $ 0.3080$&   $ 2.7100$&   $0.529$\tabularnewline
   ~~60&   $139$&   $-1.210$&   $-0.1410$&   $ 0.05130$&   $ 0.07250$&   $ 0.3260$&   $ 1.1300$&   $0.438$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $103$&   $-1.130$&   $-0.1650$&   $ 0.05400$&   $ 0.09530$&   $ 0.3850$&   $ 1.4800$&   $0.467$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 84$&   $-1.070$&   $-0.1990$&   $ 0.00742$&   $ 0.04040$&   $ 0.2190$&   $ 1.6000$&   $0.487$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
   ~~96&   $ 38$&   $-1.090$&   $-0.3000$&   $ 0.00675$&   $ 0.02570$&   $ 0.2060$&   $ 2.5900$&   $0.599$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  6$&   $-0.263$&   $-0.0990$&   $ 0.01190$&   $ 0.05080$&   $ 0.1080$&   $ 0.5400$&   $0.277$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $120$&   $-1.690$&   $-0.2980$&   $ 0.02320$&   $-0.01190$&   $ 0.2840$&   $ 1.5100$&   $0.554$\tabularnewline
   ~~12&   $103$&   $-1.310$&   $-0.2310$&   $-0.00962$&   $ 0.01250$&   $ 0.2760$&   $ 2.1000$&   $0.525$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 26$&   $-1.430$&   $-0.2840$&   $ 0.00679$&   $-0.01760$&   $ 0.3570$&   $ 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.3940$&   $-0.24500$&   $-0.24500$&   $-0.0957$&   $ 0.0535$&   $0.422$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  1$&   $-0.191$&   $-0.1910$&   $-0.19100$&   $-0.19100$&   $-0.1910$&   $-0.1910$&   $$\tabularnewline
   ~~84&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\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&   $252$&   $-1.210$&   $-0.0394$&   $0.0000$&   $ 0.03960$&   $0.0979$&   $1.620$&   $0.261$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $251$&   $-1.130$&   $-0.0533$&   $0.0000$&   $ 0.05000$&   $0.1100$&   $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&   $111$&   $-0.994$&   $-0.0360$&   $0.0526$&   $ 0.17800$&   $0.2810$&   $2.520$&   $0.475$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 45$&   $-1.540$&   $ 0.0000$&   $0.0830$&   $ 0.29700$&   $0.2910$&   $2.950$&   $0.738$\tabularnewline
   ~~96&   $ 15$&   $-0.564$&   $-0.1380$&   $0.0000$&   $-0.03740$&   $0.0979$&   $0.451$&   $0.247$\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&   $475$&   $-2.040$&   $-0.1300$&   $0.0425$&   $ 0.08260$&   $0.2820$&   $2.090$&   $0.459$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $384$&   $-1.410$&   $-0.1050$&   $0.1030$&   $ 0.18800$&   $0.3930$&   $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&   $107$&   $-1.100$&   $-0.0990$&   $0.1520$&   $ 0.26700$&   $0.5100$&   $2.250$&   $0.612$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 88$&   $-1.340$&   $-0.1160$&   $0.2070$&   $ 0.41100$&   $0.8730$&   $2.400$&   $0.809$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
   ~~96&   $ 39$&   $-1.080$&   $-0.0472$&   $0.0973$&   $ 0.32300$&   $0.6180$&   $2.030$&   $0.689$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  6$&   $-0.355$&   $ 0.0213$&   $0.1100$&   $ 0.25000$&   $0.5200$&   $0.987$&   $0.484$\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&   $124$&   $-1.460$&   $ 0.0962$&   $0.3160$&   $ 0.33300$&   $0.5690$&   $1.570$&   $0.464$\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&   $  3$&   $ 0.675$&   $ 0.9730$&   $1.2700$&   $ 1.54000$&   $1.9700$&   $2.660$&   $1.020$\tabularnewline
   ~~84&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\hline
\end{tabular}\end{center}
\end{table}

R Session Information

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