if (FALSE) {
data(RandomVA1)
fit1<- insilico(RandomVA1, subpop = NULL,
Nsim = 1000, burnin = 500, thin = 10 , seed = 1,
auto.length = FALSE)
summary(fit1, id = "d199")
# Calculate aggregated COD distributions
agg.csmf <- get.indiv(data = RandomVA1, fit1, CI = 0.95,
is.aggregate = TRUE, by = NULL)
head(agg.csmf)
agg.by.sex.age <- get.indiv(data = RandomVA1, fit1, CI = 0.95,
is.aggregate = TRUE, by = list("sex", "age"))
head(agg.by.sex.age$mean)
# Obtain individual level P(Y|X) posterior draws (N by C by Nitr array)
prob <- get.indiv(data = RandomVA1, fit1, is.sample = TRUE)
dim(prob)
}
Run the code above in your browser using DataLab