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

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

[复制链接]
发表于 2012-2-25 19:06:04 | 显示全部楼层 |阅读模式
gregorius(GeneticsDesign)
gregorius()所属R语言包:GeneticsDesign

                                        Probability of Observing All Alleles with a Given Frequency in a
                                         在一个给定的频率与观测所有等位基因的概率

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

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

Probability of observing all alleles with a given frequency in a sample of a specified size.
与给定的频率在一个指定大小的样本观察所有等位基因的概率。


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


gregorius(freq, N, missprob, tol = 1e-10, maxN = 10000, maxiter=100, showiter = FALSE)



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

参数:freq
(Minimum) Allele frequency (required)
(最小)等位基因频率()


参数:N
Number of sampled genotypes
采样基因型的数目


参数:missprob
Desired maximum probability of failing to observe an allele.
想要不遵守等位基因的概率最大。


参数:tol
Omit computation for terms which contribute less than this value.
省略条款作出贡献小于这个值的计算。


参数:maxN
Largest value to consider when searching for N.
为N时要考虑的最大价值


参数:maxiter
Maximum number of iterations to use when searching for N.
最大迭代次数为N时使用


参数:showiter
Boolean flag indicating whether to show the iterations performed when searching for N.
布尔标志,指示是否显示迭代时执行搜索北路


Details

详情----------Details----------

If freq and N are provided, but missprob is omitted, this function computes the probability of failing to observe all alleles with true underlying frequency freq when N diploid genotypes are sampled.  This is accomplished using the sum provided in Corollary 2 of Gregorius (1980), omitting terms which contribute less than tol to the result.
如果freq和N,但missprob被省略,这个函数计算不遵守与真实的基础频率freq所有等位基因的概率当N二倍体基因型采样。这是通过使用2 Gregorius(1980)推论提供的款项,省略方面贡献比tol结果。

When freq and missprob are provide, but N is omitted. A binary search on the range of [1,maxN] is performed to locate the smallest sample size, N, for which the probability of failing to observe all alleles with true underlying frequency freq is at most missprob.  In this case, maxiter specifies the largest number of iterations to use in the binary search, and showiter controls whether the iterations of the search are displayed.
当freq和missprob提供,但N被省略。一个二进制搜索范围[1maxN]是找到最小的样本大小,N,不遵守与真实的基础频率freq所有等位基因的概率是最的missprob。在这种情况下,maxiter指定迭代的数量最大,使用二进制搜索,和showiter控制是否显示搜索迭代。


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

A list containing the following values:
一个列表,包含以下值:


参数:call
   Function call used to generate this object.
函数调用用于生成这个对象。


参数:method
One of the strings, "Compute missprob given N and freq", or "Determine minimal N given missprob and freq", indicating which type of computation was performed.
一个字符串,“missprob计算给定的N和频率”,或“确定最小n所得missprob和频率”,说明是哪种类型的计算。


参数:retval$freq
Specified allele frequency.
指定的等位基因频率。


参数:retval$N
    Specified or computed sample size.  
指定或计算样本量。


参数:retval$missprob
Computed probability of failing to observe all of the alleles with frequency freq.  
未能遵守所有的等位基因频率freq计算概率。


注意----------Note----------

This code produces sample sizes that are slightly larger than those given in table 1 of Gregorius (1980).  This appears to be due to rounding of the computed missprobs by the authors of that paper.
此代码产生的样本大小稍大比表1 Gregorius的(1980)给出的。这似乎是由于该文件的作者四舍五入计算missprob的。


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


Code submitted by David Duffy <a href="mailto:davidD@qumr.edu.au">davidD@qumr.edu.au</a>,
substantially enhanced by Gregory R. Warnes
<a href="mailto:warnes@bst.rochester.edu">warnes@bst.rochester.edu</a>.



参考文献----------References----------

diploid genotypes are sampled.  Biometrics 36, 643-652.

举例----------Examples----------



# Compute the probability of missing an allele with frequency 0.15 when[计算时失踪的等位基因频率0.15的概率]
# 20 genotypes are sampled:[20基因型采样:]
gregorius(freq=0.15, N=20)

# Determine what sample size is required to observe all alleles with true[确定样本大小须遵守所有与真正的等位基因]
# frequency 0.15 with probability 0.95[频率0.15 0.95概率]
gregorius(freq=0.15, missprob=1-0.95)



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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-23 05:23 , Processed in 0.023206 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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