n.wilcox.ord(samplesize)
n.wilcox.ord()所属R语言包:samplesize
Sample size for Wilcoxon-Mann-Whitney for ordinal data
魏氏 - 曼 - 惠特尼样本大小为序的数据
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Function computes sample size for two-sided Wilcoxon test when applied to two independent samples with ordered categorical response.
函数计算样本量为双面Wilcoxon秩和检验时,适用于两个独立的样本与有序分类响应。
用法----------Usage----------
n.wilcox.ord(beta = 0.2, alpha = 0.05, t, p, q)
参数----------Arguments----------
参数:beta
required type-II-error level
需要-II型错误级别
参数:alpha
required type-I-error level
所需的I型错误级别
参数:t
sample size fraction n/N, where n is sample size of group B and N is the total sample size
样本量分数N / N,其中n是样本量的B组和N是总样本数
参数:p
vector of expected proportions of the categories in group A, should sum to 1
矢量预期的比例在A组的类别,应等于1
参数:q
vector of expected proportions of the categories in group B, should be of equal length as p and should sum to 1
矢量的类别在B组的预期比例,应该是相等的长度为p的总和应为1
Details
详细信息----------Details----------
This function approximates the total sample size, N, needed for the two-sided Wilcoxon test when comparing two independent samples, A and B, when data are ordered categorical according to Equation 12 in Zhao et al.(2008). Assuming that the response consists of D ordered categories C_1 ,..., C_D. The expected proportions of these categories in two treatments A and B must be specified as numeric vectors p_1,...,p_D and q_1,...,q_D, respectively. The argument t allows to compute power for an unbalanced design, where t=n_B/N is the proportion of sample size in treatment B.
此函数近似于总样本数,N为双面的Wilcoxon检验,需要比较两个独立的样品时,A和B,当数据是有序的分类根据Zhao等人(2008年)中的等式12。责令假设的反应由D类C_1 ,..., C_D。这些类别中的预期比例两种治疗方法A和B必须被指定为数字矢量p_1,...,p_D和q_1,...,q_D“。参数t的计算能力不平衡的设计,t=n_B/N是治疗B.样本量的比例
值----------Value----------
<table summary="R valueblock"> <tr valign="top"><td>N</td> <td> Total sample size</td></tr> </table>
<table summary="R valueblock"> <tr valign="top"> <TD>N </ TD> <TD>总样本量</ TD> </ TR> </ TABLE>
(作者)----------Author(s)----------
Ralph Scherer
参考文献----------References----------
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|