Skip to contents

Individual assignment summary

Usage

indiv_assign(mdl_out, mdl_dat, show_t1_grps = TRUE)

Arguments

mdl_out

Model output object name.

mdl_dat

Input data object name.

show_t1_grps

Set it to be FALSE if you want the proportions of broad-scale groups to be combined. Default = TRUE.

Value

Individual assignment summary

Examples

# set up input data and run multistage model
msgsi_dat <-
  prep_msgsi_data(mixture_data = mix,
  baseline1_data = base_templin, baseline2_data = base_yukon,
  pop1_info = templin_pops211, pop2_info = yukon_pops50, sub_group = 3:5)
#> Compiling input data, may take a minute or two...
#> Time difference of 9.696771 secs

# run model
msgsi_out <- msgsi_mdl(msgsi_dat, nreps = 25, nburn = 15, thin = 1, nchains = 1)
#> Running model (and the category is... Linen Vs. Silk!)
#> Time difference of 1.553305 secs
#> June-06-2025 16:49

# individual assignment summary
ind_iden <- indiv_assign(msgsi_out, msgsi_dat)