Skip to contents

Get fitted object from MCMC results

Usage

get_start_vals(
  start_vals,
  Y,
  family,
  xP,
  rvar,
  cvar,
  R,
  bip = FALSE,
  unit_var = 1
)

Arguments

start_vals

List object that is null or contains starting values

Y

dependent variable in array format

family

character vector (e.g. 'bin', 'nrm') specifying family type

xP

number of exogenous covariates

rvar

logical indicating whether to include sender random effects

cvar

logical indicating whether to include receiver random effects

R

Number of dimensions for multiplicative effects

bip

logical; TRUE for a bipartite (rectangular) panel, in which case the Poisson start values keep the diagonal of a square matrix as a real cell

unit_var

the unit of the response, the variance a normal response is measured in (1 where the link fixes the scale of the latent response): the starting dyadic variance, the spread of the starting coefficients and the floor of the starting covariance of the effects are written in it

Value

List of starting values for MCMC

Details

In addition to the slots listed below, any of the dynamic hyperparameter scalars rho_uv, sigma_uv, rho_ab, and sigma_ab present in start_vals (for example from als_start_vals) are passed through so a dynamic MCMC run can warm-start them, as are the adapted step sizes level_move_sd and dev_move_sd of the binary scale move, so that a run continued with lame_resume keeps the step it had tuned rather than re-adapting from the default.

Author

Shahryar Minhas