【问题标题】:Computing ranged major axis (RMA) regression in Python在 Python 中计算远程长轴 (RMA) 回归
【发布时间】:2020-12-09 03:04:49
【问题描述】:

似乎没有在 Python 中计算 RMA 回归的包,只有在 R 中(包名为 lmodel2)。我对 R 不熟悉,遇到了一些关于将 R 包导入 Python 的讨论。

有人在 Python 中使用过 RMA 回归(一种 Model II 回归)吗?或者能够将 R 包导入 Python?如果是这样,怎么做?按照其他 cmets 的建议,我无法下载 WinPython,所以越简单越好。

【问题讨论】:

  • R 很容易学习,所以我的建议是使用 R 包。考虑查看非常活跃的 r-help 邮件列表。见:stat.ethz.ch/mailman/listinfo/r-help 最后,由于这更像是一个讨论问题,它更适合 stats.stackexchange.com。
  • 我什至不知道 stats.stackexchange 所以谢谢!

标签: python r statistics regression


【解决方案1】:

包 pylr2 包括减少的主轴回归。

from pylr2 import regress2

计算回归类型 2:

results = regress2(x, y, _method_type_2="reduced major axis")

https://github.com/OceanOptics/pylr2

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-02-12
    • 2011-07-23
    • 1970-01-01
    • 2013-08-20
    • 2013-09-01
    • 2017-03-10
    • 2020-08-12
    相关资源
    最近更新 更多