rowdistr(s20x)
rowdistr()所属R语言包:s20x
Row distributions from a cross-tabulation of two variables
行分布的两个变量的交叉制表
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Produces summaries and plots from a cross-tabulation. The output produced depends on the parameter "comp". Columns relate to response categories and rows to different populations.
产生从交叉制表的总结和图。的输出取决于参数“补偿”。列涉及到不同人群的响应类型和行。
用法----------Usage----------
rowdistr(crosstablist, comp="basic", conf.level=0.95)
参数----------Arguments----------
参数:crosstablist
a list produced by "crosstabs" or a matrix containing a 2-way table of counts (without marginal totals).
“交叉表”或一个矩阵包含一个2路的表的计数(无边际总量)的通过产生的列表。
参数:comp
three options: "basic" (default), "within", and "between".
三个选项:“基本”(默认值),“内”,和“关系”。
参数:conf.level
confidence level of the intervals.
的时间间隔的置信水平。
Details
详细信息----------Details----------
The "basic" option (default) produces the response distribution for each row population together with comparative bar charts.
“基本”选项(默认)产生反应的每一行人口分布的比较条形图。
If comp="between" the resulting output displays how the probability of falling into a response class (column) differs between populations. Confidence intervals for differences in proportions are produced together with a set of barcharts with LSD intervals.
如果COMP =“之间”的输出结果显示,不同种群之间的概率落入一个响应类(列)。置信区间的比例的差异产生一起用LSD的时间间隔的一组barcharts。
If comp="within" the resulting output shows the extent to which the component probabilities of the same row distribution differ. Separate Chi-square tests for uniformity are produced for each row distribution as are confidence intervals for differences in proportions within the same distribution.
如果COMP =“内”的输出结果显示在何种程度上的组件在同一行的概率分布是不同的。独立的卡方检验生产的每一行分配的均匀性,在相同的分布比例差异的置信区间。
值----------Value----------
A matrix of row proportions, i.e cell counts divided by row marginals.
矩阵的行比例,即单元数除以行的边缘人。
参见----------See Also----------
"crosstabs"
“交叉表”
实例----------Examples----------
data(body.df)
z <- crosstabs(~ ethnicity + married, data = body.df)
rowdistr(z)
rowdistr(z, comp="between")
rowdistr(z, comp="within")
##from matrix of counts[#从矩阵的计数]
z <- matrix(c(4,3,2,6,47,20,40,62,11,8,7,22,3,0,1,10), 4, 4)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|