findPower(simsem)
findPower()所属R语言包:simsem
Find a value of independent variables that provides a given value of power.
查找一个值的独立变量,提供一个给定的值的功率。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Find a value of independent variable that provides a given value of power. If there are more than one varying parameters, this function will find the value of the target varying parameters given the values of the other varying parameters.
查找一个值的独立的变量,提供了一个给定的功率值。如果有一个以上的变参数,这个函数将找到目标改变给定的其它参量的变化的值的参数的值。
用法----------Usage----------
findPower(powerTable, iv, power)
参数----------Arguments----------
参数:powerTable
A data.frame providing varying parameters and powers of each parameter. This table is obtained by getPower or continuousPower function.
Adata.frame提供不同的参数和每个参数的权力。此表是通过getPower或continuousPower函数。
参数:iv
The target varying parameter that users would like to find the value providing a given power from. This argument can be specified as the index of the target column or the name of target column (i.e., "iv.N" or "N")
目标变参数,用户想找到一个给定的功率值提供。此参数可以指定目标列或目标列的名称作为索引(即,"iv.N"或"N")
参数:power
A desired power.
所需的功率。
值----------Value----------
There are five possible types of values provided:
有五个可能的类型提供的值:
Value The varying parameter value that provides the power just over the specified power value (the adjacent value of varying parameter provides lower power than the specified power value).
值不同的参数值,在指定的功率值(临界值的变参数提供更低的功耗比指定功率值)提供动力。
Minimum value The minimum value has already provided enough power (way over the specified power value). The value of varying parameters that provides exact desired power may be lower than the minimum value. The example of varying parmaeter that can provides the minimum value is sample size.
最低值的最低值已经提供了足够的功率(在指定的功率值)。变化的参数的值,提供了精确的所需的功率可以是低于最小值。不同parmaeter的例子中,可提供的最低值是样本大小。
Maximum value The maximum value has already provided enough power (way over the specified power value). The value of varying parameters that provides exact desired power may be higher than the maximum value. The example of varying parmaeter that can provides the maximum value is percent missing.
最大值最大值已经提供了足够的功率(在指定的功率值)。变化的参数的值,提供了精确的所需的功率可以是高于最大值。的不同parmaeter的例子,可以提供的最大的值%丢失。
NA There is no value in the domain of varying parameters that provides the power greater than the desired power.
NA是没有任何价值的领域不同的参数,它提供了功率大于所需的功率。
NaN The power of all values in the varying parameters is 1 (specifically more than 0.9999) and any values of the varying parameters can be picked and still provide enough power.
NaN中的所有值的不同参数的力量是1(特别多0.9999),可以拿起任何不同的参数值,并仍然提供足够的电力。
(作者)----------Author(s)----------
Sunthud Pornprasertmanit (University of Kansas; <a href="mailto:psunthud@ku.edu">psunthud@ku.edu</a>)
参见----------See Also----------
getPower to find the power of parameter estimates
getPower找到电源的参数估计
continuousPower to find the power of parameter estimates for the result object (linkS4class{SimResult}) with varying parameters.
continuousPower找到电源的参数估计结果对象(linkS4class{SimResult})具有不同的参数。
实例----------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)
# 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))
pow <- getPower(Output)
findPower(pow, "N", 0.80)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|