R语言-统计-对数转换[关闭]

问题描述 投票:0回答:1

嘿,我想知道何时使用log1p并登录R。我只是想对数据进行对数转换,但是我不知道该使用什么。这两个对数有什么区别?

r statistics logarithm
1个回答
0
投票

从文档中:“ log1p计算给定值加1的自然对数。” (https://www.rdocumentation.org/packages/SparkR/versions/2.1.2/topics/log1p

或者写得不太明确:“ log1p(x)还能精确地为| x | << 1计算log(1 + x)。”(https://stat.ethz.ch/R-manual/R-devel/library/base/html/Log.html

log仅计算自然对数。因此,以后者为准。

© www.soinside.com 2019 - 2024. All rights reserved.