update.gamma: Update Gamma Parameters (Sparse)

Description Usage Arguments Value

Description

The user should never call this function directly! The sparse version ignores latent variables for unobserved votes

Usage

1
2
## S3 method for class 'gamma'
update(Z, alpha, beta, prior, data)

Arguments

Z

An N \times J matrix of latent variables.

alpha

A J vector of intercepts.

beta

An J \times D matrix of question slope parameters.

prior

A list of priors for the parameters ab, gamma:

  • sigma.inv.ab a (D+1)\times (D+1) positive definite matrix corresponding to the inverse of the prior covariance matrix for (α, β).

  • mu.ab a (D+1) vector corresponding to the prior mean of (α, β).

  • sigma.inv.gamma a D \times D definite matrix corresponding to the inverse of the prior covariance matrix for γ.

  • mu.gamma a D vector corresponding to the prior mean of γ.

data

A list of data values:

  • Y an N \times J matrix of \pm 1 or NA.

  • N, J the dimensions of Y.

  • D the dimensions of political conflict being modeled.

Value

An updated N \times D matrix of actor ideal points.


matthewtyler/MultiScale documentation built on May 8, 2019, 11:57 p.m.