## 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(ggplot2)
library(Hmisc)
library(gridExtra)
library(RColorBrewer)
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 # Subsetting on RID < 2000 excludes ADNIGO/2 subjects summary(DX.bl ~ AGE + AGEC + PTGENDER + PTEDUCAT + PTMARRY + PTETHCAT + PTRACCAT + CDRSB + ADAS13 + MMSE, data = dd, subset = VISCODE %in% c("bl", "blwd"), method = "reverse", test = TRUE, overall = TRUE) Descriptive Statistics by Baseline Dx  N CN (N=534) SMC (N=325) EMCI (N=411) LMCI (N=672) AD (N=407) Combined (N=2349) Test Statistic Age [Years] 2374  69.8/73.1/77.5  66.4/69.8/75.6  65.7/71.5/76.4  69.1/74.3/79.2  70.3/75.3/80.3  68.0/73.0/78.2 F=23.7 d.f.=4,2340 P<0.001 Age : (39,49] 2374  0% ( 0)  0% ( 0)  0% ( 0)  0% ( 0)  0% ( 0)  0% ( 0) Chi-square=165 d.f.=16 P<0.001 (49,59]  2% ( 9)  3% ( 9)  5% ( 19)  3% ( 21)  4% ( 17)  3% ( 75) (59,69]  20% ( 105)  42% ( 137)  36% ( 146)  21% ( 143)  16% ( 67)  26% ( 598) (69,79]  61% ( 323)  44% ( 142)  44% ( 179)  49% ( 330)  47% ( 191)  50% (1165) (79,89]  18% ( 95)  10% ( 33)  16% ( 65)  26% ( 172)  31% ( 125)  21% ( 490) (89,99]  0% ( 1)  1% ( 4)  0% ( 1)  1% ( 4)  2% ( 7)  1% ( 17) (99,109]  0% ( 0)  0% ( 0)  0% ( 0)  0% ( 0)  0% ( 0)  0% ( 0) Sex : Male 2378  47% ( 252)  39% ( 126)  55% ( 227)  61% ( 411)  57% ( 230)  53% (1246) Chi-square=54.5 d.f.=4 P<0.001 Education 2378  14/16/18  16/17/18  14/16/18  14/16/18  13/16/17  14/16/18 F=16.7 d.f.=4,2344 P<0.001 Marital : Divorced 2378  11% ( 57)  14% ( 44)  11% ( 45)  8% ( 55)  3% ( 14)  9% ( 215) Chi-square=66.5 d.f.=16 P<0.001 Married  69% ( 369)  71% ( 231)  77% ( 318)  78% ( 524)  84% ( 343)  76% (1785) Never married  5% ( 29)  5% ( 16)  4% ( 17)  2% ( 14)  3% ( 11)  4% ( 87) Unknown  0% ( 1)  0% ( 1)  1% ( 4)  0% ( 2)  0% ( 0)  0% ( 8) Widowed  15% ( 78)  10% ( 33)  7% ( 27)  11% ( 77)  10% ( 39)  11% ( 254) Ethnicity : Unknown 2378  0% ( 2)  1% ( 2)  0% ( 2)  0% ( 3)  1% ( 3)  1% ( 12) Chi-square=8.89 d.f.=8 P=0.352 Not Hisp/Latino  95% ( 506)  93% ( 301)  94% ( 387)  96% ( 647)  96% ( 390)  95% (2231) Hisp/Latino  5% ( 26)  7% ( 22)  5% ( 22)  3% ( 22)  3% ( 14)  5% ( 106) Race : Am Indian/Alaskan 2378  0% ( 2)  0% ( 0)  0% ( 2)  0% ( 1)  0% ( 0)  0% ( 5) Chi-square=58.5 d.f.=24 P<0.001 Asian  2% ( 11)  4% ( 14)  1% ( 6)  2% ( 12)  2% ( 10)  2% ( 53) Hawaiian/Other PI  0% ( 0)  0% ( 0)  0% ( 1)  0% ( 1)  0% ( 0)  0% ( 2) Black  8% ( 42)  10% ( 31)  3% ( 14)  5% ( 34)  5% ( 20)  6% ( 141) White  89% ( 476)  82% ( 267)  91% ( 376)  92% ( 618)  92% ( 373)  90% (2110) More than one  0% ( 2)  3% ( 10)  2% ( 8)  0% ( 3)  1% ( 4)  1% ( 27) Unknown  0% ( 1)  1% ( 3)  1% ( 4)  0% ( 3)  0% ( 0)  0% ( 11) CDR-SB 2378  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=3009 d.f.=4,2344 P<0.001 ADAS 13 2353  5.67/ 9.00/12.00  5.33/ 8.00/11.67  9.00/12.00/16.00  13.67/18.33/23.00  24.00/29.33/35.00  9.00/14.00/21.67 F=807 d.f.=4,2322 P<0.001 MMSE 2377  29/29/30  29/29/30  28/29/29  26/27/29  21/23/25  26/28/29 F=614 d.f.=4,2344 P<0.001 ## Demographic Summaries by Diagnosis ### Baseline # Subsetting on RID > 2000 excludes ADNI1 subjects summary(DX.bl ~ AGE + AGEC + PTGENDER + PTEDUCAT + PTMARRY + PTETHCAT + PTRACCAT + CDRSB + ADAS13 + MMSE, data = dd, subset = VISCODE == "bl", method = "reverse", test = TRUE, overall = TRUE) Descriptive Statistics by Baseline Dx  N CN (N=527) SMC (N=322) EMCI (N=400) LMCI (N=660) AD (N=397) Combined (N=2306) Test Statistic Age [Years] 2331  69.8/73.1/77.5  66.4/69.8/75.7  66.0/71.5/76.4  69.1/74.3/79.2  70.3/75.3/80.3  68.0/73.0/78.1 F=22.8 d.f.=4,2297 P<0.001 Age : (39,49] 2331  0% ( 0)  0% ( 0)  0% ( 0)  0% ( 0)  0% ( 0)  0% ( 0) Chi-square=160 d.f.=16 P<0.001 (49,59]  2% ( 9)  3% ( 9)  5% ( 18)  3% ( 20)  4% ( 17)  3% ( 73) (59,69]  20% ( 103)  42% ( 136)  35% ( 141)  21% ( 141)  16% ( 65)  25% ( 586) (69,79]  61% ( 319)  43% ( 140)  44% ( 176)  49% ( 325)  47% ( 187)  50% (1147) (79,89]  18% ( 94)  10% ( 33)  16% ( 63)  26% ( 168)  30% ( 121)  21% ( 479) (89,99]  0% ( 1)  1% ( 4)  0% ( 1)  1% ( 4)  2% ( 7)  1% ( 17) (99,109]  0% ( 0)  0% ( 0)  0% ( 0)  0% ( 0)  0% ( 0)  0% ( 0) Sex : Male 2335  47% ( 250)  39% ( 124)  56% ( 223)  61% ( 405)  57% ( 225)  53% (1227) Chi-square=55.6 d.f.=4 P<0.001 Education 2335  14/16/18  16/17/18  14/16/18  14/16/18  13/16/17  14/16/18 F=16.3 d.f.=4,2301 P<0.001 Marital : Divorced 2335  11% ( 56)  14% ( 44)  11% ( 43)  8% ( 55)  4% ( 14)  9% ( 212) Chi-square=65.3 d.f.=16 P<0.001 Married  69% ( 366)  71% ( 230)  78% ( 312)  78% ( 514)  84% ( 334)  76% (1756) Never married  5% ( 28)  5% ( 16)  4% ( 16)  2% ( 13)  3% ( 11)  4% ( 84) Unknown  0% ( 1)  0% ( 1)  1% ( 4)  0% ( 2)  0% ( 0)  0% ( 8) Widowed  14% ( 76)  10% ( 31)  6% ( 25)  12% ( 76)  10% ( 38)  11% ( 246) Ethnicity : Unknown 2335  0% ( 2)  1% ( 2)  0% ( 2)  0% ( 3)  1% ( 3)  1% ( 12) Chi-square=9.69 d.f.=8 P=0.288 Not Hisp/Latino  95% ( 499)  93% ( 298)  94% ( 377)  96% ( 636)  96% ( 381)  95% (2191) Hisp/Latino  5% ( 26)  7% ( 22)  5% ( 21)  3% ( 21)  3% ( 13)  4% ( 103) Race : Am Indian/Alaskan 2335  0% ( 2)  0% ( 0)  0% ( 2)  0% ( 1)  0% ( 0)  0% ( 5) Chi-square=58.6 d.f.=24 P<0.001 Asian  2% ( 11)  4% ( 14)  2% ( 6)  2% ( 12)  3% ( 10)  2% ( 53) Hawaiian/Other PI  0% ( 0)  0% ( 0)  0% ( 1)  0% ( 1)  0% ( 0)  0% ( 2) Black  8% ( 42)  10% ( 31)  3% ( 13)  5% ( 33)  5% ( 20)  6% ( 139) White  89% ( 469)  82% ( 264)  92% ( 367)  92% ( 607)  91% ( 363)  90% (2070) More than one  0% ( 2)  3% ( 10)  2% ( 7)  0% ( 3)  1% ( 4)  1% ( 26) Unknown  0% ( 1)  1% ( 3)  1% ( 4)  0% ( 3)  0% ( 0)  0% ( 11) CDR-SB 2335  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=2982 d.f.=4,2301 P<0.001 ADAS 13 2314  5.67/ 9.00/12.00  5.33/ 8.00/11.67  9.00/12.00/16.00  13.67/18.33/23.33  24.00/29.33/34.67  8.67/14.00/21.67 F=786 d.f.=4,2283 P<0.001 MMSE 2334  29/29/30  29/29/30  28/29/29  26/27/29  21/23/25  26/28/29 F=596 d.f.=4,2301 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])
}


###  MMSE

###  CDR-SB

###  Pt ECog - Mem

###  Pt ECog - Total

###  SP ECog - Total 

## Longitudinal plots


\clearpage
\subsection{ ADAS 13 change from baseline}

%latex.default(tab[, -(1:2)], file = "", rowlabel = "Month", rowname = tab[,     1], rgroup = unique(tab[, 2]), n.rgroup = table(tab[, 2]),     digits = 3, where = "h!", rownamesTexCmd = rcmd, label = paste("long",         oc, sep = ""))%
\begin{table}[h!]
\begin{center}
\begin{tabular}{lrrrrrrrr}
\hline\hline
\multicolumn{1}{l}{Month}&\multicolumn{1}{c}{N}&\multicolumn{1}{c}{Min.}&\multicolumn{1}{c}{Q.1}&\multicolumn{1}{c}{Median}&\multicolumn{1}{c}{Mean}&\multicolumn{1}{c}{Q.3}&\multicolumn{1}{c}{Max.}&\multicolumn{1}{c}{SD}\tabularnewline
\hline
{\bfseries CN}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline ~~6& 270& -11.00& -2.000&  0.000& -0.3850&  2.00& 11.00&  3.43\tabularnewline \rowcolor[gray]{.9} ~~12& 262& -11.00& -3.000& -0.340& -0.5540&  2.00& 11.00&  3.71\tabularnewline ~~18&  4&  2.67&  4.170&  5.170&  5.0000&  6.00&  7.00&  1.82\tabularnewline \rowcolor[gray]{.9} ~~24& 363& -10.00& -2.670&  0.000& -0.3530&  2.00& 13.30&  3.53\tabularnewline ~~30&  27&  -4.34& -0.330&  0.330&  0.5810&  1.34&  7.00&  2.45\tabularnewline \rowcolor[gray]{.9} ~~36&  56&  -9.33& -2.000&  0.000&  0.5120&  2.25& 26.00&  5.19\tabularnewline ~~42&  7&  -6.67& -4.340&  1.000&  0.6190&  5.84&  7.00&  5.75\tabularnewline \rowcolor[gray]{.9} ~~48& 163&  -8.00& -3.000&  0.000&  0.1920&  3.00& 14.00&  4.06\tabularnewline ~~54&  20&  -8.33& -2.660&  0.670&  0.2010&  2.75&  8.00&  4.22\tabularnewline \rowcolor[gray]{.9} ~~60&  28&  -6.33& -1.420&  0.000&  2.1800&  4.50& 17.00&  5.94\tabularnewline ~~66&  50&  -5.67& -2.580& -0.670& -0.2940&  1.58&  9.00&  3.42\tabularnewline \rowcolor[gray]{.9} ~~72&  62&  -6.67& -1.920&  0.500&  1.3700&  3.33& 19.70&  5.23\tabularnewline ~~78&  43&  -6.33& -2.000&  1.000&  1.1900&  3.66& 14.70&  4.56\tabularnewline \rowcolor[gray]{.9} ~~84&  21&  -7.33& -0.330&  1.670&  4.8300&  5.33& 27.30&  8.66\tabularnewline ~~90&  38&  -6.67& -2.330&  1.670&  1.5200&  4.83& 11.00&  4.75\tabularnewline \rowcolor[gray]{.9} ~~96&  37&  -9.33& -1.670&  2.330&  2.3600&  5.00& 19.00&  6.26\tabularnewline ~~102&  15&  -3.00&  0.000&  2.000&  2.6200&  6.33&  8.33&  3.86\tabularnewline \rowcolor[gray]{.9} ~~108&  5&  -0.67&  1.330&  2.670&  3.0000&  3.67&  8.00&  3.23\tabularnewline ~~114&  9&  -5.00& -2.330& -1.330&  1.7400&  3.33& 19.00&  7.26\tabularnewline \rowcolor[gray]{.9} ~~120&  9&  -6.00& -2.000& -1.000&  1.7400&  3.67& 16.00&  6.98\tabularnewline ~~126&  3&  1.67&  3.840&  6.000&  7.1100&  9.84& 13.70&  6.08\tabularnewline \hline {\bfseries MCI}&&&&&&&&\tabularnewline \rowcolor[gray]{.9} ~~3&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
~~6&   $429$&   $-12.00$&   $-3.000$&   $0.000$&   $0.0583$&   $3.00$&   $16.00$&   $4.38$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $540$&   $-15.00$&   $-3.000$&   $0.000$&   $0.1490$&   $3.00$&   $54.00$&   $4.99$\tabularnewline
~~18&   $4$&   $-1.66$&   $-0.918$&   $1.830$&   $5.3300$&   $8.08$&   $19.30$&   $9.69$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $422$&   $-11.00$&   $-2.750$&   $0.000$&   $1.1500$&   $4.00$&   $21.00$&   $5.48$\tabularnewline
~~30&   $9$&   $-4.00$&   $0.670$&   $6.000$&   $5.8500$&   $9.67$&   $20.00$&   $7.27$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $346$&   $-14.00$&   $-2.000$&   $1.000$&   $2.1500$&   $5.00$&   $49.00$&   $7.35$\tabularnewline
~~42&   $3$&   $-8.00$&   $-4.660$&   $-1.330$&   $-2.3300$&   $0.50$&   $2.33$&   $5.24$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $250$&   $-12.00$&   $-2.000$&   $1.000$&   $3.4500$&   $6.00$&   $55.00$&   $9.59$\tabularnewline
~~54&   $6$&   $-3.67$&   $1.330$&   $2.660$&   $5.0600$&   $9.00$&   $16.70$&   $7.37$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $122$&   $-7.00$&   $-1.500$&   $2.000$&   $4.5900$&   $6.25$&   $71.00$&   $11.20$\tabularnewline
~~66&   $31$&   $-8.00$&   $-3.160$&   $1.330$&   $4.0400$&   $7.67$&   $30.00$&   $10.00$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $64$&   $-7.67$&   $-1.670$&   $1.000$&   $1.9500$&   $4.41$&   $21.00$&   $5.87$\tabularnewline
~~78&   $37$&   $-7.00$&   $-1.670$&   $0.330$&   $2.8200$&   $4.00$&   $38.70$&   $8.61$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $52$&   $-5.33$&   $-1.330$&   $1.500$&   $3.8600$&   $6.84$&   $26.70$&   $7.50$\tabularnewline
~~90&   $41$&   $-7.67$&   $-2.000$&   $2.000$&   $2.5200$&   $5.67$&   $20.00$&   $7.20$\tabularnewline
\rowcolor[gray]{.9}   ~~96&   $35$&   $-10.00$&   $-1.670$&   $1.330$&   $5.0400$&   $6.83$&   $39.70$&   $10.60$\tabularnewline
~~102&   $33$&   $-8.00$&   $-4.000$&   $1.330$&   $1.8400$&   $4.33$&   $21.00$&   $6.42$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $24$&   $-9.67$&   $-2.750$&   $-0.665$&   $2.3600$&   $2.83$&   $26.00$&   $9.31$\tabularnewline
~~114&   $14$&   $-7.33$&   $-1.580$&   $0.670$&   $1.5500$&   $3.75$&   $14.00$&   $5.57$\tabularnewline
\rowcolor[gray]{.9}   ~~120&   $13$&   $-10.00$&   $-3.330$&   $-0.330$&   $1.1300$&   $2.67$&   $24.00$&   $8.36$\tabularnewline
~~126&   $5$&   $-10.70$&   $-1.670$&   $8.000$&   $7.8000$&   $16.30$&   $27.00$&   $14.80$\tabularnewline
\rowcolor[gray]{.9}   ~~132&   $4$&   $-6.00$&   $0.248$&   $3.830$&   $5.6600$&   $9.25$&   $21.00$&   $11.30$\tabularnewline
~~3&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~6& 127& -12.00& -1.500&  2.000&  2.3800&  6.50& 23.00&  5.62\tabularnewline ~~12& 137& -13.00&  0.000&  3.670&  4.5900&  8.00& 27.00&  6.44\tabularnewline \rowcolor[gray]{.9} ~~18&  2&  -0.33&  5.090& 10.500& 10.5000& 15.90& 21.30& 15.30\tabularnewline ~~24&  46&  -5.33&  3.000&  7.500&  9.7000& 13.00& 36.00& 10.20\tabularnewline \rowcolor[gray]{.9} ~~30&  3&  -1.67&  2.000&  5.670&  5.5600&  9.17& 12.70&  7.17\tabularnewline ~~36&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
\rowcolor[gray]{.9}   ~~42&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline ~~48&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
\rowcolor[gray]{.9}   ~~54&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline ~~60&  1&  4.33&  4.330&  4.330&  4.3300&  4.33&  4.33&$$\tabularnewline
\rowcolor[gray]{.9}   ~~66&   $1$&   $6.67$&   $6.670$&   $6.670$&   $6.6700$&   $6.67$&   $6.67$&   $$\tabularnewline ~~72&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
\rowcolor[gray]{.9}   ~~78&   $1$&   $9.00$&   $9.000$&   $9.000$&   $9.0000$&   $9.00$&   $9.00$&   $$\tabularnewline ~~84&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
\rowcolor[gray]{.9}   ~~90&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline ~~96&  1&  11.00& 11.000& 11.000& 11.0000& 11.00& 11.00&$$\tabularnewline
\rowcolor[gray]{.9}   ~~102&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \hline \end{tabular}\end{center} \end{table}  \clearpage \subsection{ MMSE change from baseline} %latex.default(tab[, -(1:2)], file = "", rowlabel = "Month", rowname = tab[, 1], rgroup = unique(tab[, 2]), n.rgroup = table(tab[, 2]), digits = 3, where = "h!", rownamesTexCmd = rcmd, label = paste("long", oc, sep = ""))% \begin{table}[h!] \begin{center} \begin{tabular}{lrrrrrrrr} \hline\hline \multicolumn{1}{l}{Month}&\multicolumn{1}{c}{N}&\multicolumn{1}{c}{Min.}&\multicolumn{1}{c}{Q.1}&\multicolumn{1}{c}{Median}&\multicolumn{1}{c}{Mean}&\multicolumn{1}{c}{Q.3}&\multicolumn{1}{c}{Max.}&\multicolumn{1}{c}{SD}\tabularnewline \hline {\bfseries CN}&&&&&&&&\tabularnewline \rowcolor[gray]{.9} ~~3&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
~~6&   $274$&   $-4$&   $-1.00$&   $0.0$&   $-0.0547$&   $1.00$&   $4$&   $1.400$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $265$&   $-8$&   $-1.00$&   $0.0$&   $-0.2190$&   $1.00$&   $4$&   $1.580$\tabularnewline
~~18&   $4$&   $-2$&   $-0.50$&   $0.5$&   $0.5000$&   $1.50$&   $3$&   $2.080$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $370$&   $-24$&   $-1.00$&   $0.0$&   $-0.2190$&   $1.00$&   $4$&   $1.890$\tabularnewline
~~30&   $28$&   $-3$&   $-1.00$&   $0.0$&   $-0.2140$&   $1.00$&   $2$&   $1.450$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $59$&   $-9$&   $-1.00$&   $0.0$&   $-0.6270$&   $0.00$&   $4$&   $1.990$\tabularnewline
~~42&   $7$&   $0$&   $0.00$&   $0.0$&   $0.5710$&   $1.00$&   $2$&   $0.787$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $163$&   $-13$&   $-1.00$&   $0.0$&   $-0.3370$&   $1.00$&   $4$&   $1.960$\tabularnewline
~~54&   $19$&   $-2$&   $-0.50$&   $0.0$&   $0.1580$&   $1.00$&   $3$&   $1.260$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $29$&   $-10$&   $-1.00$&   $0.0$&   $-0.6210$&   $0.00$&   $3$&   $2.350$\tabularnewline
~~66&   $50$&   $-6$&   $-1.00$&   $0.0$&   $-0.1800$&   $1.00$&   $4$&   $1.860$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $60$&   $-5$&   $-1.00$&   $0.0$&   $-0.3500$&   $0.25$&   $4$&   $1.680$\tabularnewline
~~78&   $43$&   $-8$&   $-1.00$&   $0.0$&   $-0.5120$&   $0.00$&   $3$&   $1.840$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $20$&   $-7$&   $-3.00$&   $0.0$&   $-1.1500$&   $0.00$&   $3$&   $2.620$\tabularnewline
~~90&   $39$&   $-4$&   $-1.50$&   $0.0$&   $-0.5900$&   $0.50$&   $4$&   $1.650$\tabularnewline
\rowcolor[gray]{.9}   ~~96&   $38$&   $-10$&   $-2.00$&   $0.0$&   $-0.8950$&   $0.00$&   $4$&   $2.280$\tabularnewline
~~102&   $16$&   $-5$&   $-1.25$&   $0.0$&   $-0.5000$&   $0.00$&   $3$&   $1.750$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $6$&   $-3$&   $-1.50$&   $0.0$&   $-0.5000$&   $0.00$&   $2$&   $1.760$\tabularnewline
~~114&   $10$&   $-11$&   $-2.00$&   $-1.0$&   $-2.1000$&   $0.00$&   $1$&   $3.540$\tabularnewline
\rowcolor[gray]{.9}   ~~120&   $8$&   $-6$&   $-2.00$&   $0.0$&   $-1.1200$&   $0.00$&   $3$&   $2.950$\tabularnewline
~~126&   $3$&   $-1$&   $-1.00$&   $-1.0$&   $-0.6670$&   $-0.50$&   $0$&   $0.577$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline ~~6& 430& -10&  -2.00&  0.0&  -0.4490&  1.00&  5& 1.880\tabularnewline \rowcolor[gray]{.9} ~~12& 543& -11&  -2.00&  0.0&  -0.5140&  1.00&  6& 2.090\tabularnewline ~~18&  4& -10&  -4.00&  -1.0&  -2.7500&  0.25&  1& 4.990\tabularnewline \rowcolor[gray]{.9} ~~24& 429& -12&  -2.00&  0.0&  -0.8900&  1.00&  6& 2.460\tabularnewline ~~30&  9&  -7&  -6.00&  -2.0&  -2.7800& -1.00&  3& 3.460\tabularnewline \rowcolor[gray]{.9} ~~36& 347& -23&  -2.00&  -1.0&  -1.1900&  1.00&  6& 3.250\tabularnewline ~~42&  2&  0&  0.25&  0.5&  0.5000&  0.75&  1& 0.707\tabularnewline \rowcolor[gray]{.9} ~~48& 253& -20&  -3.00&  -1.0&  -1.6000&  1.00&  5& 3.830\tabularnewline ~~54&  6&  -5&  -5.00&  -3.0&  -2.5000& -0.25&  1& 2.810\tabularnewline \rowcolor[gray]{.9} ~~60& 125& -30&  -3.00&  -1.0&  -1.8700&  0.00&  5& 4.630\tabularnewline ~~66&  34& -15&  -3.00&  -1.0&  -2.3800&  1.00&  4& 5.070\tabularnewline \rowcolor[gray]{.9} ~~72&  63& -13&  -2.00&  0.0&  -1.1600&  0.00&  5& 2.920\tabularnewline ~~78&  40& -16&  -2.00&  -1.0&  -1.5800&  0.25&  4& 3.840\tabularnewline \rowcolor[gray]{.9} ~~84&  54& -17&  -3.00&  -1.0&  -1.7000&  1.00&  5& 4.230\tabularnewline ~~90&  44& -20&  -3.25&  -0.5&  -1.9800&  0.00&  6& 4.400\tabularnewline \rowcolor[gray]{.9} ~~96&  35& -12&  -2.50&  -1.0&  -1.7700&  0.50&  2& 3.590\tabularnewline ~~102&  34&  -9&  -2.00&  -1.0&  -0.9410&  0.75&  5& 2.600\tabularnewline \hline {\bfseries Dementia}&&&&&&&&\tabularnewline \rowcolor[gray]{.9} ~~108&  24& -10&  -2.25&  0.0&  -0.9580&  1.00&  2& 2.760\tabularnewline ~~114&  14&  -4&  -1.00&  -0.5&  -0.6430&  0.00&  4& 1.980\tabularnewline \rowcolor[gray]{.9} ~~120&  14&  -6&  -1.00&  0.0&  -0.4290&  1.00&  3& 2.530\tabularnewline ~~126&  5&  -9&  -4.00&  -4.0&  -4.0000& -2.00& -1& 3.080\tabularnewline \rowcolor[gray]{.9} ~~132&  4&  -6&  -2.25&  0.0&  -1.0000&  1.25&  2& 3.560\tabularnewline ~~3&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $131$&   $-16$&   $-3.00$&   $-1.0$&   $-1.1800$&   $1.00$&   $8$&   $3.070$\tabularnewline
~~12&   $141$&   $-16$&   $-4.00$&   $-2.0$&   $-2.2500$&   $0.00$&   $5$&   $3.690$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $3$&   $-19$&   $-14.50$&   $-10.0$&   $-10.7000$&   $-6.50$&   $-3$&   $8.020$\tabularnewline
~~24&   $48$&   $-14$&   $-6.00$&   $-4.0$&   $-4.1700$&   $-2.00$&   $3$&   $4.020$\tabularnewline
\rowcolor[gray]{.9}   ~~30&   $3$&   $-8$&   $-5.00$&   $-2.0$&   $-3.6700$&   $-1.50$&   $-1$&   $3.790$\tabularnewline
~~36&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~42&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
~~48&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~54&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
~~60&   $1$&   $0$&   $0.00$&   $0.0$&   $0.0000$&   $0.00$&   $0$&   $$\tabularnewline \rowcolor[gray]{.9} ~~66&  1&  -4&  -4.00&  -4.0&  -4.0000& -4.00& -4&$$\tabularnewline
~~72&   $1$&   $-3$&   $-3.00$&   $-3.0$&   $-3.0000$&   $-3.00$&   $-3$&   $$\tabularnewline \rowcolor[gray]{.9} ~~78&  1&  -5&  -5.00&  -5.0&  -5.0000& -5.00& -5&$$\tabularnewline
~~84&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~90&  1&  -5&  -5.00&  -5.0&  -5.0000& -5.00& -5&$$\tabularnewline
~~96&   $1$&   $-8$&   $-8.00$&   $-8.0$&   $-8.0000$&   $-8.00$&   $-8$&   $$\tabularnewline \rowcolor[gray]{.9} ~~102&  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.000&  0.00&  0.0879&  0.000&  2.5& 0.348\tabularnewline \rowcolor[gray]{.9} ~~12& 263& -1.0&  0.000&  0.00&  0.1250&  0.000&  4.0& 0.494\tabularnewline ~~18&  4&  0.0&  0.000&  0.00&  0.1250&  0.125&  0.5& 0.250\tabularnewline \rowcolor[gray]{.9} ~~24& 393& -1.0&  0.000&  0.00&  0.1510&  0.000&  5.0& 0.561\tabularnewline ~~30&  30& -0.5&  0.000&  0.00&  0.2330&  0.000&  3.5& 0.716\tabularnewline \rowcolor[gray]{.9} ~~36&  54& -0.5&  0.000&  0.00&  0.4810&  0.500&  5.0& 1.130\tabularnewline ~~42&  8&  0.0&  0.000&  0.00&  0.0000&  0.000&  0.0& 0.000\tabularnewline \rowcolor[gray]{.9} ~~48& 159& -0.5&  0.000&  0.00&  0.2140&  0.000&  5.0& 0.690\tabularnewline ~~54&  19& -0.5&  0.000&  0.00&  0.1840&  0.250&  1.5& 0.448\tabularnewline \rowcolor[gray]{.9} ~~60&  31& -0.5&  0.000&  0.00&  0.8230&  0.500& 11.0& 2.250\tabularnewline ~~66&  53& -0.5&  0.000&  0.00&  0.4060&  0.500&  5.5& 0.986\tabularnewline \rowcolor[gray]{.9} ~~72&  62&  0.0&  0.000&  0.00&  0.3230&  0.000&  4.5& 0.795\tabularnewline ~~78&  50& -0.5&  0.000&  0.00&  0.6200&  0.500& 10.0& 1.770\tabularnewline \rowcolor[gray]{.9} ~~84&  25& -0.5&  0.000&  0.00&  0.8200&  0.500&  8.5& 1.890\tabularnewline ~~90&  42&  0.0&  0.000&  0.00&  0.7140&  0.875& 12.0& 1.880\tabularnewline \rowcolor[gray]{.9} ~~96&  38& -0.5&  0.000&  0.00&  0.7890&  1.380&  4.0& 1.290\tabularnewline ~~102&  26&  0.0&  0.000&  0.00&  1.1000&  0.500& 15.5& 3.180\tabularnewline \rowcolor[gray]{.9} ~~108&  8&  0.0&  0.000&  0.50&  2.5600&  1.000& 17.5& 6.050\tabularnewline ~~114&  14&  0.0&  0.000&  0.00&  1.3200&  0.875&  9.0& 2.880\tabularnewline \rowcolor[gray]{.9} ~~120&  9&  0.0&  0.000&  0.00&  0.1110&  0.000&  1.0& 0.333\tabularnewline ~~126&  3&  0.0&  0.750&  1.50&  1.0000&  1.500&  1.5& 0.866\tabularnewline \hline {\bfseries MCI}&&&&&&&&\tabularnewline \rowcolor[gray]{.9} ~~3&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
~~6&   $426$&   $-3.5$&   $-0.500$&   $0.00$&   $0.1310$&   $0.500$&   $3.0$&   $0.807$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $544$&   $-3.0$&   $-0.500$&   $0.00$&   $0.1900$&   $0.500$&   $5.5$&   $1.020$\tabularnewline
~~18&   $7$&   $-0.5$&   $-0.250$&   $0.00$&   $1.3600$&   $0.750$&   $9.0$&   $3.410$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $444$&   $-3.0$&   $-0.500$&   $0.00$&   $0.5930$&   $1.000$&   $11.5$&   $1.650$\tabularnewline
~~30&   $10$&   $-0.5$&   $0.000$&   $0.25$&   $0.8000$&   $1.500$&   $3.0$&   $1.250$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $358$&   $-3.5$&   $-0.500$&   $0.00$&   $0.8560$&   $1.500$&   $12.5$&   $2.300$\tabularnewline
~~42&   $3$&   $-1.0$&   $-1.000$&   $-1.00$&   $-0.8330$&   $-0.750$&   $-0.5$&   $0.289$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $257$&   $-3.5$&   $-0.500$&   $0.00$&   $1.1300$&   $2.000$&   $16.0$&   $2.910$\tabularnewline
~~54&   $6$&   $-1.0$&   $0.250$&   $1.25$&   $1.0000$&   $1.880$&   $2.5$&   $1.300$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $123$&   $-3.0$&   $-0.500$&   $0.00$&   $0.8860$&   $1.250$&   $14.5$&   $2.600$\tabularnewline
~~66&   $36$&   $-3.0$&   $-0.625$&   $0.50$&   $1.9900$&   $3.500$&   $15.0$&   $4.000$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $65$&   $-3.0$&   $-0.500$&   $0.00$&   $0.7150$&   $1.000$&   $10.0$&   $2.530$\tabularnewline
~~78&   $42$&   $-2.0$&   $-0.500$&   $0.00$&   $1.5400$&   $1.380$&   $15.5$&   $4.260$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $57$&   $-3.0$&   $-0.500$&   $0.50$&   $1.6900$&   $2.000$&   $17.0$&   $3.770$\tabularnewline
~~90&   $45$&   $-3.5$&   $-0.500$&   $0.00$&   $0.6890$&   $1.000$&   $12.5$&   $2.900$\tabularnewline
\rowcolor[gray]{.9}   ~~96&   $42$&   $-2.5$&   $-0.500$&   $0.00$&   $1.9200$&   $3.120$&   $14.0$&   $3.830$\tabularnewline
~~102&   $36$&   $-3.5$&   $-1.000$&   $-0.25$&   $0.4860$&   $1.000$&   $9.5$&   $2.460$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $34$&   $-2.5$&   $-0.500$&   $0.00$&   $1.6800$&   $1.500$&   $16.5$&   $4.140$\tabularnewline
~~114&   $15$&   $-1.0$&   $-0.500$&   $0.00$&   $1.7300$&   $2.250$&   $14.5$&   $3.940$\tabularnewline
\rowcolor[gray]{.9}   ~~120&   $21$&   $-1.5$&   $-0.500$&   $0.00$&   $0.4290$&   $0.500$&   $10.5$&   $2.450$\tabularnewline
~~126&   $6$&   $-1.0$&   $-0.250$&   $1.50$&   $3.5000$&   $4.000$&   $15.0$&   $5.990$\tabularnewline
\rowcolor[gray]{.9}   ~~132&   $6$&   $-2.5$&   $-1.250$&   $0.50$&   $0.8330$&   $1.500$&   $6.5$&   $3.200$\tabularnewline
~~3&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~6& 131& -2.5&  0.000&  0.50&  0.8130&  1.500&  9.0& 1.540\tabularnewline ~~12& 151& -2.0&  0.000&  1.00&  1.8400&  2.500& 11.5& 2.410\tabularnewline \rowcolor[gray]{.9} ~~18&  4&  0.0&  1.500&  2.50&  3.5000&  4.500&  9.0& 3.870\tabularnewline ~~24&  51& -1.0&  1.000&  2.50&  3.0000&  5.000&  8.5& 2.580\tabularnewline \rowcolor[gray]{.9} ~~30&  3&  0.5&  1.250&  2.00&  4.6700&  6.750& 11.5& 5.970\tabularnewline ~~36&  1&  1.5&  1.500&  1.50&  1.5000&  1.500&  1.5&$$\tabularnewline
\rowcolor[gray]{.9}   ~~42&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline ~~48&  1&  3.0&  3.000&  3.00&  3.0000&  3.000&  3.0&$$\tabularnewline
\rowcolor[gray]{.9}   ~~54&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline ~~60&  3&  2.0&  6.500& 11.00&  8.1700& 11.200& 11.5& 5.350\tabularnewline \rowcolor[gray]{.9} ~~66&  1&  5.0&  5.000&  5.00&  5.0000&  5.000&  5.0&$$\tabularnewline
~~72&   $1$&   $8.5$&   $8.500$&   $8.50$&   $8.5000$&   $8.500$&   $8.5$&   $$\tabularnewline \rowcolor[gray]{.9} ~~78&  3&  7.0&  9.250& 11.50& 11.0000& 13.000& 14.5& 3.770\tabularnewline ~~84&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
\rowcolor[gray]{.9}   ~~90&   $1$&   $4.0$&   $4.000$&   $4.00$&   $4.0000$&   $4.000$&   $4.0$&   $$\tabularnewline ~~96&  1& 11.0& 11.000& 11.00& 11.0000& 11.000& 11.0&$$\tabularnewline
\rowcolor[gray]{.9}   ~~102&   $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.5000$&   $-0.2500$&   $0.0000$&   $0.03030$&   $0.2500$&   $1.6200$&   $0.431$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $267$&   $-1.3800$&   $-0.2500$&   $0.0000$&   $0.01890$&   $0.2500$&   $1.6200$&   $0.418$\tabularnewline
~~18&   $4$&   $-1.0000$&   $-0.3440$&   $-0.0625$&   $0.12500$&   $0.4060$&   $1.6200$&   $1.090$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $402$&   $-2.0000$&   $-0.2500$&   $0.0000$&   $0.02230$&   $0.2500$&   $1.7500$&   $0.444$\tabularnewline
~~30&   $31$&   $-0.6250$&   $-0.3750$&   $-0.1250$&   $-0.10100$&   $0.1250$&   $0.6250$&   $0.342$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $58$&   $-0.5890$&   $-0.2500$&   $0.0000$&   $0.03730$&   $0.2190$&   $1.2500$&   $0.359$\tabularnewline
~~42&   $8$&   $-0.8750$&   $-0.4060$&   $-0.1160$&   $-0.25800$&   $0.0000$&   $0.0000$&   $0.330$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $165$&   $-1.3800$&   $-0.2500$&   $0.0000$&   $0.03800$&   $0.3750$&   $2.1200$&   $0.501$\tabularnewline
~~54&   $21$&   $-1.4300$&   $-0.0357$&   $0.1250$&   $0.20400$&   $0.6250$&   $1.3800$&   $0.663$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $31$&   $-1.0000$&   $-0.0625$&   $0.1250$&   $0.14300$&   $0.3750$&   $1.0000$&   $0.426$\tabularnewline
~~66&   $53$&   $-1.0000$&   $-0.1250$&   $0.0893$&   $0.11600$&   $0.3750$&   $1.2500$&   $0.464$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $63$&   $-0.7500$&   $-0.1250$&   $0.1250$&   $0.16800$&   $0.5000$&   $1.6200$&   $0.494$\tabularnewline
~~78&   $50$&   $-1.3200$&   $-0.1150$&   $0.1070$&   $0.14400$&   $0.5000$&   $1.6200$&   $0.585$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $26$&   $-1.5000$&   $-0.2500$&   $0.2500$&   $0.18500$&   $0.7190$&   $1.8200$&   $0.763$\tabularnewline
~~90&   $42$&   $-0.7140$&   $-0.1250$&   $0.0000$&   $0.11500$&   $0.2500$&   $1.5000$&   $0.489$\tabularnewline
\rowcolor[gray]{.9}   ~~96&   $41$&   $-1.1200$&   $-0.1250$&   $0.1250$&   $0.27200$&   $0.6250$&   $1.8600$&   $0.640$\tabularnewline
~~102&   $25$&   $-0.5000$&   $0.0000$&   $0.2500$&   $0.39000$&   $0.5000$&   $2.2500$&   $0.734$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $7$&   $-0.3750$&   $-0.2500$&   $0.0000$&   $0.07140$&   $0.3750$&   $0.6250$&   $0.394$\tabularnewline
~~114&   $13$&   $-0.3750$&   $-0.0893$&   $0.1250$&   $0.20100$&   $0.3210$&   $1.3800$&   $0.477$\tabularnewline
\rowcolor[gray]{.9}   ~~120&   $9$&   $-0.7500$&   $-0.1250$&   $0.1250$&   $0.18100$&   $0.7500$&   $0.8750$&   $0.556$\tabularnewline
~~126&   $3$&   $-0.1250$&   $0.0000$&   $0.1250$&   $0.37500$&   $0.6250$&   $1.1200$&   $0.661$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline ~~6& 428& -2.1200& -0.3750& -0.1250& -0.10400&  0.2500&  1.6200& 0.539\tabularnewline \rowcolor[gray]{.9} ~~12& 548& -2.2500& -0.3750&  0.0000& -0.05960&  0.2540&  1.7500& 0.607\tabularnewline ~~18&  7& -1.2500& -0.5000& -0.1790& -0.15100&  0.2500&  0.8750& 0.701\tabularnewline \rowcolor[gray]{.9} ~~24& 443& -2.8800& -0.3750&  0.0000& -0.03300&  0.2500&  2.5000& 0.645\tabularnewline ~~30&  10& -0.7500&  0.0625&  0.3750&  0.38000&  0.7190&  1.2500& 0.590\tabularnewline \rowcolor[gray]{.9} ~~36& 354& -2.3800& -0.3750&  0.0000& -0.02910&  0.3750&  2.5000& 0.632\tabularnewline ~~42&  3& -1.3800& -1.0000& -0.6250& -0.66700& -0.3120&  0.0000& 0.688\tabularnewline \rowcolor[gray]{.9} ~~48& 249& -2.5000& -0.5000& -0.1250& -0.09080&  0.3750&  2.3600& 0.727\tabularnewline ~~54&  6& -0.6610& -0.2500& -0.1880& -0.19300& -0.0312&  0.1250& 0.271\tabularnewline \rowcolor[gray]{.9} ~~60& 123& -1.5000& -0.3750&  0.0000&  0.01800&  0.5000&  1.3800& 0.600\tabularnewline ~~66&  33& -1.2500& -0.5000& -0.1250& -0.02180&  0.3750&  1.7500& 0.721\tabularnewline \rowcolor[gray]{.9} ~~72&  66& -1.7500& -0.3440&  0.0000&  0.07360&  0.4690&  1.7500& 0.716\tabularnewline ~~78&  38& -2.1200& -0.2500& -0.1250& -0.02540&  0.2500&  2.0000& 0.694\tabularnewline \rowcolor[gray]{.9} ~~84&  56& -2.3800& -0.3750& -0.1250& -0.07060&  0.2500&  1.6200& 0.714\tabularnewline ~~90&  45& -1.3800& -0.3040& -0.1250& -0.05320&  0.2500&  2.2100& 0.671\tabularnewline \rowcolor[gray]{.9} ~~96&  41& -2.5000& -0.5000& -0.2500& -0.18900&  0.2500&  1.6200& 0.691\tabularnewline ~~102&  36& -2.2500& -0.6250& -0.1250& -0.22200&  0.1560&  1.2500& 0.692\tabularnewline \hline {\bfseries Dementia}&&&&&&&&\tabularnewline \rowcolor[gray]{.9} ~~108&  33& -2.2500& -0.5000& -0.1250& -0.08080&  0.2500&  1.8800& 0.877\tabularnewline ~~114&  15& -1.0000& -0.1880&  0.3750&  0.24200&  0.7500&  1.2500& 0.659\tabularnewline \rowcolor[gray]{.9} ~~120&  22& -1.8800& -0.5000& -0.0982& -0.00893&  0.2500&  1.6200& 0.825\tabularnewline ~~126&  5& -0.5000& -0.3750& -0.3750& -0.22900& -0.1430&  0.2500& 0.297\tabularnewline \rowcolor[gray]{.9} ~~132&  6& -1.5000& -0.3750& -0.3120& -0.00298&  0.5800&  1.6200& 1.090\tabularnewline ~~3&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $124$&   $-1.8800$&   $-0.4060$&   $0.0000$&   $-0.05920$&   $0.3750$&   $1.7500$&   $0.725$\tabularnewline
~~12&   $129$&   $-2.0000$&   $-0.5000$&   $-0.0357$&   $-0.12900$&   $0.3750$&   $2.0000$&   $0.737$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $2$&   $-1.1000$&   $-0.8250$&   $-0.5500$&   $-0.55000$&   $-0.2750$&   $0.0000$&   $0.778$\tabularnewline
~~24&   $39$&   $-1.7500$&   $-0.5000$&   $-0.1250$&   $-0.11700$&   $0.2500$&   $2.1200$&   $0.735$\tabularnewline
\rowcolor[gray]{.9}   ~~30&   $3$&   $-0.5000$&   $-0.2860$&   $-0.0714$&   $0.01790$&   $0.2770$&   $0.6250$&   $0.568$\tabularnewline
~~36&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~42&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
~~48&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~54&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
~~60&   $1$&   $-0.8750$&   $-0.8750$&   $-0.8750$&   $-0.87500$&   $-0.8750$&   $-0.8750$&   $$\tabularnewline \rowcolor[gray]{.9} ~~66&  1& -0.0357& -0.0357& -0.0357& -0.03570& -0.0357& -0.0357&$$\tabularnewline
~~72&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~78&  1& -0.8750& -0.8750& -0.8750& -0.87500& -0.8750& -0.8750&$$\tabularnewline
~~84&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~90&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
~~96&   $1$&   $-1.6200$&   $-1.6200$&   $-1.6200$&   $-1.62000$&   $-1.6200$&   $-1.6200$&   $$\tabularnewline \rowcolor[gray]{.9} ~~102&  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.1250& 1.6200& 0.361\tabularnewline \rowcolor[gray]{.9} ~~12& 261& -1.500& -0.1250&  0.0000&  0.03970&  0.2500& 2.1200& 0.407\tabularnewline ~~18&  4& -0.714& -0.3660& -0.0625& -0.08480&  0.2190& 0.5000& 0.519\tabularnewline \rowcolor[gray]{.9} ~~24& 384& -1.500& -0.1250&  0.0000&  0.04880&  0.2500& 2.1200& 0.424\tabularnewline ~~30&  29& -0.375&  0.0000&  0.0000&  0.12100&  0.1250& 2.1200& 0.431\tabularnewline \rowcolor[gray]{.9} ~~36&  54& -1.380& -0.2190&  0.0000&  0.13500&  0.2880& 2.1200& 0.580\tabularnewline ~~42&  8& -0.714& -0.0625&  0.0000& -0.03570&  0.0625& 0.4290& 0.340\tabularnewline \rowcolor[gray]{.9} ~~48& 156& -1.250& -0.1290&  0.0000&  0.10000&  0.2500& 2.1200& 0.483\tabularnewline ~~54&  21& -0.500&  0.0000&  0.1250&  0.18000&  0.3750& 1.0400& 0.432\tabularnewline \rowcolor[gray]{.9} ~~60&  30& -0.750& -0.2500&  0.0000&  0.18800&  0.3750& 2.4600& 0.713\tabularnewline ~~66&  51& -0.625&  0.0000&  0.1250&  0.19800&  0.4380& 1.5000& 0.508\tabularnewline \rowcolor[gray]{.9} ~~72&  62& -1.500& -0.1250&  0.0000&  0.23000&  0.4690& 2.2500& 0.650\tabularnewline ~~78&  51& -2.380& -0.1250&  0.1250&  0.17700&  0.3750& 2.7500& 0.788\tabularnewline \rowcolor[gray]{.9} ~~84&  25& -0.750& -0.2500&  0.0000&  0.32000&  0.5000& 2.7500& 0.879\tabularnewline ~~90&  41& -0.589& -0.1250&  0.1250&  0.31800&  0.6250& 2.2500& 0.613\tabularnewline \rowcolor[gray]{.9} ~~96&  39& -1.380& -0.2500&  0.0000&  0.24600&  0.5000& 3.0000& 0.836\tabularnewline ~~102&  23& -0.500&  0.0000&  0.1250&  0.51600&  1.1200& 3.0000& 0.857\tabularnewline \rowcolor[gray]{.9} ~~108&  8& -0.375& -0.0312&  0.0625&  0.51600&  0.7500& 2.7500& 1.020\tabularnewline ~~114&  14& -0.500& -0.0670&  0.3750&  0.65700&  0.9380& 2.7500& 1.020\tabularnewline \rowcolor[gray]{.9} ~~120&  9& -0.625&  0.0000&  0.0000&  0.33300&  0.5000& 2.1200& 0.850\tabularnewline ~~126&  3&  0.000&  0.6670&  1.3300&  0.90300&  1.3500& 1.3800& 0.782\tabularnewline \hline {\bfseries MCI}&&&&&&&&\tabularnewline \rowcolor[gray]{.9} ~~3&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
~~6&   $424$&   $-1.880$&   $-0.2500$&   $0.0000$&   $0.00345$&   $0.3750$&   $2.1200$&   $0.561$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $543$&   $-2.750$&   $-0.2500$&   $0.0000$&   $0.01320$&   $0.3040$&   $2.2500$&   $0.584$\tabularnewline
~~18&   $7$&   $-1.750$&   $-0.1960$&   $0.0000$&   $-0.23500$&   $0.1250$&   $0.2500$&   $0.693$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $444$&   $-1.880$&   $-0.2500$&   $0.0000$&   $0.09900$&   $0.5000$&   $2.1200$&   $0.643$\tabularnewline
~~30&   $11$&   $-1.750$&   $-0.1340$&   $0.0000$&   $0.17000$&   $0.4380$&   $2.1200$&   $0.960$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $351$&   $-2.250$&   $-0.2500$&   $0.1250$&   $0.16200$&   $0.5000$&   $2.1400$&   $0.715$\tabularnewline
~~42&   $3$&   $-0.625$&   $-0.4380$&   $-0.2500$&   $-0.27600$&   $-0.1010$&   $0.0476$&   $0.337$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $245$&   $-1.750$&   $-0.2500$&   $0.1250$&   $0.21600$&   $0.5000$&   $2.8800$&   $0.714$\tabularnewline
~~54&   $6$&   $-0.125$&   $0.0625$&   $0.5000$&   $0.58300$&   $0.9380$&   $1.6200$&   $0.669$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $119$&   $-1.620$&   $-0.1790$&   $0.1250$&   $0.26600$&   $0.6250$&   $2.5000$&   $0.797$\tabularnewline
~~66&   $37$&   $-0.875$&   $-0.1250$&   $0.1250$&   $0.24400$&   $0.5000$&   $1.6200$&   $0.603$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $64$&   $-1.620$&   $-0.1250$&   $0.1250$&   $0.24900$&   $0.6250$&   $2.2900$&   $0.704$\tabularnewline
~~78&   $43$&   $-1.120$&   $-0.3750$&   $0.0000$&   $0.09980$&   $0.4380$&   $2.0000$&   $0.755$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $58$&   $-1.120$&   $-0.1250$&   $0.1250$&   $0.38400$&   $0.9790$&   $2.5000$&   $0.825$\tabularnewline
~~90&   $46$&   $-1.250$&   $-0.4690$&   $0.0000$&   $0.10700$&   $0.5000$&   $2.1700$&   $0.761$\tabularnewline
\rowcolor[gray]{.9}   ~~96&   $41$&   $-1.250$&   $-0.1250$&   $0.3750$&   $0.37400$&   $0.7500$&   $2.3800$&   $0.726$\tabularnewline
~~102&   $35$&   $-2.000$&   $-0.3750$&   $0.0000$&   $0.07450$&   $0.5620$&   $2.0000$&   $0.818$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $36$&   $-0.625$&   $-0.2500$&   $0.1250$&   $0.35400$&   $0.7500$&   $2.5000$&   $0.814$\tabularnewline
~~114&   $15$&   $-0.857$&   $-0.0625$&   $0.5000$&   $0.34000$&   $0.7500$&   $1.6200$&   $0.655$\tabularnewline
\rowcolor[gray]{.9}   ~~120&   $21$&   $-0.500$&   $-0.2500$&   $0.0000$&   $0.21700$&   $0.6250$&   $1.5000$&   $0.604$\tabularnewline
~~126&   $6$&   $-0.500$&   $0.0938$&   $0.8120$&   $0.64600$&   $1.0600$&   $1.7500$&   $0.827$\tabularnewline
\rowcolor[gray]{.9}   ~~132&   $6$&   $-0.375$&   $-0.2190$&   $-0.0625$&   $0.50000$&   $0.9380$&   $2.5000$&   $1.140$\tabularnewline
~~3&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~6& 130& -2.750& -0.2500&  0.0000&  0.04210&  0.4790& 1.6200& 0.616\tabularnewline ~~12& 149& -1.000&  0.0000&  0.1250&  0.22300&  0.5000& 2.1200& 0.497\tabularnewline \rowcolor[gray]{.9} ~~18&  4& -1.620& -0.5940&  0.1250& -0.18800&  0.5310& 0.6250& 1.030\tabularnewline ~~24&  51& -1.750& -0.0625&  0.1250&  0.14700&  0.3750& 1.7500& 0.644\tabularnewline \rowcolor[gray]{.9} ~~30&  4&  0.000&  0.1880&  0.2500&  0.43800&  0.5000& 1.2500& 0.554\tabularnewline ~~36&  1&  0.000&  0.0000&  0.0000&  0.00000&  0.0000& 0.0000&$$\tabularnewline
\rowcolor[gray]{.9}   ~~42&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline ~~48&  1&  0.000&  0.0000&  0.0000&  0.00000&  0.0000& 0.0000&$$\tabularnewline
\rowcolor[gray]{.9}   ~~54&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline ~~60&  3&  0.125&  0.6250&  1.1200&  1.12000&  1.6200& 2.1200& 1.000\tabularnewline \rowcolor[gray]{.9} ~~66&  1&  0.000&  0.0000&  0.0000&  0.00000&  0.0000& 0.0000&$$\tabularnewline
~~72&   $1$&   $1.120$&   $1.1200$&   $1.1200$&   $1.12000$&   $1.1200$&   $1.1200$&   $$\tabularnewline \rowcolor[gray]{.9} ~~78&  3&  0.000&  0.9110&  1.8200&  1.32000&  1.9700& 2.1200& 1.150\tabularnewline ~~84&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
\rowcolor[gray]{.9}   ~~90&   $1$&   $0.000$&   $0.0000$&   $0.0000$&   $0.00000$&   $0.0000$&   $0.0000$&   $$\tabularnewline ~~96&  1&  2.000&  2.0000&  2.0000&  2.00000&  2.0000& 2.0000&$$\tabularnewline
\rowcolor[gray]{.9}   ~~102&   $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.1400$&   $-0.103000$&   $0.00000$&   $0.01780$&   $0.1280$&   $0.8210$&   $0.253$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $267$&   $-0.7510$&   $-0.103000$&   $0.00000$&   $0.02730$&   $0.1280$&   $1.4600$&   $0.248$\tabularnewline
~~18&   $4$&   $-0.7890$&   $-0.355000$&   $-0.10500$&   $-0.01970$&   $0.2300$&   $0.9210$&   $0.710$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $402$&   $-1.3400$&   $-0.103000$&   $0.00000$&   $0.02110$&   $0.1320$&   $1.1800$&   $0.294$\tabularnewline
~~30&   $31$&   $-0.6580$&   $-0.254000$&   $-0.07890$&   $-0.08740$&   $0.0395$&   $0.4210$&   $0.230$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $58$&   $-0.5260$&   $-0.078900$&   $0.00000$&   $0.06850$&   $0.1780$&   $1.2400$&   $0.279$\tabularnewline
~~42&   $8$&   $-0.6580$&   $-0.255000$&   $-0.06030$&   $-0.17200$&   $-0.0260$&   $0.1840$&   $0.299$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $166$&   $-0.9850$&   $-0.103000$&   $0.02560$&   $0.04460$&   $0.1730$&   $1.7200$&   $0.312$\tabularnewline
~~54&   $21$&   $-0.6950$&   $-0.087700$&   $0.09850$&   $0.11300$&   $0.2720$&   $0.8240$&   $0.365$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $31$&   $-0.7250$&   $-0.068500$&   $0.13200$&   $0.10500$&   $0.3080$&   $0.6940$&   $0.317$\tabularnewline
~~66&   $53$&   $-0.3540$&   $0.004050$&   $0.09530$&   $0.14200$&   $0.2110$&   $0.9300$&   $0.253$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $63$&   $-1.0100$&   $-0.044900$&   $0.10700$&   $0.09230$&   $0.2190$&   $1.0300$&   $0.331$\tabularnewline
~~78&   $50$&   $-0.5750$&   $-0.067900$&   $0.06080$&   $0.11500$&   $0.2700$&   $1.3000$&   $0.345$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $26$&   $-0.7840$&   $-0.092100$&   $0.15600$&   $0.12900$&   $0.3240$&   $1.0500$&   $0.423$\tabularnewline
~~90&   $42$&   $-0.4210$&   $-0.019200$&   $0.08400$&   $0.15800$&   $0.2370$&   $1.1600$&   $0.319$\tabularnewline
\rowcolor[gray]{.9}   ~~96&   $41$&   $-1.1100$&   $-0.036000$&   $0.11100$&   $0.14300$&   $0.2380$&   $1.1100$&   $0.369$\tabularnewline
~~102&   $25$&   $-0.6160$&   $0.002700$&   $0.13100$&   $0.39100$&   $0.5000$&   $2.6400$&   $0.717$\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $7$&   $-0.2540$&   $-0.106000$&   $0.13800$&   $0.11100$&   $0.3280$&   $0.4450$&   $0.279$\tabularnewline
~~114&   $13$&   $-0.0236$&   $0.000675$&   $0.08390$&   $0.20300$&   $0.3180$&   $0.8300$&   $0.281$\tabularnewline
\rowcolor[gray]{.9}   ~~120&   $9$&   $-0.3100$&   $-0.065500$&   $0.08100$&   $0.09120$&   $0.2110$&   $0.5370$&   $0.247$\tabularnewline
~~126&   $3$&   $0.0000$&   $0.026700$&   $0.05330$&   $0.31500$&   $0.4720$&   $0.8910$&   $0.500$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~3&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline ~~6& 430& -2.0800& -0.219000& -0.02630& -0.03500&  0.1500&  1.5900& 0.376\tabularnewline \rowcolor[gray]{.9} ~~12& 551& -1.6900& -0.231000& -0.02560& -0.02240&  0.1840&  1.6700& 0.397\tabularnewline ~~18&  7& -0.7370& -0.248000&  0.23700&  0.01550&  0.3290&  0.4470& 0.445\tabularnewline \rowcolor[gray]{.9} ~~24& 445& -1.6900& -0.205000&  0.00000&  0.02560&  0.2370&  1.7400& 0.449\tabularnewline ~~30&  10& -0.5000&  0.059200&  0.14300&  0.17200&  0.3770&  0.7630& 0.350\tabularnewline \rowcolor[gray]{.9} ~~36& 350& -1.7300& -0.198000&  0.02560&  0.04720&  0.2920&  1.9900& 0.451\tabularnewline ~~42&  3& -0.6580& -0.438000& -0.21800& -0.27400& -0.0825&  0.0526& 0.359\tabularnewline \rowcolor[gray]{.9} ~~48& 248& -2.3100& -0.246000&  0.03910&  0.03820&  0.3330&  2.7100& 0.533\tabularnewline ~~54&  6& -0.3330&  0.015500&  0.11100&  0.18000&  0.2300&  0.9400& 0.422\tabularnewline \rowcolor[gray]{.9} ~~60& 122& -1.2100& -0.157000&  0.03850&  0.06700&  0.3280&  1.1300& 0.435\tabularnewline ~~66&  32& -1.0900& -0.200000& -0.01010&  0.07280&  0.2130&  1.4800& 0.503\tabularnewline \rowcolor[gray]{.9} ~~72&  66& -0.9710& -0.143000&  0.09420&  0.09120&  0.3790&  0.8780& 0.427\tabularnewline ~~78&  38& -1.1300& -0.187000& -0.01250&  0.04180&  0.1600&  1.6000& 0.521\tabularnewline \rowcolor[gray]{.9} ~~84&  56& -1.0700& -0.199000&  0.00742&  0.03030&  0.2090&  1.3800& 0.481\tabularnewline ~~90&  45& -1.0900& -0.089600&  0.02850&  0.07000&  0.2680&  2.5900& 0.528\tabularnewline \rowcolor[gray]{.9} ~~96&  41& -1.0900& -0.251000& -0.10100& -0.00312&  0.1730&  1.4100& 0.464\tabularnewline ~~102&  36& -0.8740& -0.341000&  0.05110& -0.04090&  0.1530&  0.6150& 0.367\tabularnewline \hline {\bfseries Dementia}&&&&&&&&\tabularnewline \rowcolor[gray]{.9} ~~108&  33& -0.8620& -0.237000&  0.00925&  0.05880&  0.3040&  1.4700& 0.515\tabularnewline ~~114&  15& -0.8840& -0.098200&  0.18000&  0.21000&  0.7140&  1.0200& 0.557\tabularnewline \rowcolor[gray]{.9} ~~120&  22& -1.3700& -0.233000&  0.08130&  0.04980&  0.4010&  1.3800& 0.570\tabularnewline ~~126&  5& -0.8180&  0.079600&  0.16300&  0.00836&  0.1700&  0.4470& 0.483\tabularnewline \rowcolor[gray]{.9} ~~132&  6& -1.3900& -0.324000& -0.23100& -0.25100& -0.1540&  0.8300& 0.706\tabularnewline ~~3&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
\rowcolor[gray]{.9}   ~~6&   $120$&   $-1.6900$&   $-0.298000$&   $0.02320$&   $-0.01190$&   $0.2840$&   $1.5100$&   $0.554$\tabularnewline
~~12&   $127$&   $-1.3800$&   $-0.346000$&   $-0.00427$&   $0.00309$&   $0.2930$&   $2.1000$&   $0.551$\tabularnewline
\rowcolor[gray]{.9}   ~~18&   $2$&   $-1.1000$&   $-0.828000$&   $-0.56100$&   $-0.56100$&   $-0.2940$&   $-0.0263$&   $0.756$\tabularnewline
~~24&   $39$&   $-1.4300$&   $-0.169000$&   $0.04500$&   $0.08480$&   $0.4080$&   $2.3200$&   $0.616$\tabularnewline
\rowcolor[gray]{.9}   ~~30&   $3$&   $-0.0628$&   $0.134000$&   $0.33100$&   $0.27300$&   $0.4420$&   $0.5530$&   $0.312$\tabularnewline
~~36&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~42&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
~~48&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~54&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
~~60&   $1$&   $-0.5430$&   $-0.543000$&   $-0.54300$&   $-0.54300$&   $-0.5430$&   $-0.5430$&   $$\tabularnewline \rowcolor[gray]{.9} ~~66&  1&  0.0535&  0.053500&  0.05350&  0.05350&  0.0535&  0.0535&$$\tabularnewline
~~72&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~78&  1& -0.1910& -0.191000& -0.19100& -0.19100& -0.1910& -0.1910&$$\tabularnewline
~~84&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~90&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
~~96&   $1$&   $-0.6130$&   $-0.613000$&   $-0.61300$&   $-0.61300$&   $-0.6130$&   $-0.6130$&   $$\tabularnewline \rowcolor[gray]{.9} ~~102&  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.8790& -0.051300&  0.000000&  0.00909&  0.0769&  0.8460& 0.193\tabularnewline \rowcolor[gray]{.9} ~~12& 261& -1.2100& -0.036500&  0.000000&  0.03840&  0.0978&  1.6200& 0.257\tabularnewline ~~18&  4& -0.4060& -0.240000& -0.078900& -0.06630&  0.0944&  0.2990& 0.301\tabularnewline \rowcolor[gray]{.9} ~~24& 384& -1.1300& -0.051600&  0.000000&  0.04280&  0.1030&  2.0000& 0.277\tabularnewline ~~30&  29& -0.3160&  0.000000&  0.000000&  0.04390&  0.0555&  1.1100& 0.239\tabularnewline \rowcolor[gray]{.9} ~~36&  54& -1.3300& -0.047600&  0.051300&  0.14000&  0.1830&  2.0500& 0.487\tabularnewline ~~42&  8& -0.4320&  0.000000&  0.081000&  0.05070&  0.2150&  0.2370& 0.222\tabularnewline \rowcolor[gray]{.9} ~~48& 157& -1.0500& -0.052600&  0.000000&  0.07390&  0.1030&  1.6800& 0.335\tabularnewline ~~54&  21& -0.3180& -0.024300&  0.083300&  0.17100&  0.3030&  0.8470& 0.303\tabularnewline \rowcolor[gray]{.9} ~~60&  30& -0.5400& -0.075400&  0.039800&  0.20900&  0.2050&  2.5400& 0.647\tabularnewline ~~66&  51& -0.5640&  0.000000&  0.032100&  0.13900&  0.2180&  1.4300& 0.358\tabularnewline \rowcolor[gray]{.9} ~~72&  61& -0.9940& -0.051300&  0.052600&  0.18200&  0.2910&  2.5200& 0.504\tabularnewline ~~78&  51& -1.5400& -0.048500&  0.052600&  0.20200&  0.2360&  2.9500& 0.636\tabularnewline \rowcolor[gray]{.9} ~~84&  25& -0.6460& -0.103000&  0.000000&  0.27800&  0.2910&  2.4000& 0.757\tabularnewline ~~90&  41& -0.5640&  0.000000&  0.090500&  0.23000&  0.2630&  2.3000& 0.527\tabularnewline \rowcolor[gray]{.9} ~~96&  40& -0.9940& -0.063400&  0.000337&  0.18200&  0.1680&  2.4700& 0.574\tabularnewline ~~102&  23& -0.1220&  0.000000&  0.081600&  0.37800&  0.6070&  2.4500& 0.592\tabularnewline \rowcolor[gray]{.9} ~~108&  8& -0.1050& -0.018200&  0.134000&  0.48000&  0.3910&  2.8700& 0.993\tabularnewline ~~114&  14& -0.5640& -0.024600&  0.195000&  0.52500&  0.5130&  2.7400& 0.983\tabularnewline \rowcolor[gray]{.9} ~~120&  9& -0.4590& -0.128000&  0.000000&  0.06110&  0.2670&  0.7270& 0.339\tabularnewline ~~126&  3&  0.0000&  0.353000&  0.707000&  0.62200&  0.9320&  1.1600& 0.584\tabularnewline \hline {\bfseries MCI}&&&&&&&&\tabularnewline \rowcolor[gray]{.9} ~~3&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
~~6&   $426$&   $-1.4600$&   $-0.167000$&   $0.020600$&   $0.05150$&   $0.2540$&   $1.9900$&   $0.411$\tabularnewline
\rowcolor[gray]{.9}   ~~12&   $543$&   $-2.0400$&   $-0.130000$&   $0.051300$&   $0.08320$&   $0.2830$&   $2.0900$&   $0.458$\tabularnewline
~~18&   $7$&   $-0.5790$&   $-0.107000$&   $-0.004270$&   $-0.01460$&   $0.0972$&   $0.5000$&   $0.330$\tabularnewline
\rowcolor[gray]{.9}   ~~24&   $445$&   $-1.4100$&   $-0.115000$&   $0.113000$&   $0.18800$&   $0.4050$&   $2.4100$&   $0.531$\tabularnewline
~~30&   $11$&   $-0.9210$&   $-0.054200$&   $0.278000$&   $0.32500$&   $0.7370$&   $1.5900$&   $0.673$\tabularnewline
\rowcolor[gray]{.9}   ~~36&   $350$&   $-2.1400$&   $-0.103000$&   $0.154000$&   $0.26000$&   $0.5220$&   $2.5100$&   $0.616$\tabularnewline
~~42&   $3$&   $-0.0931$&   $-0.046500$&   $0.000000$&   $0.00468$&   $0.0536$&   $0.1070$&   $0.100$\tabularnewline
\rowcolor[gray]{.9}   ~~48&   $245$&   $-2.1100$&   $-0.103000$&   $0.154000$&   $0.28600$&   $0.5820$&   $2.6200$&   $0.654$\tabularnewline
~~54&   $6$&   $-0.1010$&   $0.231000$&   $0.427000$&   $0.52400$&   $0.7840$&   $1.3200$&   $0.507$\tabularnewline
\rowcolor[gray]{.9}   ~~60&   $119$&   $-1.0500$&   $-0.120000$&   $0.166000$&   $0.30800$&   $0.6530$&   $2.4000$&   $0.677$\tabularnewline
~~66&   $37$&   $-0.6610$&   $-0.066300$&   $0.226000$&   $0.40700$&   $0.7650$&   $1.9100$&   $0.654$\tabularnewline
\rowcolor[gray]{.9}   ~~72&   $64$&   $-1.1000$&   $-0.062600$&   $0.138000$&   $0.23000$&   $0.4970$&   $1.8300$&   $0.600$\tabularnewline
~~78&   $43$&   $-1.0200$&   $-0.109000$&   $0.132000$&   $0.29300$&   $0.5500$&   $2.2500$&   $0.717$\tabularnewline
\rowcolor[gray]{.9}   ~~84&   $58$&   $-1.3400$&   $-0.075100$&   $0.166000$&   $0.43700$&   $0.8380$&   $2.3000$&   $0.782$\tabularnewline
~~90&   $46$&   $-0.9950$&   $0.000000$&   $0.148000$&   $0.30100$&   $0.3550$&   $2.4000$&   $0.714$\tabularnewline
\rowcolor[gray]{.9}   ~~96&   $41$&   $-1.0800$&   $-0.037800$&   $0.122000$&   $0.47100$&   $0.8950$&   $2.3000$&   $0.799$\tabularnewline
~~102&   $35$&   $-1.2100$&   $-0.165000$&   $0.230000$&   $0.29900$&   $0.6140$&   $2.5100$&   $0.749$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9}   ~~108&   $36$&   $-0.5890$&   $-0.051600$&   $0.085400$&   $0.45700$&   $0.8660$&   $2.8200$&   $0.854$\tabularnewline
~~114&   $15$&   $-0.4090$&   $0.000693$&   $0.296000$&   $0.40600$&   $0.7120$&   $1.5600$&   $0.542$\tabularnewline
\rowcolor[gray]{.9}   ~~120&   $21$&   $-0.2600$&   $-0.052600$&   $0.026300$&   $0.19200$&   $0.2770$&   $2.0000$&   $0.534$\tabularnewline
~~126&   $6$&   $-0.1990$&   $-0.110000$&   $0.378000$&   $0.54300$&   $1.1900$&   $1.5200$&   $0.765$\tabularnewline
\rowcolor[gray]{.9}   ~~132&   $6$&   $-0.5140$&   $-0.185000$&   $0.285000$&   $0.32700$&   $0.8850$&   $1.1600$&   $0.687$\tabularnewline
~~3&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline \rowcolor[gray]{.9} ~~6& 130& -2.5000& -0.147000&  0.126000&  0.10500&  0.4100&  1.3300& 0.524\tabularnewline ~~12& 150& -1.4600&  0.104000&  0.329000&  0.34300&  0.5900&  1.5700& 0.447\tabularnewline \rowcolor[gray]{.9} ~~18&  4& -0.6440& -0.061300&  0.347000&  0.38700&  0.7950&  1.5000& 0.894\tabularnewline ~~24&  51& -0.6490&  0.057800&  0.385000&  0.42200&  0.7740&  2.0800& 0.567\tabularnewline \rowcolor[gray]{.9} ~~30&  4&  0.5790&  0.580000&  0.691000&  0.76600&  0.8770&  1.1100& 0.249\tabularnewline ~~36&  1&  0.7560&  0.756000&  0.756000&  0.75600&  0.7560&  0.7560&$$\tabularnewline
\rowcolor[gray]{.9}   ~~42&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline ~~48&  1&  0.7180&  0.718000&  0.718000&  0.71800&  0.7180&  0.7180&$$\tabularnewline
\rowcolor[gray]{.9}   ~~54&   $0$&   $$&$$&   $$&$$&   $$&$$&   $$\tabularnewline ~~60&  3&  0.7180&  0.758000&  0.798000&  1.39000&  1.7200&  2.6400& 1.090\tabularnewline \rowcolor[gray]{.9} ~~66&  1& -0.2410& -0.241000& -0.241000& -0.24100& -0.2410& -0.2410&$$\tabularnewline
~~72&   $1$&   $1.1300$&   $1.130000$&   $1.130000$&   $1.13000$&   $1.1300$&   $1.1300$&   $$\tabularnewline \rowcolor[gray]{.9} ~~78&  3&  0.6750&  0.973000&  1.270000&  1.54000&  1.9700&  2.6600& 1.020\tabularnewline ~~84&  0&$$&   $$&$$&   $$&$$&   $$&$$\tabularnewline
\rowcolor[gray]{.9}   ~~90&   $1$&   $-0.0385$&   $-0.038500$&   $-0.038500$&   $-0.03850$&   $-0.0385$&   $-0.0385$&   $$\tabularnewline ~~96&  1&  1.5700&  1.570000&  1.570000&  1.57000&  1.5700&  1.5700&$$\tabularnewline
\rowcolor[gray]{.9}   ~~102&   $0$&   $$&$$&   $$&$$&   $$&$$&   \tabularnewline
\hline
\end{tabular}\end{center}
\end{table}

## R Session Information

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