Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ここに示すように、最小二乗法または最尤法のいずれかを使用して分布に適合させたいデータの 1D リストがありますが、R インタラクティブ シェルの代わりに Python から実行したいと考えています。
rpy2 をインストールしましfitdistrた。データをリストにインポートしたので、インタラクティブipythonシェル内から関数を使用したいと考えています。
fitdistr
ipython
この機能はどこにあり、どのように使用するのですか?
関数はRパッケージMASSにあります
from rpy2.robjects.packages import importr MASS = importr('MASS') # the function is now at MASS.fitdistr