summary.whatif(WhatIf)
summary.whatif()所属R语言包:WhatIf
Summary of "whatif" Object
摘要“WHATIF”对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Summarizes the information produced by the function whatif. The summary generated is returned as an output object and also printed to the screen.
总结的信息所产生的功能whatif。摘要生成的,则返回作为输出对象,并打印到屏幕上。
用法----------Usage----------
## S3 method for class 'whatif':
summary(object, ...)
参数----------Arguments----------
参数:object
An object of class "whatif", the output of the function whatif.
对象的类的“WHATIF”,输出的功能whatif。
参数:...
Further arguments passed to and from other methods.
更多参数传递给其他方法。
值----------Value----------
An object of class "summary.whatif", a list containing the following five elements: <table summary="R valueblock"> <tr valign="top"><td>call</td> <td> The original call to whatif.</td></tr> <tr valign="top"><td>m</td> <td> A scalar. The total number of counterfactuals evaluated.</td></tr> <tr valign="top"><td>m.inhull</td> <td> A scalar. The number of counterfactuals evaluated that are in the convex hull of the observed covariate data.</td></tr> <tr valign="top"><td>mean.near</td> <td> A scalar. The average percentage of data nearby each counterfactual, where the average is taken over all counterfactuals.</td></tr> <tr valign="top"><td>sum.df</td> <td> A data frame with three columns and m rows, where m is the number of counterfactuals. The first column, cfact, indexes the counterfactuals. The second column, in.hull, contains the results of the convex hull test. The third column, per.near, contains the percentage of data points nearby each counterfactual.</td></tr> </table> This object is printed to the screen.
对象的类“summary.whatif”的,一个列表,包含以下五个要素:<table summary="R valueblock"> <tr valign="top"> <TD> call</ TD> <TD>原来的调用whatif。</ TD> </ TR> <tr valign="top"> <TD>m </ TD> <td>一个标量。评估反事实的总数。</ TD> </ TR> <tr valign="top"> <TD> m.inhull</ TD> <td>一个标量。反事实评估中所观察到的协变量数据的凸包。</ TD> </ TR> <tr valign="top"> <TD> mean.near</ TD> <td>一个标量数量。附近的每一个反事实的,那里的平均。</ TD> </ TR> <tr valign="top"> <TD> sum.df</ TD> <td>一个被接管所有的反事实的平均百分比数据数据框架,其中三列,m行m是反事实的数量。第一列cfact,指标反事实。第二列中,in.hull,包含的凸包的测试的结果。第三列,per.near,包含百分比的数据点附近的每一个反事实的。</ TD> </ TR> </ TABLE>该对象被打印到屏幕上。
(作者)----------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, plot.whatif, print.whatif, print.summary.whatif
whatif,plot.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)
## Print summary[#打印总结]
summary(my.result)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|