f(clippda)
f()所属R语言包:clippda
A function to compute adjustments for the effct of covariates (Z values) for an experiment with a binary exposure and a binary confounder
一个函数来计算的离职倾向变项(Z值)的调整为二进制曝光和二进制混杂因素的实验
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A function to compute the Z values when planning an experiment with a binary exposure and a binary confounder. You input the probabilities of 3-cells of the resulting multinomial distribution.
一个函数来计算Z值规划二进制曝光和二进制混杂因素的实验时。您输入的3-单元的生成多项式分布的概率。
用法----------Usage----------
f(x, y, z)
参数----------Arguments----------
参数:x
Proportion of elements in cell 1 of a multinomial population with four cells.
比例多项式人口与四个单元1单元中的元素。
参数:y
Proportion of elements in cell 2 of a multinomial population with four cells.
比例多项式人口与四个单元2单元中的元素。
参数:z
Proportion of elements in cell 1 of a multinomial population with four cells. The z here is different from the Z which contains information on the effect of covariates and data imbalance on sample size.
比例多项式人口与四个单元1单元中的元素。这里的Z从Z其中包含协变量和数据样本量不平衡的影响的信息是不同的。
值----------Value----------
It returns a single real number (greater than or equal 2), representing Z.
它返回一个单一的实数(大于或等于2),代表Z。
作者(S)----------Author(s)----------
Stephen Nyangoma
参考文献----------References----------
Billingham LJ: Sample size calculations for planning clinical proteomic profiling studies using mass spectrometry. (Working paper)
参见----------See Also----------
The function ZvaluesformultinomialPlots
功能ZvaluesformultinomialPlots
举例----------Examples----------
# for a 1:1:1:1 experiment[为1:1:1:1实验中]
x=.25;y=.25;z=.25
# compute Z[计算Z]
Z=f(x,y,z)
Z
## The function is currently defined as[#函数定义为]
function (x,y,z) {
Z=(1-x-z)*(x+y)/(2*(((1-x-z)*(1-x-y)*(1-y-z))-(1-x-y-z)^2))
Z
}
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|