Enrollment.Rmd
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
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())
adnimerge
dd <-$AGEC <- cut(dd$AGE, breaks = seq(39, 110, by = 10))
dd
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:
subset(treatdis, VISCODE == "bl" & WDRAWTYPE == "Full")$RID
BLTDS <-$VISCODE <- with(dd, ifelse(VISCODE == "bl" & RID %in% BLTDS, "blwd", VISCODE)) dd
# 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=519) | SMC (N=303) | EMCI (N=402) | LMCI (N=658) | AD (N=398) | Combined (N=2280) | Test Statistic | |
Age [Years] | 2290 |
|
|
|
|
|
|
F=21.6 d.f.=4,2271 P<0.001 |
Age : (39,49] | 2289 |
|
|
|
|
|
|
Chi-square=167 d.f.=16 P<0.001 |
(49,59] |
|
|
|
|
|
|
||
(59,69] |
|
|
|
|
|
|
||
(69,79] |
|
|
|
|
|
|
||
(79,89] |
|
|
|
|
|
|
||
(89,99] |
|
|
|
|
|
|
||
(99,109] |
|
|
|
|
|
|
||
Sex : Male | 2294 |
|
|
|
|
|
|
Chi-square=55.3 d.f.=4 P<0.001 |
Education | 2294 |
|
|
|
|
|
|
F=15.5 d.f.=4,2275 P<0.001 |
Marital : Divorced | 2294 |
|
|
|
|
|
|
Chi-square=63.8 d.f.=16 P<0.001 |
Married |
|
|
|
|
|
|
||
Never married |
|
|
|
|
|
|
||
Unknown |
|
|
|
|
|
|
||
Widowed |
|
|
|
|
|
|
||
Ethnicity : Unknown | 2294 |
|
|
|
|
|
|
Chi-square=5.52 d.f.=8 P=0.7 |
Not Hisp/Latino |
|
|
|
|
|
|
||
Hisp/Latino |
|
|
|
|
|
|
||
Race : Am Indian/Alaskan | 2294 |
|
|
|
|
|
|
Chi-square=54.5 d.f.=24 P<0.001 |
Asian |
|
|
|
|
|
|
||
Hawaiian/Other PI |
|
|
|
|
|
|
||
Black |
|
|
|
|
|
|
||
White |
|
|
|
|
|
|
||
More than one |
|
|
|
|
|
|
||
Unknown |
|
|
|
|
|
|
||
CDR-SB | 2294 |
|
|
|
|
|
|
F=2903 d.f.=4,2275 P<0.001 |
ADAS 13 | 2270 |
|
|
|
|
|
|
F=665 d.f.=4,2254 P<0.001 |
MMSE | 2294 |
|
|
|
|
|
|
F=599 d.f.=4,2275 P<0.001 |
# 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=512) | SMC (N=300) | EMCI (N=391) | LMCI (N=646) | AD (N=388) | Combined (N=2237) | Test Statistic | |
Age [Years] | 2247 |
|
|
|
|
|
|
F=20.7 d.f.=4,2228 P<0.001 |
Age : (39,49] | 2246 |
|
|
|
|
|
|
Chi-square=162 d.f.=16 P<0.001 |
(49,59] |
|
|
|
|
|
|
||
(59,69] |
|
|
|
|
|
|
||
(69,79] |
|
|
|
|
|
|
||
(79,89] |
|
|
|
|
|
|
||
(89,99] |
|
|
|
|
|
|
||
(99,109] |
|
|
|
|
|
|
||
Sex : Male | 2251 |
|
|
|
|
|
|
Chi-square=56.6 d.f.=4 P<0.001 |
Education | 2251 |
|
|
|
|
|
|
F=15.1 d.f.=4,2232 P<0.001 |
Marital : Divorced | 2251 |
|
|
|
|
|
|
Chi-square=62.6 d.f.=16 P<0.001 |
Married |
|
|
|
|
|
|
||
Never married |
|
|
|
|
|
|
||
Unknown |
|
|
|
|
|
|
||
Widowed |
|
|
|
|
|
|
||
Ethnicity : Unknown | 2251 |
|
|
|
|
|
|
Chi-square=5.75 d.f.=8 P=0.675 |
Not Hisp/Latino |
|
|
|
|
|
|
||
Hisp/Latino |
|
|
|
|
|
|
||
Race : Am Indian/Alaskan | 2251 |
|
|
|
|
|
|
Chi-square=55 d.f.=24 P<0.001 |
Asian |
|
|
|
|
|
|
||
Hawaiian/Other PI |
|
|
|
|
|
|
||
Black |
|
|
|
|
|
|
||
White |
|
|
|
|
|
|
||
More than one |
|
|
|
|
|
|
||
Unknown |
|
|
|
|
|
|
||
CDR-SB | 2251 |
|
|
|
|
|
|
F=2876 d.f.=4,2232 P<0.001 |
ADAS 13 | 2231 |
|
|
|
|
|
|
F=648 d.f.=4,2215 P<0.001 |
MMSE | 2251 |
|
|
|
|
|
|
F=581 d.f.=4,2232 P<0.001 |
subset(dd, VISCODE == "bl" & !is.na(DX.bl), c("RID", "DX.bl", "ADAS13", "CDRSB",
dd1 <-"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")
c("ADAS13", "MMSE", "CDRSB", "EcogPtMem", "EcogPtTotal", "EcogSPTotal")
cols <-for (cc in cols) {
$x <- dd1[, cc]
dd1 with(dd1, Hmisc::summarize(x, by = DX.bl, FUN = summary.default, stat.name = "N"))
tab <-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
\clearpage
\subsection{ ADAS 13 change from baseline}
%latex.default(tab[, -(1:2)], file = "", rowlabel = "Month", rowname = tab[, 1], rgroup = unique(tab[, 2]), n.rgroup = table(tab[, 2]), digits = 3, where = "h!", rownamesTexCmd = rcmd, label = paste("long", oc, sep = ""))%
\begin{table}[h!]
\begin{center}
\begin{tabular}{lrrrrrrrr}
\hline\hline
\multicolumn{1}{l}{Month}&\multicolumn{1}{c}{N}&\multicolumn{1}{c}{Min.}&\multicolumn{1}{c}{Q.1}&\multicolumn{1}{c}{Median}&\multicolumn{1}{c}{Mean}&\multicolumn{1}{c}{Q.3}&\multicolumn{1}{c}{Max.}&\multicolumn{1}{c}{SD}\tabularnewline
\hline
{\bfseries CN}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $270$& $-11.00$& $-2.00$& $ 0.00$& $-0.3850$& $ 2.00$& $11.0$& $ 3.43$\tabularnewline
\rowcolor[gray]{.9} ~~12& $265$& $-11.00$& $-3.00$& $-0.33$& $-0.5170$& $ 2.00$& $11.0$& $ 3.72$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $373$& $-10.00$& $-2.00$& $-0.33$& $-0.3160$& $ 2.00$& $13.3$& $ 3.50$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $ 47$& $ -9.33$& $-2.00$& $ 0.00$& $-0.2060$& $ 2.00$& $11.0$& $ 3.98$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $161$& $ -8.00$& $-2.00$& $ 1.67$& $ 1.3600$& $ 4.00$& $15.0$& $ 4.63$\tabularnewline
~~54& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~60& $ 53$& $ -1.67$& $ 2.67$& $ 4.33$& $ 5.1500$& $ 7.00$& $18.0$& $ 4.47$\tabularnewline
~~72& $119$& $ -2.67$& $ 2.00$& $ 4.67$& $ 5.4700$& $ 7.67$& $23.7$& $ 4.65$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 55$& $ -4.33$& $ 3.33$& $ 6.00$& $ 7.1200$& $ 8.84$& $28.3$& $ 6.30$\tabularnewline
~~96& $ 44$& $ -5.33$& $ 2.00$& $ 5.16$& $ 5.6100$& $ 7.83$& $23.0$& $ 5.49$\tabularnewline
\rowcolor[gray]{.9} ~~108& $ 7$& $ 5.00$& $ 6.33$& $ 7.67$& $ 8.6700$& $11.20$& $13.0$& $ 3.07$\tabularnewline
~~120& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $429$& $-12.00$& $-3.00$& $ 0.00$& $ 0.0583$& $ 3.00$& $16.0$& $ 4.38$\tabularnewline
\rowcolor[gray]{.9} ~~12& $528$& $-15.00$& $-3.00$& $ 0.00$& $ 0.1150$& $ 3.00$& $54.0$& $ 4.99$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $408$& $-11.00$& $-2.08$& $ 0.33$& $ 1.1800$& $ 4.00$& $21.0$& $ 5.46$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $318$& $-14.00$& $-2.00$& $ 1.00$& $ 2.0600$& $ 5.00$& $49.0$& $ 7.44$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $252$& $-12.00$& $-2.00$& $ 1.00$& $ 3.4800$& $ 6.00$& $55.0$& $ 9.57$\tabularnewline
~~60& $139$& $ -7.00$& $ 0.00$& $ 3.00$& $ 5.5000$& $ 8.16$& $71.0$& $10.90$\tabularnewline
\rowcolor[gray]{.9} ~~66& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~72& $101$& $ -5.00$& $ 2.00$& $ 4.67$& $ 5.7600$& $ 8.00$& $37.0$& $ 6.79$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 88$& $ -3.33$& $ 2.67$& $ 5.34$& $ 6.8900$& $ 9.42$& $24.7$& $ 6.24$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
~~96& $ 70$& $ -5.00$& $ 3.08$& $ 6.16$& $ 8.1300$& $11.60$& $38.7$& $ 7.86$\tabularnewline
\rowcolor[gray]{.9} ~~108& $ 27$& $ -5.67$& $ 2.84$& $ 5.33$& $ 6.6900$& $ 9.17$& $25.0$& $ 6.65$\tabularnewline
~~120& $ 5$& $ 1.33$& $ 3.33$& $ 9.00$& $10.4000$& $13.30$& $25.0$& $ 9.43$\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $127$& $-12.00$& $-1.50$& $ 2.00$& $ 2.3800$& $ 6.50$& $23.0$& $ 5.62$\tabularnewline
\rowcolor[gray]{.9} ~~12& $135$& $-13.00$& $ 0.33$& $ 3.67$& $ 4.6600$& $ 8.00$& $27.0$& $ 6.35$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $ 41$& $ -5.00$& $ 3.00$& $ 7.00$& $ 8.6300$& $13.00$& $36.0$& $ 8.91$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $ 1$& $ 8.00$& $ 8.00$& $ 8.00$& $ 8.0000$& $ 8.00$& $ 8.0$& $$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~54& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~60& $ 2$& $ 6.33$& $ 7.41$& $ 8.50$& $ 8.5000$& $ 9.59$& $10.7$& $ 3.07$\tabularnewline
~~72& $ 1$& $ 10.00$& $10.00$& $10.00$& $10.0000$& $10.00$& $10.0$& $$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\hline
\end{tabular}\end{center}
\end{table}
\clearpage
\subsection{ MMSE change from baseline}
%latex.default(tab[, -(1:2)], file = "", rowlabel = "Month", rowname = tab[, 1], rgroup = unique(tab[, 2]), n.rgroup = table(tab[, 2]), digits = 3, where = "h!", rownamesTexCmd = rcmd, label = paste("long", oc, sep = ""))%
\begin{table}[h!]
\begin{center}
\begin{tabular}{lrrrrrrrr}
\hline\hline
\multicolumn{1}{l}{Month}&\multicolumn{1}{c}{N}&\multicolumn{1}{c}{Min.}&\multicolumn{1}{c}{Q.1}&\multicolumn{1}{c}{Median}&\multicolumn{1}{c}{Mean}&\multicolumn{1}{c}{Q.3}&\multicolumn{1}{c}{Max.}&\multicolumn{1}{c}{SD}\tabularnewline
\hline
{\bfseries CN}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $274$& $ -4$& $-1.00$& $ 0.0$& $-0.0547$& $ 1.00$& $ 4$& $1.40$\tabularnewline
\rowcolor[gray]{.9} ~~12& $267$& $ -8$& $-1.00$& $ 0.0$& $-0.2170$& $ 1.00$& $ 4$& $1.59$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $381$& $ -5$& $-1.00$& $ 0.0$& $-0.1150$& $ 1.00$& $ 4$& $1.42$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $ 50$& $ -5$& $-1.00$& $ 0.0$& $-0.4000$& $ 1.00$& $ 4$& $1.80$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $161$& $ -7$& $-1.00$& $ 0.0$& $-0.2730$& $ 1.00$& $ 4$& $1.69$\tabularnewline
~~54& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~60& $ 53$& $-10$& $-1.00$& $ 0.0$& $-0.1890$& $ 0.00$& $ 4$& $1.97$\tabularnewline
~~72& $118$& $ -8$& $-1.00$& $ 0.0$& $-0.3310$& $ 1.00$& $ 4$& $1.91$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 54$& $ -7$& $-2.00$& $ 0.0$& $-1.0400$& $ 0.00$& $ 3$& $1.93$\tabularnewline
~~96& $ 45$& $ -4$& $-2.00$& $ 0.0$& $-0.3780$& $ 1.00$& $ 4$& $1.68$\tabularnewline
\rowcolor[gray]{.9} ~~108& $ 7$& $ -3$& $-2.00$& $ 0.0$& $-0.8570$& $ 0.00$& $ 1$& $1.46$\tabularnewline
~~120& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $430$& $-10$& $-2.00$& $ 0.0$& $-0.4490$& $ 1.00$& $ 5$& $1.88$\tabularnewline
\rowcolor[gray]{.9} ~~12& $532$& $-11$& $-2.00$& $ 0.0$& $-0.5260$& $ 1.00$& $ 6$& $2.09$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $414$& $-12$& $-2.00$& $ 0.0$& $-0.9230$& $ 1.00$& $ 6$& $2.50$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $319$& $-23$& $-2.00$& $-1.0$& $-1.2400$& $ 1.00$& $ 6$& $3.31$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $256$& $-20$& $-3.00$& $-1.0$& $-1.6000$& $ 1.00$& $ 5$& $3.82$\tabularnewline
~~60& $143$& $-30$& $-3.00$& $-1.0$& $-1.9900$& $ 0.00$& $ 4$& $4.64$\tabularnewline
\rowcolor[gray]{.9} ~~66& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~72& $105$& $-24$& $-2.00$& $ 0.0$& $-1.5000$& $ 1.00$& $ 5$& $4.17$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 93$& $-20$& $-3.00$& $-1.0$& $-1.7300$& $ 1.00$& $ 6$& $4.30$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
~~96& $ 71$& $-12$& $-3.00$& $-1.0$& $-1.6900$& $ 1.00$& $ 5$& $3.67$\tabularnewline
\rowcolor[gray]{.9} ~~108& $ 28$& $ -5$& $-2.25$& $-1.0$& $-1.0000$& $ 0.25$& $ 2$& $1.94$\tabularnewline
~~120& $ 6$& $ -5$& $-2.00$& $-1.5$& $-1.3300$& $-0.25$& $ 2$& $2.34$\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $131$& $-16$& $-3.00$& $-1.0$& $-1.1800$& $ 1.00$& $ 8$& $3.07$\tabularnewline
\rowcolor[gray]{.9} ~~12& $140$& $-19$& $-5.00$& $-2.0$& $-2.5000$& $ 0.00$& $ 5$& $4.15$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $ 43$& $-15$& $-6.50$& $-4.0$& $-4.4200$& $-2.00$& $ 3$& $3.84$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $ 1$& $ -2$& $-2.00$& $-2.0$& $-2.0000$& $-2.00$& $-2$& $$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~54& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~60& $ 2$& $ -4$& $-3.00$& $-2.0$& $-2.0000$& $-1.00$& $ 0$& $2.83$\tabularnewline
~~72& $ 2$& $ -5$& $-4.50$& $-4.0$& $-4.0000$& $-3.50$& $-3$& $1.41$\tabularnewline
\rowcolor[gray]{.9} ~~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.0$& $ 0.0879$& $ 0.00$& $ 2.5$& $0.348$\tabularnewline
\rowcolor[gray]{.9} ~~12& $265$& $-1.0$& $ 0.00$& $ 0.0$& $ 0.1260$& $ 0.00$& $ 4.0$& $0.492$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $404$& $-1.0$& $ 0.00$& $ 0.0$& $ 0.1500$& $ 0.00$& $ 5.0$& $0.557$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $ 46$& $-0.5$& $ 0.00$& $ 0.0$& $ 0.5110$& $ 0.50$& $ 5.0$& $1.180$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $156$& $-0.5$& $ 0.00$& $ 0.0$& $ 0.2020$& $ 0.00$& $ 5.0$& $0.686$\tabularnewline
~~54& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~60& $ 56$& $-0.5$& $ 0.00$& $ 0.0$& $ 0.5540$& $ 0.50$& $11.0$& $1.710$\tabularnewline
~~72& $123$& $-0.5$& $ 0.00$& $ 0.0$& $ 0.4270$& $ 0.25$& $10.0$& $1.240$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 62$& $-0.5$& $ 0.00$& $ 0.0$& $ 0.8630$& $ 1.00$& $12.0$& $1.980$\tabularnewline
~~96& $ 48$& $-0.5$& $ 0.00$& $ 0.0$& $ 0.7600$& $ 0.50$& $15.5$& $2.350$\tabularnewline
\rowcolor[gray]{.9} ~~108& $ 9$& $ 0.0$& $ 0.00$& $ 0.0$& $ 0.2780$& $ 0.50$& $ 1.0$& $0.441$\tabularnewline
~~120& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $426$& $-3.5$& $-0.50$& $ 0.0$& $ 0.1310$& $ 0.50$& $ 3.0$& $0.807$\tabularnewline
\rowcolor[gray]{.9} ~~12& $531$& $-3.0$& $-0.50$& $ 0.0$& $ 0.2010$& $ 0.50$& $ 5.5$& $1.030$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $428$& $-3.0$& $-0.50$& $ 0.0$& $ 0.6020$& $ 1.00$& $11.5$& $1.650$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $330$& $-3.5$& $-0.50$& $ 0.0$& $ 0.8980$& $ 1.50$& $12.5$& $2.370$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $257$& $-3.5$& $-0.50$& $ 0.0$& $ 1.1200$& $ 2.00$& $16.0$& $2.910$\tabularnewline
~~60& $141$& $-3.0$& $-0.50$& $ 0.0$& $ 0.9260$& $ 1.50$& $14.5$& $2.650$\tabularnewline
\rowcolor[gray]{.9} ~~66& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~72& $109$& $-3.0$& $-0.50$& $ 0.0$& $ 1.2200$& $ 1.50$& $15.5$& $3.430$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 95$& $-3.5$& $-0.50$& $ 0.0$& $ 1.3400$& $ 1.50$& $15.0$& $3.410$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
~~96& $ 78$& $-3.5$& $-0.50$& $ 0.0$& $ 1.4000$& $ 1.50$& $14.0$& $3.530$\tabularnewline
\rowcolor[gray]{.9} ~~108& $ 40$& $-2.5$& $-0.50$& $ 0.0$& $ 1.4200$& $ 1.62$& $16.5$& $3.610$\tabularnewline
~~120& $ 7$& $-1.5$& $-0.50$& $ 0.0$& $ 0.1430$& $ 1.00$& $ 1.5$& $1.110$\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $131$& $-2.5$& $ 0.00$& $ 0.5$& $ 0.8130$& $ 1.50$& $ 9.0$& $1.540$\tabularnewline
\rowcolor[gray]{.9} ~~12& $150$& $-2.0$& $ 0.00$& $ 1.0$& $ 1.8800$& $ 2.50$& $11.5$& $2.480$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $ 45$& $-1.0$& $ 1.00$& $ 2.5$& $ 3.2700$& $ 5.00$& $11.5$& $2.860$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $ 1$& $ 2.0$& $ 2.00$& $ 2.0$& $ 2.0000$& $ 2.00$& $ 2.0$& $$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $ 1$& $ 3.0$& $ 3.00$& $ 3.0$& $ 3.0000$& $ 3.00$& $ 3.0$& $$\tabularnewline
~~54& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~60& $ 4$& $ 2.0$& $ 4.25$& $ 8.0$& $ 7.3800$& $11.10$& $11.5$& $4.640$\tabularnewline
~~72& $ 4$& $ 7.0$& $ 8.12$& $10.0$& $10.4000$& $12.20$& $14.5$& $3.330$\tabularnewline
\rowcolor[gray]{.9} ~~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& $269$& $-1.380$& $-0.250$& $ 0.0000$& $ 0.0229$& $ 0.250$& $ 1.6200$& $0.427$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $412$& $-2.000$& $-0.250$& $ 0.0000$& $ 0.0172$& $ 0.250$& $ 1.7500$& $0.441$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $ 48$& $-0.589$& $-0.250$& $ 0.0000$& $-0.0305$& $ 0.125$& $ 0.7500$& $0.304$\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.1460$& $ 0.375$& $ 1.3800$& $0.494$\tabularnewline
~~72& $123$& $-1.320$& $-0.125$& $ 0.1250$& $ 0.1660$& $ 0.500$& $ 1.6200$& $0.538$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 63$& $-1.500$& $-0.125$& $ 0.1250$& $ 0.1930$& $ 0.500$& $ 1.8200$& $0.606$\tabularnewline
~~96& $ 50$& $-1.120$& $-0.125$& $ 0.0625$& $ 0.2010$& $ 0.500$& $ 2.2500$& $0.609$\tabularnewline
\rowcolor[gray]{.9} ~~108& $ 9$& $-0.500$& $-0.250$& $ 0.1250$& $ 0.0278$& $ 0.250$& $ 0.5000$& $0.341$\tabularnewline
~~120& $ 0$& $$& $$& $$& $$& $$& $$& $$\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& $535$& $-2.250$& $-0.375$& $ 0.0000$& $-0.0633$& $ 0.250$& $ 1.6200$& $0.602$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $425$& $-2.880$& $-0.375$& $ 0.0000$& $-0.0239$& $ 0.375$& $ 2.5000$& $0.652$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $323$& $-2.380$& $-0.375$& $-0.0893$& $-0.0448$& $ 0.375$& $ 2.5000$& $0.634$\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& $ 95$& $-2.380$& $-0.375$& $-0.1250$& $-0.0728$& $ 0.250$& $ 2.0000$& $0.658$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
~~96& $ 77$& $-2.500$& $-0.500$& $-0.2500$& $-0.1790$& $ 0.250$& $ 2.2100$& $0.706$\tabularnewline
\rowcolor[gray]{.9} ~~108& $ 39$& $-2.250$& $-0.500$& $-0.1250$& $-0.1260$& $ 0.250$& $ 1.8800$& $0.777$\tabularnewline
~~120& $ 8$& $-1.880$& $-0.625$& $-0.3750$& $-0.2030$& $ 0.219$& $ 1.6200$& $1.010$\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $124$& $-1.880$& $-0.406$& $ 0.0000$& $-0.0592$& $ 0.375$& $ 1.7500$& $0.725$\tabularnewline
\rowcolor[gray]{.9} ~~12& $127$& $-2.000$& $-0.473$& $-0.0357$& $-0.1340$& $ 0.375$& $ 2.0000$& $0.734$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $ 33$& $-1.750$& $-0.500$& $-0.2500$& $-0.1440$& $ 0.250$& $ 2.1200$& $0.779$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $ 1$& $-0.500$& $-0.500$& $-0.5000$& $-0.5000$& $-0.500$& $-0.5000$& $$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~54& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~60& $ 2$& $-0.875$& $-0.665$& $-0.4550$& $-0.4550$& $-0.246$& $-0.0357$& $0.593$\tabularnewline
~~72& $ 1$& $-0.875$& $-0.875$& $-0.8750$& $-0.8750$& $-0.875$& $-0.8750$& $$\tabularnewline
\rowcolor[gray]{.9} ~~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.000$& $0.01720$& $0.125$& $1.62$& $0.361$\tabularnewline
\rowcolor[gray]{.9} ~~12& $263$& $-1.500$& $-0.1250$& $0.000$& $0.04230$& $0.250$& $2.12$& $0.406$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $395$& $-1.500$& $-0.1250$& $0.000$& $0.04180$& $0.250$& $2.12$& $0.413$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $ 44$& $-1.380$& $-0.1250$& $0.125$& $0.17200$& $0.319$& $2.12$& $0.604$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $155$& $-1.250$& $-0.1550$& $0.000$& $0.11400$& $0.250$& $2.12$& $0.490$\tabularnewline
~~54& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~60& $ 54$& $-0.750$& $-0.1250$& $0.000$& $0.14100$& $0.250$& $2.46$& $0.568$\tabularnewline
~~72& $123$& $-1.500$& $-0.1250$& $0.000$& $0.20600$& $0.438$& $2.25$& $0.621$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 62$& $-2.380$& $-0.0938$& $0.134$& $0.36500$& $0.625$& $2.75$& $0.883$\tabularnewline
~~96& $ 48$& $-1.380$& $-0.1250$& $0.000$& $0.23700$& $0.500$& $3.00$& $0.690$\tabularnewline
\rowcolor[gray]{.9} ~~108& $ 9$& $-0.125$& $ 0.1250$& $0.375$& $0.48600$& $0.625$& $1.25$& $0.474$\tabularnewline
~~120& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $424$& $-1.880$& $-0.2500$& $0.000$& $0.00345$& $0.375$& $2.12$& $0.561$\tabularnewline
\rowcolor[gray]{.9} ~~12& $529$& $-2.750$& $-0.2500$& $0.000$& $0.01660$& $0.357$& $2.25$& $0.587$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $428$& $-1.880$& $-0.2500$& $0.000$& $0.10500$& $0.500$& $2.12$& $0.660$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $322$& $-2.250$& $-0.2500$& $0.125$& $0.15300$& $0.500$& $2.14$& $0.706$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $245$& $-1.750$& $-0.2500$& $0.125$& $0.22500$& $0.500$& $2.88$& $0.710$\tabularnewline
~~60& $137$& $-1.620$& $-0.1790$& $0.125$& $0.27000$& $0.625$& $2.50$& $0.783$\tabularnewline
\rowcolor[gray]{.9} ~~66& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~72& $109$& $-1.620$& $-0.2500$& $0.125$& $0.20200$& $0.625$& $2.29$& $0.697$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 98$& $-1.250$& $-0.2630$& $0.125$& $0.25900$& $0.750$& $2.50$& $0.823$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
~~96& $ 77$& $-2.000$& $-0.1250$& $0.250$& $0.27500$& $0.625$& $2.38$& $0.776$\tabularnewline
\rowcolor[gray]{.9} ~~108& $ 41$& $-0.750$& $-0.2500$& $0.125$& $0.31700$& $0.750$& $2.50$& $0.706$\tabularnewline
~~120& $ 7$& $-0.857$& $-0.4020$& $0.000$& $0.13500$& $0.554$& $1.50$& $0.816$\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $130$& $-2.750$& $-0.2500$& $0.000$& $0.04210$& $0.479$& $1.62$& $0.616$\tabularnewline
\rowcolor[gray]{.9} ~~12& $148$& $-1.620$& $ 0.0000$& $0.125$& $0.21900$& $0.500$& $2.12$& $0.512$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $ 45$& $-1.540$& $ 0.0000$& $0.000$& $0.16100$& $0.375$& $1.50$& $0.574$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $ 1$& $ 1.250$& $ 1.2500$& $1.250$& $1.25000$& $1.250$& $1.25$& $$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $ 1$& $ 0.000$& $ 0.0000$& $0.000$& $0.00000$& $0.000$& $0.00$& $$\tabularnewline
~~54& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~60& $ 4$& $ 0.000$& $ 0.0938$& $0.625$& $0.84400$& $1.380$& $2.12$& $0.992$\tabularnewline
~~72& $ 4$& $ 0.000$& $ 0.8440$& $1.470$& $1.27000$& $1.900$& $2.12$& $0.943$\tabularnewline
\rowcolor[gray]{.9} ~~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.103000$& $ 0.00000$& $ 0.017800$& $ 0.1280$& $ 0.8210$& $0.253$\tabularnewline
\rowcolor[gray]{.9} ~~12& $269$& $-0.751$& $-0.103000$& $ 0.00000$& $ 0.028900$& $ 0.1280$& $ 1.4600$& $0.253$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $412$& $-1.340$& $-0.103000$& $ 0.00000$& $ 0.014000$& $ 0.1320$& $ 1.1800$& $0.294$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $ 48$& $-0.526$& $-0.103000$& $-0.02560$& $ 0.010700$& $ 0.1090$& $ 0.7440$& $0.221$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $164$& $-0.985$& $-0.107000$& $ 0.04180$& $ 0.043100$& $ 0.1670$& $ 1.7200$& $0.304$\tabularnewline
~~54& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~60& $ 57$& $-0.725$& $-0.046600$& $ 0.13300$& $ 0.112000$& $ 0.2210$& $ 0.7270$& $0.314$\tabularnewline
~~72& $123$& $-1.010$& $-0.033400$& $ 0.10500$& $ 0.134000$& $ 0.2570$& $ 1.3000$& $0.328$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 63$& $-0.784$& $-0.049200$& $ 0.08160$& $ 0.133000$& $ 0.3040$& $ 1.1600$& $0.358$\tabularnewline
~~96& $ 50$& $-1.110$& $ 0.000675$& $ 0.08570$& $ 0.184000$& $ 0.2200$& $ 2.6400$& $0.522$\tabularnewline
\rowcolor[gray]{.9} ~~108& $ 9$& $-0.254$& $ 0.000675$& $ 0.13100$& $ 0.128000$& $ 0.2510$& $ 0.5140$& $0.251$\tabularnewline
~~120& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $430$& $-2.080$& $-0.219000$& $-0.02630$& $-0.035000$& $ 0.1500$& $ 1.5900$& $0.376$\tabularnewline
\rowcolor[gray]{.9} ~~12& $538$& $-1.690$& $-0.235000$& $-0.00837$& $-0.020700$& $ 0.1860$& $ 1.6700$& $0.398$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $427$& $-1.690$& $-0.205000$& $ 0.00000$& $ 0.022700$& $ 0.2310$& $ 1.7400$& $0.447$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $319$& $-1.730$& $-0.205000$& $ 0.02560$& $ 0.043800$& $ 0.3050$& $ 1.9900$& $0.453$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $249$& $-2.310$& $-0.247000$& $ 0.02560$& $ 0.031600$& $ 0.3080$& $ 2.7100$& $0.529$\tabularnewline
~~60& $139$& $-1.210$& $-0.141000$& $ 0.05130$& $ 0.072500$& $ 0.3260$& $ 1.1300$& $0.438$\tabularnewline
\rowcolor[gray]{.9} ~~66& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~72& $103$& $-1.130$& $-0.165000$& $ 0.05400$& $ 0.095300$& $ 0.3850$& $ 1.4800$& $0.467$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 95$& $-1.090$& $-0.200000$& $ 0.00540$& $ 0.017100$& $ 0.2040$& $ 1.6000$& $0.476$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
~~96& $ 77$& $-1.090$& $-0.246000$& $ 0.00540$& $ 0.030100$& $ 0.2180$& $ 2.5900$& $0.499$\tabularnewline
\rowcolor[gray]{.9} ~~108& $ 39$& $-0.862$& $-0.302000$& $-0.04990$& $-0.029300$& $ 0.1770$& $ 0.7940$& $0.427$\tabularnewline
~~120& $ 8$& $-1.370$& $-0.480000$& $-0.16000$& $-0.210000$& $ 0.1310$& $ 0.6810$& $0.649$\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $120$& $-1.690$& $-0.298000$& $ 0.02320$& $-0.011900$& $ 0.2840$& $ 1.5100$& $0.554$\tabularnewline
\rowcolor[gray]{.9} ~~12& $124$& $-1.380$& $-0.344000$& $-0.01060$& $ 0.000392$& $ 0.2910$& $ 2.1000$& $0.553$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $ 33$& $-1.430$& $-0.179000$& $ 0.07690$& $ 0.089000$& $ 0.4100$& $ 2.3200$& $0.663$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $ 1$& $ 0.553$& $ 0.553000$& $ 0.55300$& $ 0.553000$& $ 0.5530$& $ 0.5530$& $$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~54& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~60& $ 2$& $-0.543$& $-0.394000$& $-0.24500$& $-0.245000$& $-0.0957$& $ 0.0535$& $0.422$\tabularnewline
~~72& $ 1$& $-0.191$& $-0.191000$& $-0.19100$& $-0.191000$& $-0.1910$& $-0.1910$& $$\tabularnewline
\rowcolor[gray]{.9} ~~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.8790$& $-0.0513$& $0.0000$& $0.00909$& $0.0769$& $0.846$& $0.193$\tabularnewline
\rowcolor[gray]{.9} ~~12& $263$& $-1.2100$& $-0.0328$& $0.0000$& $0.03960$& $0.0979$& $1.620$& $0.257$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $395$& $-1.1300$& $-0.0526$& $0.0000$& $0.03670$& $0.0900$& $2.000$& $0.270$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $ 44$& $-1.3300$& $ 0.0000$& $0.0599$& $0.13900$& $0.2350$& $2.050$& $0.477$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $156$& $-1.0500$& $-0.0516$& $0.0000$& $0.08570$& $0.1290$& $1.680$& $0.341$\tabularnewline
~~54& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~60& $ 54$& $-0.5400$& $-0.0447$& $0.0395$& $0.16500$& $0.2110$& $2.540$& $0.509$\tabularnewline
~~72& $122$& $-0.9940$& $-0.0499$& $0.0526$& $0.16800$& $0.2770$& $2.520$& $0.462$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 62$& $-1.5400$& $ 0.0000$& $0.1050$& $0.31300$& $0.3770$& $2.950$& $0.750$\tabularnewline
~~96& $ 48$& $-0.9940$& $-0.0508$& $0.0135$& $0.10800$& $0.1590$& $2.470$& $0.477$\tabularnewline
\rowcolor[gray]{.9} ~~108& $ 9$& $-0.0301$& $ 0.0789$& $0.2670$& $0.30800$& $0.3950$& $1.090$& $0.341$\tabularnewline
~~120& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\hline
{\bfseries MCI}&&&&&&&&\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $426$& $-1.4600$& $-0.1670$& $0.0206$& $0.05150$& $0.2540$& $1.990$& $0.411$\tabularnewline
\rowcolor[gray]{.9} ~~12& $529$& $-2.0400$& $-0.1280$& $0.0513$& $0.08600$& $0.2840$& $2.090$& $0.460$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $429$& $-1.4100$& $-0.1050$& $0.1130$& $0.19400$& $0.4100$& $2.410$& $0.538$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $321$& $-2.1400$& $-0.1030$& $0.1330$& $0.25300$& $0.4890$& $2.510$& $0.617$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $245$& $-2.1100$& $-0.1030$& $0.1540$& $0.28400$& $0.5710$& $2.620$& $0.648$\tabularnewline
~~60& $137$& $-1.0500$& $-0.1030$& $0.1660$& $0.32500$& $0.6910$& $2.400$& $0.676$\tabularnewline
\rowcolor[gray]{.9} ~~66& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~72& $109$& $-1.1000$& $-0.1010$& $0.1520$& $0.26500$& $0.5200$& $2.250$& $0.622$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 98$& $-1.3400$& $-0.0979$& $0.1580$& $0.37600$& $0.7420$& $2.400$& $0.781$\tabularnewline
\hline
{\bfseries Dementia}&&&&&&&&\tabularnewline
~~96& $ 77$& $-1.2100$& $-0.0486$& $0.1320$& $0.40500$& $0.5790$& $2.510$& $0.794$\tabularnewline
\rowcolor[gray]{.9} ~~108& $ 41$& $-0.5890$& $-0.0513$& $0.1340$& $0.43800$& $0.8200$& $2.820$& $0.725$\tabularnewline
~~120& $ 7$& $-0.4090$& $-0.2370$& $0.0000$& $0.04960$& $0.1970$& $0.836$& $0.422$\tabularnewline
\rowcolor[gray]{.9} ~~3& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
~~6& $130$& $-2.5000$& $-0.1470$& $0.1260$& $0.10500$& $0.4100$& $1.330$& $0.524$\tabularnewline
\rowcolor[gray]{.9} ~~12& $149$& $-1.4600$& $ 0.1090$& $0.3420$& $0.34800$& $0.6010$& $1.570$& $0.465$\tabularnewline
~~18& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~24& $ 45$& $-0.4740$& $ 0.1060$& $0.4470$& $0.43400$& $0.7780$& $1.890$& $0.505$\tabularnewline
~~30& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~36& $ 1$& $ 1.1100$& $ 1.1100$& $1.1100$& $1.11000$& $1.1100$& $1.110$& $$\tabularnewline
~~42& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~48& $ 1$& $ 0.7180$& $ 0.7180$& $0.7180$& $0.71800$& $0.7180$& $0.718$& $$\tabularnewline
~~54& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\rowcolor[gray]{.9} ~~60& $ 4$& $-0.2410$& $ 0.4780$& $0.7580$& $0.97900$& $1.2600$& $2.640$& $1.200$\tabularnewline
~~72& $ 4$& $ 0.6750$& $ 1.0100$& $1.2000$& $1.43000$& $1.6200$& $2.660$& $0.858$\tabularnewline
\rowcolor[gray]{.9} ~~84& $ 0$& $$& $$& $$& $$& $$& $$& $$\tabularnewline
\hline
\end{tabular}\end{center}
\end{table}