[英]How can I extract confidence intervals from ezBoot (ez package)?
I am using the ezBoot
function from the ez
package. 我正在使用
ez
软件包中的ezBoot
函数 。 I would like to extract the confidence intervals that are plotted with the ezPlot2
function of the same package. 我想提取使用同一包的
ezPlot2
函数绘制的置信区间。
An example can be found in the ezBoot
function : 可以在
ezBoot
函数中找到一个示例:
#Read in the ANT data (see ?ANT).
data(ANT)
head(ANT)
ezPrecis(ANT)
#Run ezBoot on the accurate RT data
rt = ezBoot(
data = ANT
, dv = rt
, wid = subnum
, within = .(cue,flank)
, between = group
, iterations = 1e1 #1e3 or higher is best for publication
)
#plot the full design
p = ezPlot2(
preds = rt
, x = flank
, split = cue
, col = group
)
print(p)
How do I extract the confidence intervals? 如何提取置信区间?
Nevermind, I didn't read the complete set of arguments for the [ ezPlot2
function] ( http://www.inside-r.org/packages/cran/ez/docs/ezPlot2 ). 没关系,我没有阅读[
ezPlot2
函数]的完整参数集( http://www.inside-r.org/packages/cran/ez/docs/ezPlot2 )。 To be fair the initial description says that the functions is for displaying, however if the parameter do_plot
is set to true then it will return the point predictions (I am guessing it is the averages) and confidence intervals: 公平地说,最初的描述说这些函数是用于显示的,但是,如果参数
do_plot
设置为true,则它将返回点预测(我想这是平均值)和置信区间:
do_plot:
Logical.do_plot:
逻辑。 If TRUE, no plot will be produced but instead a data frame containing point predictions and confidence limits will be returned.如果为TRUE,则不会生成任何图,而是将返回包含点预测和置信度限制的数据框。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.