1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PypeRでPythonからRstanを使う

Posted at

PypeR

pythonからRのコードを叩くことができるパッケージ.

pip install pyper
import pyper
r=pyper.R(use_pandas='True') !Trueにしないとうまくいかなかった
r("soruce(file='stan.R')") !stanの実行ファイルをRで実行
!Rのオブジェクトを取ってくる.
fit=r.get("fit") 
!stanの入れ物は持ってくるとnumpy(parameter数, step数)になっている.
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?