Description Usage Arguments Value Examples
get fitted mean for nested model with subclass mixing weights that are the same among cases
1 2 3 4 5 6 7 | get_fitted_mean_nested(
slice,
res_nplcm,
model_options,
data_nplcm,
clean_options
)
|
slice |
the slice of BrS data that are modeled |
res_nplcm |
matrix of MCMC samples |
model_options |
see |
data_nplcm |
see |
clean_options |
see |
a matrix of no. of rows equal to retained MCMC samples, no. of columns equal to the no. of measurement dimensions within a slice.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
result_folder <- c("C:/2015_09_17_01KEN_nplcm")
out <- nplcm_read_folder(result_folder)
data_nplcm <- list(Mobs = out$Mobs, Y = out$Y)
slice <- 1
# fitted positive rates for pathogens separately among cases and controls:
get_fitted_mean_nested(slice,out$res_nplcm,out$model_options,data_nplcm,
out$clean_options)
# names of pathogens:
colnames(out$Mobs$MBS[[slice]])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.