rollcall
objectcomputeMargins(object, dropList = NULL)
rollcall
rollcall
, with a component
voteMargins
that is a matrix with four columns:dropList
is first applied
to the rollcall
object, via dropRollCall
.
Then, for each remaining roll call vote, the number of legislators
voting codes
component of the
rollcall
object via the convertCodes
function. The matrix of vote counts are added to the rollcall
object as a component voteMargins
.dropRollCall
on specifying a dropList
.
The vote-specific marginals produced by theis function are used by as
dropRollCall
, summary.ideal
and
predict.ideal
.data(s109)
tmp <- computeMargins(s109)
dim(tmp$voteMargins) ## 556 by 4
tmp <- computeMargins(s109,
dropList=list(codes="notInLegis",lop=0))
dim(tmp$voteMargins) ## 477 by 4
Run the code above in your browser using DataLab