cocharan-Armitage trend test

Cochran-Armitage trend test是我们常说的趋势卡方检验,一般是针对基因型的2*3列联表的。譬如说三种基因型,如果按照某一个allele来看,可以有0、1、2个拷贝,是有序的,我们要观察随着allele数目的增多,发病的比例是否有差异,那么就要用Trend test。而Pearson卡方则不考虑该有序关系,只是简单的比较两个组中某一个allele的频率分布有无差异。

Cochran–Armitage 趋势检验也称 R*2列联表资料线性趋势检验,其目的是说明某一事件发生率是否随着原因变量不同水平的变化而呈线性趋势。

 

一定要用Cochran-Armitage trend test,可以用person卡方代替吗?
他们之间因为 基因模型的不确定,所以各有优劣。目前,Cochran-Armitage trend test用得比较多。

一般都是用什么方法确定一个基因模型呢?
在众多的遗传变异中,仅极个别确定了。绝大多数都无法确定,更多的文章中,在分析中把 各种可能的模型(显性,隐性,加性,乘积模型等),都分析了一遍。

 

The Cochran-Armitage test for trend, is used in categorical data analysis when the aim is to assess for the presence of an association between a variable with two categories and a variable with k categories.

It modifies the chi-square test to incorporate a suspected ordering in the effects of the k categories of the second variable. For example, doses of a treatment can be ordered as 'low', 'medium', and 'high', and we may suspect that the treatment benefit cannot become smaller as the dose increases. The trend test is often used as a genotype-based test for case-control genetic association study.

The trend test is applied when the data take the form of a 2 × k contingency table. For example, if k = 3 we have

 

 B=1B=2B=3
A=1N11N12N13
A=2N21N22N23

 

This table can be completed with the marginal totals of the two variables

 

 B=1B=2B=3Sum
A=1N11N12N13R1
A=2N21N22N23R2
SumC1C2C3N

 

where R1 = N11 + N12 + N13, and C1 = N11 + N21, etc.

The trend test statistic is

where the ti are weights, and the difference N1iR2 −N2iR1 can be seen as the difference between N1i and N2i after reweighting the rows to have the same total.

The hypothesis of no association (the null hypothesis) can be expressed as:

.

The weights ti can be chosen such that the trend test becomes locally most powerful for detecting particular types of associations. For example, if k = 3 and we suspect that B = 1 and B = 2 have similar frequencies (within each row), but that B = 3 has a different frequency, then the weights t = (1,1,0) should be used. If we suspect a linear trend in the frequencies, then the weights t = (0,1,2) should be used. These weights are also often used when the frequencies are suspected to change monotonically with B, even if the trend is not necessarily linear

Application to genetics

Suppose that there are three possible genotype at some locus, and we refer to these as aa, Aa and AA. The distribution of genotype counts can be put in a 2 × 3 contingency table. For example, consider the following data, in which the genotype frequencies vary linearly in the cases and are constant in the controls:

 

 Genotype aaGenotype AaGenotype AASum
Controls          20          20          20 60
Cases          10          20          3060
Sum          30          40          50120

 

In genetics applications, the weights are selected according to the suspected mode of inheritance. For example, in order to test whether allel a is dominant over allele A, the choice t = (1, 1, 0) is locally optimal. To test whether allele a is recessive to allele A, the optimal choice is t = (0, 1, 1). To test whether alleles a and A are codominant, the choice t = (0, 1, 2) is locally optimal. For complex disease, the underlying genetic model is often unknown. In GWAS, the additive (or codominant) version of the test is often used.

In the numerical example, the standardized test statistics for various weight vectors are

 

WeightsStandardized test statistic
1,1,01.85
0,1,1-2.1
0,1,2-2.3

 

and the Pearson chi-square test gives a standardized test statistic of 2. Thus, we obtain a stronger significance level if the weights corresponding to additive (codominant) inheritance are used. Note that for the significance level to give a p-value with the usual probabilistic interpretation, the weights must be specified before examining the data, and only one set of weights may be used.

转载于:https://www.cnblogs.com/Acceptyly/p/3929697.html

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Armitage是一款Java写的Metasploit图形界面化的渗透软件,它可以用于自动化渗透测试,结合Metasploit中已知的exploit来攻击内网主机存在的漏洞。Armitage可以在Windows、Linux和Mac OS X上安装。在Kali Linux中,Armitage默认是不安装的,但你可以通过以下步骤来安装Armitage: 1. 访问Kali Linux官方网站的工具页面或者GitLab上的下载地址。 2. 在页面中找到并下载Armitage的安装包。 3. 安装Armitage的依赖库,并按照官方的指导进行安装。 4. 配置数据库,确保Armitage能够连接到Metasploit框架。 5. 完成安装后,你可以开始使用Armitage来进行渗透测试。 需要注意的是,由于Armitage的作者已经不再更新版本,因此在Kali Linux中默认不安装Armitage。但你可以通过上述步骤来手动安装并使用Armitage。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Armitage](https://blog.csdn.net/qq_71164192/article/details/130972866)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [在2022年的kali linux上面安装armitage](https://blog.csdn.net/jimmyback/article/details/124281626)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值