Zheng et al (2006) Barrier Effects Model
zheng_bem.Rd
Bayesian model for ARD...
zheng_bem_count
-- model for count responses
zheng_bem_dichotomous
-- model for dichotmous responses proposed by Baum & Marsden (2023).
zheng_bem_trichotomous
-- model for trichotomous responses proposed by Baum & Marsden (2023).
Usage
zheng_bem_count(N, K, y, ...)
zheng_bem_dichotomous(N, K, y, ...)
zheng_bem_trichotomous(N, K, y, ...)
Arguments
- N
integer; sample size
- K
integer; number of sub-populations
- y
integer matrix; ARD
- ...
other arguments passed to
cmdstanr::sample()
Value
Object of class cmdstanr::CmdStanMCMC containing the samples.
Details
Calling this function(s) will load the model object using
get_model()
and sample from the posterior using the cmdstanr::sample()
method.
References
Baum, D. S., & Marsden, P. V. (2023). Uses and limitations of dichotomous aggregate relational data. Social Networks, 74, 42–61. doi:10.1016/j.socnet.2023.02.001
Zheng, T., Salganik, M. J., & Gelman, A. (2006). How Many People Do You Know in Prison? Using Overdispersion in Count Data to Estimate Social Structure in Networks. Journal of the American Statistical Association, 101(474), 409–423. doi:10.1198/016214505000001168
See also
Use get_model()
to return Stan model object of class
cmdstanr::CmdStanModel without fitting it.
Other models in this package:
maltiel_bem
,
maltiel_rdm
,
test_model()
,
zheng_gp
Other models of Zheng et al (2006):
zheng_gp