ns <- c(4, 6, 8)
Slist <- createS(ns, p = 6)
pooledS(Slist, ns)
pooledS(Slist, ns, mle = FALSE)
# Pool the first two classes only, leave out the remaning
pooledS(Slist, ns, subset = c(TRUE, TRUE, FALSE))
pooledS(Slist, ns, subset = ns > 5) # Pool studies with sample size > 5
# Pooled precision matrices
ns <- c(7, 8, 9)
Plist <- lapply(createS(ns, p = 6), solve)
pooledS(Plist, ns)
Run the code above in your browser using DataLab