开发者

R: logistic distribution with base 10 instead of e

开发者 https://www.devze.com 2023-04-06 05:05 出处:网络
I have been looking in google and documentation function like plogis, dlogis, which have in base not e but 10. Is something like 开发者_如何学运维this available?You don\'t actually need another set of

I have been looking in google and documentation function like plogis, dlogis, which have in base not e but 10. Is something like 开发者_如何学运维this available?


You don't actually need another set of functions, since the transformation is trivial. The CDF for the logistic distribution with center mu and scale s is

F(x) = 1/(1+e^(-(x-mu)/s))

Let y=(x-mu)/s; then 10^y = e^(y*ln(10)), so you simply need to replace s by s/ln(10) to achieve the desired effect.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号