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

R语言 simsem包 plotPower()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 09:24:04 | 显示全部楼层 |阅读模式
plotPower(simsem)
plotPower()所属R语言包:simsem

                                         Make a power plot of a parameter given varying parameters
                                         电源图给予不同参数的参数

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

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

Make a power plot of a parameter given varying parameters (e.g., sample size, percent missing completely at random, or random parameters in the model)
一个功率变化的曲线的参数给予不同的参数(例如,样本大小,百分比失踪完全随机的,随机模型中的参数)


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


plotPower(object, powerParam, alpha = 0.05, contParam = NULL, contN = TRUE,
        contMCAR = TRUE, contMAR = TRUE, useContour=TRUE)



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

参数:object
SimResult that includes at least one randomly varying parameter (e.g. sample size, percent missing, model parameters)  
SimResult,包括至少一个随机变化的参数(例如,样本大小,百分比丢失,模型参数)


参数:powerParam
Vector of parameters names that the user wishes to find power for. This can be a vector of names (e.g., "LY1_1", "LY2_2").  
向量的参数的名称,用户希望找到电源。这可以是一个矢量的名称(例如,“LY1_1”中,“LY2_2”)。


参数:alpha
Alpha level to use for power analysis.  
阿尔法层次使用功耗分析。


参数:contParam
Vector of parameters names that vary over replications that users wish to use in the plot.  
向量的复制,用户想使用中的图变化的参数名称。


参数:contN
Include the varying sample size in the power plot if available  
包括不同样本大小的功率变化的曲线,如果有


参数:contMCAR
Include the varying MCAR (missing completely at random percentage) in the power plot if available  
包括不同的MCAR(完全丢失在随机的百分比)在功率变化的曲线,如果有的话


参数:contMAR
Include the varying MAR (missing at random percentage) in the power plot if available  
包括在功率变化的曲线,如果有不同的MAR(失踪在随机的百分比)


参数:useContour
This argument is used when users specify to plot two varying parameters. If TRUE, the contour plot is used. If FALSE, perspective plot is used.  
这种说法是当用户使用指定绘制两个不同的参数。如果TRUE,使用等高线图。如果FALSE,透视图。


Details

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

Predicting whether each replication is significant or not by varying parameters using logistic regression (without interaction). Then, plot the logistic curves predicting the probability of significance against the target varying parameters.
预测是否每一个的复制是显着的或不通过改变参数,采用logistic回归分析(互动)。然后,绘制曲线预测的概率的意义,对不同参数的目标的MF。


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

Not return any value. This function will plot a graph only.
不返回任何值。此功能将只绘制图形。


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



Sunthud Pornprasertmanit (University of Kansas; <a href="mailto:psunthud@ku.edu">psunthud@ku.edu</a>), Alexander M. Schoemann (University of Kansas; <a href="mailto:schoemann@ku.edu">schoemann@ku.edu</a>)




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

SimResult to see how to create a simResult object with randomly varying parameters.
SimResult看到如何创建一个simResult的对象与随机变化的参数。

getPower to obtain a statistical power given varying parameters values.
getPower得到不同参数值的统计赋予的权力。


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


## Not run: [#不运行:]
# Specify Sample Size by n[指定样本大小由n]
loading <- matrix(0, 6, 1)
loading[1:6, 1] <- NA
LX <- simMatrix(loading, 0.4)
RPH <- symMatrix(diag(1))
RTD <- symMatrix(diag(6))
CFA.Model <- simSetCFA(LY = LX, RPS = RPH, RTE = RTD)
SimData <- simData(CFA.Model, 500)
SimModel <- simModel(CFA.Model)
# We will use only 5 replications to save time.[我们将只使用5次重复,以节省时间。]
# In reality, more replications are needed.[在现实中,需要更多的复制。]

# Specify both sample size and percent missing completely at random[中指定两个样本的大小和百分比完全随机缺失]
Output <- simResult(NULL, SimData, SimModel, n=seq(100, 200, 20), pmMCAR=c(0, 0.1, 0.2))
plotPower(Output, "LY1_1", contMCAR=FALSE)

## End(Not run)[#(不执行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-25 03:07 , Processed in 0.019862 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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