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=515) SMC (N=295) EMCI (N=378) LMCI (N=641) AD (N=384) Combined (N=2213) Test Statistic
Age [Years] 2237
    70.0/73.2/77.7
    66.8/70.2/75.7
    65.7/71.0/76.5
    69.3/74.3/79.3
    70.7/75.3/80.5
    68.3/73.2/78.3
F=22.1 d.f.=4,2206 P<0.001
Age : (39,49] 2236
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
Chi-square=172 d.f.=16 P<0.001
(49,59]
      1%  (   5)
      2%  (   6)
      4%  (  17)
      3%  (  21)
      4%  (  15)
      3%  (  64)
(59,69]
     19%  (  97)
     41%  ( 120)
     37%  ( 139)
     21%  ( 133)
     16%  (  63)
     25%  ( 552)
(69,79]
     61%  ( 316)
     46%  ( 135)
     42%  ( 158)
     49%  ( 313)
     47%  ( 179)
     50%  (1101)
(79,89]
     18%  (  95)
     10%  (  29)
     17%  (  64)
     27%  ( 171)
     31%  ( 120)
     22%  ( 479)
(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 2239
     47%  ( 244)
     39%  ( 115)
     56%  ( 211)
     61%  ( 391)
     56%  ( 216)
     53%  (1177)
Chi-square=49.1 d.f.=4 P<0.001
Education 2239
    14.0/16.0/18.0
    15.5/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=15.5 d.f.=4,2208 P<0.001
Marital : Divorced 2239
     10%  (  54)
     13%  (  37)
     11%  (  43)
      8%  (  51)
      4%  (  14)
      9%  ( 199)
Chi-square=61.5 d.f.=16 P<0.001
Married
     69%  ( 357)
     72%  ( 212)
     77%  ( 290)
     78%  ( 499)
     84%  ( 322)
     76%  (1680)
Never married
      5%  (  27)
      5%  (  15)
      4%  (  16)
      2%  (  12)
      3%  (  10)
      4%  (  80)
Unknown
      0%  (   1)
      0%  (   1)
      1%  (   4)
      0%  (   2)
      0%  (   0)
      0%  (   8)
Widowed
     15%  (  76)
     10%  (  30)
      7%  (  25)
     12%  (  77)
     10%  (  38)
     11%  ( 246)
Ethnicity : Unknown 2239
      0%  (   2)
      1%  (   2)
      1%  (   2)
      0%  (   3)
      1%  (   3)
      1%  (  12)
Chi-square=4.78 d.f.=8 P=0.78
Not Hisp/Latino
     96%  ( 494)
     96%  ( 282)
     94%  ( 357)
     97%  ( 621)
     96%  ( 368)
     96%  (2122)
Hisp/Latino
      4%  (  19)
      4%  (  11)
      5%  (  19)
      3%  (  17)
      3%  (  13)
      4%  (  79)
Race : Am Indian/Alaskan 2239
      0%  (   2)
      0%  (   0)
      0%  (   1)
      0%  (   1)
      0%  (   0)
      0%  (   4)
Chi-square=50.1 d.f.=24 P=0.001
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)
      6%  (  19)
      2%  (   9)
      4%  (  28)
      4%  (  16)
      5%  ( 104)
White
     91%  ( 470)
     87%  ( 256)
     93%  ( 352)
     93%  ( 596)
     92%  ( 355)
     92%  (2029)
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 2239
    0.00/0.00/0.00
    0.00/0.00/0.00
    0.50/1.00/1.50
    1.00/1.50/2.00
    3.50/4.50/5.12
    0.00/1.00/2.00
F=2964 d.f.=4,2208 P<0.001
ADAS 13 2212
   6.67/ 9.33/12.67
   8.16/11.00/14.33
   9.00/13.00/17.00
  14.67/18.67/23.33
  24.50/29.67/35.00
  10.00/15.00/22.00
F=653 d.f.=4,2188 P<0.001
MMSE 2239
       29/29/30
       29/29/30
       28/29/29
       26/27/29
       21/23/25
       26/28/29
F=595 d.f.=4,2208 P<0.001

Demographic Summaries by Diagnosis

Baseline

Descriptive Statistics by Baseline Dx

N CN (N=508) SMC (N=292) EMCI (N=367) LMCI (N=629) AD (N=374) Combined (N=2170) Test Statistic
Age [Years] 2194
    70.0/73.2/77.7
    66.8/70.2/75.7
    66.0/71.1/76.5
    69.3/74.3/79.3
    70.7/75.3/80.5
    68.3/73.2/78.3
F=21.2 d.f.=4,2163 P<0.001
Age : (39,49] 2193
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
      0%  (   0)
Chi-square=167 d.f.=16 P<0.001
(49,59]
      1%  (   5)
      2%  (   6)
      4%  (  16)
      3%  (  20)
      4%  (  15)
      3%  (  62)
(59,69]
     19%  (  95)
     41%  ( 119)
     37%  ( 134)
     21%  ( 131)
     16%  (  61)
     25%  ( 540)
(69,79]
     62%  ( 312)
     46%  ( 133)
     42%  ( 155)
     49%  ( 308)
     47%  ( 175)
     50%  (1083)
(79,89]
     19%  (  94)
     10%  (  29)
     17%  (  62)
     27%  ( 167)
     31%  ( 116)
     22%  ( 468)
(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 2196
     48%  ( 242)
     39%  ( 113)
     56%  ( 207)
     61%  ( 385)
     56%  ( 211)
     53%  (1158)
Chi-square=50.2 d.f.=4 P<0.001
Education 2196
       14/16/18
       15/17/18
       14/16/18
       14/16/18
       13/16/18
       14/16/18
F=15.1 d.f.=4,2165 P<0.001
Marital : Divorced 2196
     10%  (  53)
     13%  (  37)
     11%  (  41)
      8%  (  51)
      4%  (  14)
      9%  ( 196)
Chi-square=60.3 d.f.=16 P<0.001
Married
     70%  ( 354)
     72%  ( 211)
     77%  ( 284)
     78%  ( 489)
     84%  ( 313)
     76%  (1651)
Never married
      5%  (  26)
      5%  (  15)
      4%  (  15)
      2%  (  11)
      3%  (  10)
      4%  (  77)
Unknown
      0%  (   1)
      0%  (   1)
      1%  (   4)
      0%  (   2)
      0%  (   0)
      0%  (   8)
Widowed
     15%  (  74)
     10%  (  28)
      6%  (  23)
     12%  (  76)
     10%  (  37)
     11%  ( 238)
Ethnicity : Unknown 2196
      0%  (   2)
      1%  (   2)
      1%  (   2)
      0%  (   3)
      1%  (   3)
      1%  (  12)
Chi-square=4.9 d.f.=8 P=0.768
Not Hisp/Latino
     96%  ( 487)
     96%  ( 279)
     95%  ( 347)
     97%  ( 610)
     96%  ( 359)
     96%  (2082)
Hisp/Latino
      4%  (  19)
      4%  (  11)
      5%  (  18)
      3%  (  16)
      3%  (  12)
      4%  (  76)
Race : Am Indian/Alaskan 2196
      0%  (   2)
      0%  (   0)
      0%  (   1)
      0%  (   1)
      0%  (   0)
      0%  (   4)
Chi-square=50.5 d.f.=24 P=0.001
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)
      7%  (  19)
      2%  (   8)
      4%  (  27)
      4%  (  16)
      5%  ( 102)
White
     91%  ( 463)
     87%  ( 253)
     93%  ( 343)
     93%  ( 585)
     92%  ( 345)
     92%  (1989)
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 2196
     0.0/0.0/0.0
     0.0/0.0/0.0
     0.5/1.0/2.0
     1.0/1.5/2.0
     3.5/4.5/5.0
     0.0/1.0/2.0
F=2940 d.f.=4,2165 P<0.001
ADAS 13 2173
   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=635 d.f.=4,2149 P<0.001
MMSE 2196
       29/29/30
       29/29/30
       28/29/29
       26/27/29
       21/23/25
       26/28/29
F=576 d.f.=4,2165 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.000$&   $ 0.00$&   $-0.3850$&   $ 2.00$&   $11.0$&   $ 3.43$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $259$&   $-11.00$&   $-3.000$&   $-0.33$&   $-0.5390$&   $ 2.00$&   $11.0$&   $ 3.72$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $261$&   $-10.00$&   $-3.000$&   $-1.00$&   $-0.7000$&   $ 2.00$&   $10.0$&   $ 3.52$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 42$&   $ -8.00$&   $-2.000$&   $-1.00$&   $-0.2780$&   $ 2.00$&   $11.0$&   $ 3.77$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $161$&   $ -8.00$&   $-2.000$&   $ 1.67$&   $ 1.3600$&   $ 4.00$&   $15.0$&   $ 4.63$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 53$&   $ -1.67$&   $ 2.670$&   $ 4.33$&   $ 5.1600$&   $ 7.00$&   $18.0$&   $ 4.46$\tabularnewline
   ~~72&   $113$&   $ -2.67$&   $ 2.000$&   $ 5.00$&   $ 5.6000$&   $ 7.67$&   $23.7$&   $ 4.70$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 43$&   $  0.00$&   $ 3.500$&   $ 6.00$&   $ 7.4500$&   $ 8.34$&   $28.3$&   $ 6.43$\tabularnewline
   ~~96&   $ 21$&   $ -2.67$&   $ 2.000$&   $ 4.00$&   $ 4.8400$&   $ 7.33$&   $13.7$&   $ 4.58$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $429$&   $-12.00$&   $-3.000$&   $ 0.00$&   $ 0.0583$&   $ 3.00$&   $16.0$&   $ 4.38$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $491$&   $-15.00$&   $-3.000$&   $-0.33$&   $ 0.0434$&   $ 3.00$&   $54.0$&   $ 5.06$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $376$&   $-11.00$&   $-3.000$&   $ 0.00$&   $ 1.1000$&   $ 4.00$&   $21.0$&   $ 5.56$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $315$&   $-14.00$&   $-2.000$&   $ 1.00$&   $ 2.0400$&   $ 5.00$&   $49.0$&   $ 7.47$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $252$&   $-12.00$&   $-2.000$&   $ 1.00$&   $ 3.4800$&   $ 6.00$&   $55.0$&   $ 9.57$\tabularnewline
   ~~60&   $139$&   $ -7.00$&   $ 0.000$&   $ 3.00$&   $ 5.5000$&   $ 8.16$&   $71.0$&   $10.90$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $100$&   $ -5.00$&   $ 1.920$&   $ 4.50$&   $ 5.7600$&   $ 8.00$&   $37.0$&   $ 6.83$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 79$&   $ -3.33$&   $ 2.670$&   $ 5.67$&   $ 7.1900$&   $10.00$&   $24.7$&   $ 6.35$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
   ~~96&   $ 39$&   $ -3.00$&   $ 4.000$&   $ 7.67$&   $ 9.5900$&   $12.50$&   $38.7$&   $ 8.34$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  8$&   $  3.00$&   $ 4.920$&   $ 6.34$&   $ 8.2500$&   $ 9.08$&   $18.3$&   $ 5.78$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $127$&   $-12.00$&   $-1.500$&   $ 2.00$&   $ 2.3800$&   $ 6.50$&   $23.0$&   $ 5.62$\tabularnewline
   ~~12&   $118$&   $-13.00$&   $ 0.753$&   $ 4.00$&   $ 4.8900$&   $ 8.83$&   $27.0$&   $ 6.46$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 33$&   $ -5.00$&   $ 3.000$&   $ 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.410$&   $ 8.50$&   $ 8.5000$&   $ 9.59$&   $10.7$&   $ 3.07$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  1$&   $ 10.00$&   $10.000$&   $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.0$&   $ 0$&   $-0.0547$&   $ 1.00$&   $ 4$&   $1.40$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $262$&   $ -8$&   $-1.0$&   $ 0$&   $-0.2020$&   $ 1.00$&   $ 4$&   $1.60$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $266$&   $ -4$&   $-1.0$&   $ 0$&   $-0.1650$&   $ 1.00$&   $ 4$&   $1.49$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 45$&   $ -5$&   $-1.0$&   $ 0$&   $-0.3780$&   $ 1.00$&   $ 4$&   $1.81$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $161$&   $ -7$&   $-1.0$&   $ 0$&   $-0.2730$&   $ 1.00$&   $ 4$&   $1.69$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 53$&   $-10$&   $-1.0$&   $ 0$&   $-0.1890$&   $ 0.00$&   $ 4$&   $1.97$\tabularnewline
   ~~72&   $113$&   $ -8$&   $-1.0$&   $ 0$&   $-0.3720$&   $ 1.00$&   $ 4$&   $1.93$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 42$&   $ -7$&   $-3.0$&   $ 0$&   $-1.1700$&   $ 0.00$&   $ 2$&   $2.00$\tabularnewline
   ~~96&   $ 22$&   $-11$&   $-1.0$&   $ 0$&   $-0.5000$&   $ 0.75$&   $ 4$&   $2.76$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $430$&   $-10$&   $-2.0$&   $ 0$&   $-0.4490$&   $ 1.00$&   $ 5$&   $1.88$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $494$&   $-11$&   $-2.0$&   $ 0$&   $-0.5020$&   $ 1.00$&   $ 6$&   $2.05$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $382$&   $-11$&   $-2.0$&   $ 0$&   $-0.9210$&   $ 1.00$&   $ 6$&   $2.45$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $316$&   $-23$&   $-2.0$&   $-1$&   $-1.2400$&   $ 1.00$&   $ 6$&   $3.33$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $256$&   $-20$&   $-3.0$&   $-1$&   $-1.6000$&   $ 1.00$&   $ 5$&   $3.82$\tabularnewline
   ~~60&   $143$&   $-30$&   $-3.0$&   $-1$&   $-1.9900$&   $ 0.00$&   $ 4$&   $4.64$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $104$&   $-24$&   $-2.0$&   $ 0$&   $-1.5500$&   $ 1.00$&   $ 5$&   $4.24$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 85$&   $-20$&   $-3.0$&   $-1$&   $-1.7800$&   $ 1.00$&   $ 6$&   $4.44$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
   ~~96&   $ 39$&   $-12$&   $-2.5$&   $-1$&   $-1.8500$&   $ 1.00$&   $ 5$&   $3.96$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  9$&   $ -4$&   $-1.0$&   $ 0$&   $-0.5560$&   $ 1.00$&   $ 2$&   $1.94$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $131$&   $-16$&   $-3.0$&   $-1$&   $-1.1800$&   $ 1.00$&   $ 8$&   $3.07$\tabularnewline
   ~~12&   $122$&   $-19$&   $-4.0$&   $-2$&   $-2.3800$&   $ 0.00$&   $ 5$&   $4.02$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 34$&   $-12$&   $-6.0$&   $-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.0$&   $-2$&   $-2.0000$&   $-1.00$&   $ 0$&   $2.83$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  2$&   $ -5$&   $-4.5$&   $-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&   $256$&   $-1.0$&   $ 0.00$&   $ 0.00$&   $ 0.1310$&   $ 0.00$&   $ 4.0$&   $0.500$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $265$&   $-1.0$&   $ 0.00$&   $ 0.00$&   $ 0.1790$&   $ 0.00$&   $ 5.0$&   $0.624$\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&   $119$&   $-0.5$&   $ 0.00$&   $ 0.00$&   $ 0.4450$&   $ 0.50$&   $10.0$&   $1.260$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 48$&   $-0.5$&   $ 0.00$&   $ 0.00$&   $ 0.6250$&   $ 0.50$&   $ 8.5$&   $1.470$\tabularnewline
   ~~96&   $ 23$&   $ 0.0$&   $ 0.00$&   $ 0.00$&   $ 0.2170$&   $ 0.25$&   $ 1.5$&   $0.448$\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&   $485$&   $-3.0$&   $-0.50$&   $ 0.00$&   $ 0.2070$&   $ 0.50$&   $ 5.5$&   $1.020$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $387$&   $-3.0$&   $-0.50$&   $ 0.00$&   $ 0.5850$&   $ 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&   $ 88$&   $-3.5$&   $-0.50$&   $ 0.25$&   $ 1.5500$&   $ 2.00$&   $15.0$&   $3.670$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
   ~~96&   $ 44$&   $-2.5$&   $-0.50$&   $ 0.00$&   $ 1.7300$&   $ 1.62$&   $14.0$&   $4.060$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  9$&   $-2.5$&   $-1.00$&   $-0.50$&   $-0.2220$&   $ 1.00$&   $ 1.5$&   $1.390$\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&   $126$&   $-2.0$&   $ 0.50$&   $ 1.00$&   $ 1.8600$&   $ 2.50$&   $11.5$&   $2.480$\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.0000$&   $ 0.0303$&   $ 0.250$&   $ 1.6200$&   $0.431$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $261$&   $-1.380$&   $-0.250$&   $ 0.0000$&   $ 0.0198$&   $ 0.250$&   $ 1.6200$&   $0.428$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $267$&   $-1.380$&   $-0.250$&   $ 0.0000$&   $ 0.0518$&   $ 0.375$&   $ 1.7500$&   $0.452$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 44$&   $-0.589$&   $-0.250$&   $ 0.0000$&   $-0.0361$&   $ 0.125$&   $ 0.7500$&   $0.313$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $163$&   $-1.380$&   $-0.250$&   $ 0.0000$&   $ 0.0563$&   $ 0.375$&   $ 2.1200$&   $0.495$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 57$&   $-1.430$&   $ 0.000$&   $ 0.1250$&   $ 0.1470$&   $ 0.375$&   $ 1.3800$&   $0.495$\tabularnewline
   ~~72&   $116$&   $-1.000$&   $-0.125$&   $ 0.1250$&   $ 0.1850$&   $ 0.500$&   $ 1.6200$&   $0.529$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 49$&   $-0.839$&   $ 0.000$&   $ 0.2500$&   $ 0.2510$&   $ 0.625$&   $ 1.8200$&   $0.557$\tabularnewline
   ~~96&   $ 22$&   $-0.500$&   $-0.125$&   $ 0.0625$&   $ 0.1990$&   $ 0.500$&   $ 1.1200$&   $0.417$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $428$&   $-2.120$&   $-0.375$&   $-0.1250$&   $-0.1040$&   $ 0.250$&   $ 1.6200$&   $0.539$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $491$&   $-2.250$&   $-0.375$&   $ 0.0000$&   $-0.0612$&   $ 0.250$&   $ 1.6200$&   $0.604$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $383$&   $-2.880$&   $-0.375$&   $ 0.0000$&   $-0.0280$&   $ 0.268$&   $ 2.5000$&   $0.644$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $318$&   $-2.380$&   $-0.375$&   $-0.1250$&   $-0.0443$&   $ 0.375$&   $ 2.5000$&   $0.637$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $250$&   $-2.500$&   $-0.500$&   $-0.1250$&   $-0.0975$&   $ 0.312$&   $ 2.3600$&   $0.725$\tabularnewline
   ~~60&   $141$&   $-1.500$&   $-0.375$&   $ 0.0000$&   $ 0.0201$&   $ 0.500$&   $ 1.7500$&   $0.596$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $103$&   $-2.120$&   $-0.375$&   $ 0.0000$&   $ 0.0223$&   $ 0.500$&   $ 1.7500$&   $0.742$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 87$&   $-2.380$&   $-0.375$&   $-0.1250$&   $-0.0565$&   $ 0.250$&   $ 2.0000$&   $0.671$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
   ~~96&   $ 43$&   $-2.500$&   $-0.500$&   $-0.2500$&   $-0.1450$&   $ 0.125$&   $ 2.2100$&   $0.800$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  9$&   $-0.750$&   $-0.375$&   $-0.1250$&   $ 0.0833$&   $ 0.375$&   $ 1.1200$&   $0.676$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $124$&   $-1.880$&   $-0.406$&   $ 0.0000$&   $-0.0592$&   $ 0.375$&   $ 1.7500$&   $0.725$\tabularnewline
   ~~12&   $108$&   $-2.000$&   $-0.375$&   $ 0.0000$&   $-0.1020$&   $ 0.375$&   $ 2.0000$&   $0.745$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 26$&   $-1.750$&   $-0.594$&   $-0.2680$&   $-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.4550$&   $-0.4550$&   $-0.246$&   $-0.0357$&   $0.593$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  1$&   $-0.875$&   $-0.875$&   $-0.8750$&   $-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&   $254$&   $-1.500$&   $-0.1250$&   $0.0000$&   $0.04150$&   $0.250$&   $2.12$&   $0.412$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $256$&   $-1.500$&   $-0.1250$&   $0.0000$&   $0.05100$&   $0.250$&   $2.12$&   $0.447$\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&   $117$&   $-1.500$&   $-0.1250$&   $0.0000$&   $0.20900$&   $0.500$&   $2.25$&   $0.634$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 48$&   $-2.380$&   $ 0.0000$&   $0.1250$&   $0.35200$&   $0.625$&   $2.75$&   $0.850$\tabularnewline
   ~~96&   $ 23$&   $-0.625$&   $-0.1250$&   $0.0000$&   $0.12300$&   $0.250$&   $2.00$&   $0.567$\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&   $483$&   $-2.750$&   $-0.2500$&   $0.0000$&   $0.01920$&   $0.286$&   $2.25$&   $0.582$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $386$&   $-1.880$&   $-0.2500$&   $0.0000$&   $0.10700$&   $0.500$&   $2.12$&   $0.648$\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&   $ 90$&   $-1.250$&   $-0.2500$&   $0.1250$&   $0.30600$&   $0.875$&   $2.50$&   $0.840$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
   ~~96&   $ 46$&   $-1.250$&   $-0.1250$&   $0.2950$&   $0.32300$&   $0.719$&   $2.38$&   $0.771$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  8$&   $-0.625$&   $-0.2810$&   $0.0625$&   $0.02460$&   $0.205$&   $0.75$&   $0.444$\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&   $125$&   $-1.620$&   $ 0.0000$&   $0.1250$&   $0.21700$&   $0.500$&   $2.12$&   $0.513$\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.10300$&   $ 0.00000$&   $ 0.01780$&   $ 0.1280$&   $ 0.8210$&   $0.253$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $261$&   $-0.751$&   $-0.10300$&   $ 0.00000$&   $ 0.02400$&   $ 0.1280$&   $ 1.4600$&   $0.248$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $267$&   $-0.985$&   $-0.10300$&   $ 0.00000$&   $ 0.04160$&   $ 0.1790$&   $ 1.1800$&   $0.300$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $ 44$&   $-0.526$&   $-0.10300$&   $-0.02560$&   $ 0.00677$&   $ 0.1030$&   $ 0.7440$&   $0.225$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $164$&   $-0.985$&   $-0.10700$&   $ 0.04180$&   $ 0.04310$&   $ 0.1670$&   $ 1.7200$&   $0.304$\tabularnewline
   ~~54&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $ 57$&   $-0.725$&   $-0.04660$&   $ 0.13300$&   $ 0.11100$&   $ 0.2210$&   $ 0.7270$&   $0.314$\tabularnewline
   ~~72&   $116$&   $-1.010$&   $-0.02920$&   $ 0.10900$&   $ 0.14100$&   $ 0.2720$&   $ 1.3000$&   $0.329$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 49$&   $-0.536$&   $-0.02090$&   $ 0.09080$&   $ 0.16400$&   $ 0.2960$&   $ 1.1600$&   $0.330$\tabularnewline
   ~~96&   $ 22$&   $-0.203$&   $ 0.00877$&   $ 0.08270$&   $ 0.08700$&   $ 0.1910$&   $ 0.4540$&   $0.166$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~6&   $430$&   $-2.080$&   $-0.21900$&   $-0.02630$&   $-0.03500$&   $ 0.1500$&   $ 1.5900$&   $0.376$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $493$&   $-1.690$&   $-0.23100$&   $ 0.00000$&   $-0.01240$&   $ 0.1880$&   $ 1.6700$&   $0.399$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $384$&   $-1.690$&   $-0.20500$&   $ 0.00000$&   $ 0.02860$&   $ 0.2310$&   $ 1.7400$&   $0.439$\tabularnewline
   ~~30&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $314$&   $-1.730$&   $-0.20500$&   $ 0.02220$&   $ 0.04000$&   $ 0.2920$&   $ 1.9900$&   $0.453$\tabularnewline
   ~~42&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $249$&   $-2.310$&   $-0.24700$&   $ 0.02560$&   $ 0.03160$&   $ 0.3080$&   $ 2.7100$&   $0.529$\tabularnewline
   ~~60&   $139$&   $-1.210$&   $-0.14100$&   $ 0.05130$&   $ 0.07250$&   $ 0.3260$&   $ 1.1300$&   $0.438$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~72&   $103$&   $-1.130$&   $-0.16500$&   $ 0.05400$&   $ 0.09530$&   $ 0.3850$&   $ 1.4800$&   $0.467$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 87$&   $-1.070$&   $-0.19400$&   $ 0.01210$&   $ 0.04040$&   $ 0.2140$&   $ 1.6000$&   $0.478$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
   ~~96&   $ 43$&   $-1.090$&   $-0.29700$&   $ 0.00270$&   $ 0.03500$&   $ 0.2540$&   $ 2.5900$&   $0.583$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  9$&   $-0.263$&   $-0.10900$&   $ 0.00925$&   $ 0.04760$&   $ 0.1130$&   $ 0.5400$&   $0.248$\tabularnewline
   ~~3&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $120$&   $-1.690$&   $-0.29800$&   $ 0.02320$&   $-0.01190$&   $ 0.2840$&   $ 1.5100$&   $0.554$\tabularnewline
   ~~12&   $105$&   $-1.310$&   $-0.23100$&   $-0.00962$&   $ 0.02390$&   $ 0.2890$&   $ 2.1000$&   $0.547$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
   ~~24&   $ 26$&   $-1.430$&   $-0.28400$&   $ 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.39400$&   $-0.24500$&   $-0.24500$&   $-0.0957$&   $ 0.0535$&   $0.422$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $  1$&   $-0.191$&   $-0.19100$&   $-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&   $254$&   $-1.210$&   $-0.0347$&   $0.0000$&   $0.03990$&   $0.0979$&   $1.620$&   $0.260$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $256$&   $-1.130$&   $-0.0530$&   $0.0000$&   $0.04900$&   $0.1030$&   $2.000$&   $0.302$\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&   $116$&   $-0.994$&   $-0.0513$&   $0.0423$&   $0.16700$&   $0.2700$&   $2.520$&   $0.471$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $ 48$&   $-1.540$&   $ 0.0000$&   $0.1050$&   $0.28600$&   $0.2700$&   $2.950$&   $0.715$\tabularnewline
   ~~96&   $ 23$&   $-0.564$&   $-0.0812$&   $0.0000$&   $0.02630$&   $0.0979$&   $1.210$&   $0.330$\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&   $483$&   $-2.040$&   $-0.1280$&   $0.0432$&   $0.08330$&   $0.2820$&   $2.090$&   $0.456$\tabularnewline
   ~~18&   $  0$&   $$&   $$&   $$&   $$&   $$&   $$&   $$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $386$&   $-1.410$&   $-0.1050$&   $0.1040$&   $0.18800$&   $0.3960$&   $2.410$&   $0.532$\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&   $ 90$&   $-1.340$&   $-0.1100$&   $0.2070$&   $0.42000$&   $0.9090$&   $2.400$&   $0.810$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
   ~~96&   $ 46$&   $-1.080$&   $-0.0361$&   $0.1310$&   $0.47400$&   $0.8640$&   $2.510$&   $0.835$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $  8$&   $-0.355$&   $ 0.0617$&   $0.1100$&   $0.22200$&   $0.3060$&   $0.987$&   $0.413$\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&   $126$&   $-1.460$&   $ 0.1040$&   $0.3160$&   $0.34000$&   $0.5780$&   $1.570$&   $0.468$\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)