get_fitted_mean_nested: get fitted mean for nested model with subclass mixing weights...

Description Usage Arguments Value Examples

View source: R/plot-panels.R

Description

get fitted mean for nested model with subclass mixing weights that are the same among cases

Usage

1
2
3
4
5
6
7
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/baker documentation built on May 22, 2021, 12:05 p.m.