get_fitted_mean_nested: get fitted mean for nested model with the same subclass...

Description Usage Arguments Value Examples

View source: R/plot-BrS-panel.R

Description

get fitted mean for nested model with the same subclass mixing weights

Usage

1
2
get_fitted_mean_nested(slice, res_nplcm, model_options, data_nplcm,
  clean_options)

Arguments

slice

the slice of BrS data that are modeled

res_nplcm

matrix of MCMC samples

model_options

see nplcm

data_nplcm

see nplcm

clean_options

see clean_perch_data

Value

a matrix of no. of rows equal to retained MCMC samples, no. of columns equal to the no. of measurement dimensions within a slice.

Examples

 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)

oslerinhealth-releases/baker documentation built on Nov. 4, 2019, 11:11 p.m.