powered by
nomprob takes estimates from the W-NOMINATE model and returns a matrix of yea choice probabilities. It is used to generate a test rollcall object using generateTestData.
nomprob
rollcall
generateTestData
nomprob(yea, nay, ideal, Beta, dimweight, normal=1)
An n x m matrix of probabilities giving the probability of yea for each of n legislators on each of m votes
For items below, m is the number of roll calls, n the number of legislators, and d the number of dimensions.
m x d matrix of yea locations.
m x d matrix of no locations.
n x d matrix of legislator ideal points.
scalar giving beta parameter from W-NOMINATE. Usually set to 15.
d x 1 vector of dimension weights. Usually set to 0.5.
integer, '1' generates data using normal probabilities, any other value generates data using logistic probabilities.
Keith Poole ktpoole@uga.edu
Jeffrey Lewis jblewis@ucla.edu
James Lo lojames@usc.edu
Royce Carroll rcarroll@rice.edu
'generateTestData' and 'wnominate'.
yp <- matrix(rep(0,10),nrow=10) np <- matrix(rep(0.1,10),nrow=10) ideal <- matrix(rep(0,10),nrow=10) nomprob(yp,np,ideal,15,0.5) #a matrix of yea probabilities
Run the code above in your browser using DataLab