Table.N.Per(SNPassoc)
Table.N.Per()所属R语言包:SNPassoc
Descriptive sample size and percentage
描述样本的大小和百分比
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function computes sample size and percentage for each category of a categorical trait (e.g. case-control status) for each genotype (or combination of genotypes).
此函数计算每个基因型(或基因型组合的)一个明确的性状(如病例对照状态),每个类别的样本大小和百分比。
用法----------Usage----------
Table.N.Per(var, dep, subset = !is.na(var))
参数----------Arguments----------
参数:var
categorical trait.
分类特征。
参数:dep
variable with genotypes or any combination of them
变量与基因型或它们的任意组合
参数:subset
an optional vector specifying a subset of observations to be used in the descriptive analysis.
一个可选的矢量指定的描述性分析中可以使用的观测值的一个子集。
值----------Value----------
<table summary="R valueblock"> <tr valign="top"><td>tp</td> <td> A matrix giving sample size (n),and the percentage ( for each genotype</td></tr> </table>
<table summary="R valueblock"> <tr valign="top"> <TD> tp</ TD>给样本量<td>一个矩阵(N)的百分比(每个基因型</ TD> </ TR> </ TABLE>
参见----------See Also----------
Table.mean.se
Table.mean.se
实例----------Examples----------
data(SNPs)
#sample size and percentage of cases and controls for each genotype [病例和对照组各基因型的样本的大小和比例]
# Table.N.Per(SNPs$snp10001,SNPs$casco)[Table.N.Per(单核苷酸多态性snp10001美元,单核苷酸多态性CASCO)]
# The same table for a subset (males)[同一个表的一个子集(男)]
# Table.N.Per(SNPs$snp10001,SNPs$casco,SNPs$sex=="Male")[Table.N.Per(单核苷酸多态性$ snp10001 $卡斯科,单核苷酸多态性,单核苷酸多态性$性别=“男”)]
# The same table assuming a dominant model[假设一个占主导地位的模式相同的表]
# Table.N.Per(dominant(snp(SNPs$snp10001,sep="")),SNPs$casco,SNPs$sex=="Male")[Table.N.Per(占主导地位(SNP(单核苷酸多态性$ snp10001,SEP =“”)),单核苷酸多态性$卡斯科,单核苷酸多态性$性别=“男”)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|