找回密码
 注册
查看: 686|回复: 0

R语言 WhatIf包 plot.whatif()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 22:27:09 | 显示全部楼层 |阅读模式
plot.whatif(WhatIf)
plot.whatif()所属R语言包:WhatIf

                                        Plot Cumulative Frequencies of Distances for "whatif" Objects
                                         图累积频率为“WHATIF”对象的距离

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Generates a cumulative frequency plot of distances from an object of class "whatif".  The cumulative frequencies (the fraction of rows in the observed data set with either Gower or (squared) Euclidian distances to the counterfactuals  less than the given value on the horizontal axis)  appear on the vertical axis.  
产生的累计频率曲线的距离对象的类“WHATIF”。出现的累积频率(所观察到的数据集,在横轴上的给定值小于与高尔或()的平方欧几里得距离的反事实的馏分中的行)上的垂直轴。


用法----------Usage----------


## S3 method for class 'whatif':
plot(x, type = "f", numcf = NULL, eps = FALSE, ...)



参数----------Arguments----------

参数:x
An object of class "whatif", the output of the function whatif.
对象的类的“WHATIF”,输出的功能whatif。


参数:type
A character string; the type of plot of the cumulative frequencies  of the distances to be produced.  Possible types are:  "f"  for cumulative frequencies only; "l" for LOWESS smoothing of cumulative frequencies only; and "b" for both cumulative frequencies and LOWESS smoothing.  The default is "f".
一个字符串类型的距离产生的累积频率的图。可能的类型有:"f"只为累积频率,“"l"LOWESS平滑的累积频率; "b"累积频率和LOWESS平滑。默认的"f"。


参数:numcf
A numeric vector; the specific counterfactuals to be plotted. Each element represents a counterfactual, specifically its row number from the matrix or data frame of counterfactuals.  By default, all counterfactuals are plotted.  Default is NULL.
一个数值向量,具体的反事实被绘制。每个元素都表示一个反事实的,特别是其行矩阵反事实或数据框的数量。默认情况下,所有的反事实的绘制。默认是NULL。


参数:eps
A Boolean; should an encapsulated postscript file be generated?  Setting the argument equal to TRUE generates an .eps file, which is saved to your working directory with file name of form 'graph_'type'_'numcf'.eps', where 'type' and 'numcf' are the values of the respective arguments.  Specifically, 'numcf' takes the value of  the first element of the argument numcf unless all counterfactuals were plotted, in which case all appears in the place of 'numcf'. Default is FALSE, which instead prints the graph to the screen.
一个布尔值,封装的PostScript文件产生的呢?设置的参数等于TRUE产生一个.eps文件,该文件保存到你的工作目录与文件名的形式graph_'type'_'numcf'.eps,'type'和'numcf' 的各个参数的值。具体来说,'numcf'的第一个元素的参数值numcf除非所有的反事实,在这种情况下,all出现在'numcf'的绘制。默认是的FALSE,而不是在屏幕上打印出图。


参数:...
Further arguments passed to and from other methods.
更多参数传递给其他方法。


Details

详细信息----------Details----------

LOWESS scatterplot smoothing using the function lowess is plotted  in blue. Counterfactuals in the convex hull are plotted with a solid line  and counterfactuals outside of the convex hull with a dashed line.
LOWESS散点图平滑使用的功能lowess的绘制为蓝色。在凸壳的反设事实用实线和反事实以外的凸状的船体用虚线绘制。


值----------Value----------

A graph printed to the screen or an encapsulated postscript file saved to your working directory.  In the latter case, the file name has form 'graph_'type'_'numcf'.eps', where 'type' and 'numcf' are the values of the respective arguments.  
一个图形打印到屏幕上或封装的PostScript文件保存到你的工作目录。在后一种情况下,文件名的形式graph_'type'_'numcf'.eps,其中'type'和'numcf'的各个参数的值。


(作者)----------Author(s)----------


Stoll, Heather <a href="mailto:hstoll@polsci.ucsb.edu">hstoll@polsci.ucsb.edu</a>, King, Gary
<a href="mailto:king@harvard.edu">king@harvard.edu</a> and Zeng, Langche <a href="mailto:zeng@ucsd.edu">zeng@ucsd.edu</a>



参考文献----------References----------

Extreme Counterfactuals."  Political Analysis 14 (2). Available from http://GKing.Harvard.Edu.
King, Gary and Langche Zeng.  2007.  "When Can History Be Our Guide? The Pitfalls of Counterfactual Inference."  International Studies Quarterly

参见----------See Also----------

whatif, summary.whatif, print.whatif, print.summary.whatif
whatif,summary.whatif,print.whatif,print.summary.whatif


实例----------Examples----------


##  Create example data sets and counterfactuals[#创建示例数据集和反事实]
my.cfact <- matrix(rnorm(3*5), ncol = 5)
my.data <- matrix(rnorm(100*5), ncol = 5)

##  Evaluate counterfactuals[#评估反事实]
my.result <- whatif(data = my.data, cfact = my.cfact)

##  Plot cumulative frequencies for the first two counterfactuals (rows[前两个反事实(行#图累积频率]
##  1 and 2) in my.cfact[#1和2)在my.cfact]
plot(my.result, type = "b", numcf = c(1, 2))

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-25 02:29 , Processed in 0.023229 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表