UN(wnominate)
UN()所属R语言包:wnominate
United Nations Vote Data
联合国投票数据
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This data frame contains votes from the first three sessions of the United Nations. The same data can also be downloaded as a CSV file from www.voteview.com. The object of this data set is to provide an example of how one might use the W-NOMINATE package on a set of roll call votes not already stored in ORD format.
该数据框包含的前三届会议的联合国的选票。同样的数据也可以下载为CSV文件www.voteview.com“。这样的数据集的目的是提供一个例子,人们可能如何使用唱名票尚未存储在ORD格式的一组上的W-提名包。
用法----------Usage----------
data(UN)
值----------Value----------
This data frame contains votes from the first three sessions of the United Nations. The first column are country names, while the second column indicates membership in the former Warsaw Pact (used as a 'party' variable). Yeas are coded 1, 2, and 3, nays are coded 4, 5, and 6, missing votes are coded 7, 8, and 9, and not being in the General Assembly is coded as a 0.
该数据框包含的前三届会议的联合国的选票。第一列是国名,而第二列显示前华沙条约组织(作为“党的变量)的成员。十年。编码1,2,和3,该院编码4,5,和6,丢失票被编码7,8和9,而不是在大会的被编码为0。
(作者)----------Author(s)----------
Keith Poole <a href="mailto:ktpoole@uga.edu">ktpoole@uga.edu</a>
Jeffrey Lewis <a href="mailto:jblewis@ucla.edu">jblewis@ucla.edu</a>
James Lo <a href="mailto:lo@uni-mannheim.de">lo@uni-mannheim.de</a>
Royce Carroll <a href="mailto:rcarroll@rice.edu">rcarroll@rice.edu</a>
源----------Source----------
Keith Poole. 2005. UN Vote Data. http://www.voteview.com/.
基思·普尔。 2005年。联合国投票数据。 http://www.voteview.com/。
参见----------See Also----------
'wnominate'.
“wnominate”。
实例----------Examples----------
#The same data set can be obtained from downloading the UN.csv[相同的数据集可以从下载的UN.csv的]
#file from www.voteview.com and reading it as follows:[从www.voteview.com读它的文件如下:]
#UN<-read.csv("C:/UN.csv",header=FALSE,strip.white=TRUE)[UN <read.csv(“C :/ UN.csv”,头= FALSE,strip.white = TRUE)]
data(UN)
UN<-as.matrix(UN)
UN[1:5,1:6]
UNnames<-UN[,1]
legData<-matrix(UN[,2],length(UN[,2]),1)
colnames(legData)<-"party"
UN<-UN[,-c(1,2)]
rc <- rollcall(UN, yea=c(1,2,3), nay=c(4,5,6),
missing=c(7,8,9),notInLegis=0, legis.names=UNnames,
legis.data=legData,
desc="UN Votes",
source="www.voteview.com")
result<-wnominate(rc,polarity=c(1,1))
plot(result)
summary(result)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|