Skip to contents

NOMINATE log-likelihood and GMP

Usage

morie_spatial_voting_nominate_loglik(
  votes,
  x,
  z_yea,
  z_nay,
  beta = 15,
  w = NULL
)

Arguments

votes

Legislator-by-vote binary matrix.

x

Ideal points.

z_yea

Yea outcomes.

z_nay

Nay outcomes.

beta

Signal-to-noise.

w

Dimension weights.

Value

List with loglik, GMP, n_correct, n_total.

References

Poole & Rosenthal (1997).

Examples

v <- matrix(stats::rbinom(20, 1, 0.5), 4, 5)
x <- matrix(rnorm(4), 4, 1); zy <- matrix(rnorm(5), 5, 1)
zn <- matrix(rnorm(5), 5, 1)
morie_spatial_voting_nominate_loglik(v, x, zy, zn)
#> $loglik
#> [1] -76.64283
#> 
#> $GMP
#> [1] 0.45
#> 
#> $n_correct
#> [1] 9
#> 
#> $n_total
#> [1] 20
#>