Estimates p2 model parameters with the adaptive random walk algorithm as described in Zijlstra, Van Duijn and Snijders (2009) <doi: 10.1348/000711007X255336>.
receiver: Optinal receiver covariates of length n.
density: Optional density covariates of dimensions n*n.
reciprocity: Optional symmetric reciprocity covariates of dimensions n*n.
burnin: Optional specification of number of burn-in iterations (default is 10000).
sample: Optional specification of number of MCMC samples (default is 40000).
adapt: Optional number of adaptive sequenses (default is 100).
seed: Optonal specification of random seed (delfault is 1).
Returns
Returns a matrix with MCMC means, standard deviations, quantiles and estimated effective sample sizes for p2 parameters.
References
Zijlstra, B.J.H., Duijn, M.A.J. van, and Snijders, T.A.B. (2009). MCMC estimation for the p2 network regression model with crossed random effects. British Journal of Mathematical and Statistical Psychology, 62, 143-166.