【2.1】CLR (Centered Log-Ratio) transform 中心对数比变换
中心对数比变换(Centered Log-Ratio Transformation,简称CLR)和普通的对数比变换(Log-Ratio Transformation,简称LR)都是用于处理组成数据(Compositional Data,CoDa)的方法。在组成数据分析中,数据通常表示为比例或百分比,而这些数据的总和通常是固定的(如100%)。这样的数据具有特殊的几何和代数结构,需要特定的统计方法来正确分析。
普通的对数比变换 (LR)

中心对数比变换 (CLR)

对于成分数据的处理,普通的对数比变换现在的文献中几乎没人使用,更多的是使用中心对数比变换。下面给出代码:

生成一组数据进行测试:

参考资料
这里是一个广告位,,感兴趣的都可以发邮件聊聊:tiehan@sina.cn
个人公众号,比较懒,很少更新,可以在上面提问题,如果回复不及时,可发邮件给我: tiehan@sina.cn
