2018-02-06から1日間の記事一覧

Rstanをソースからインストール(オフラインで)

R

miniCRANを使えばオフラインインストールは簡単らしい。→うまくかない。 https://cran.r-project.org/web/packages/miniCRAN/vignettes/miniCRAN-introduction.html https://blog.recyclebin.jp/archives/4587install.packages("devtools") https://stackove…

Rstanの練習2

R

Rstanの練習 ランダムウォークの誤差分散の推定、MA形。 Rのコード library("rstan") ep<-rnorm(105, mean=0,sd=1) theta<-(1:1000)^-0.5 y<-NULL for(i in 1:100){ y[i]<-sum(theta[1:(i)]^0*ep[i:1]) } #y<-rpois(100,lambda=30) data <- list(T = 100, y …

removing ‘/xxx/R/x86_64-unknown-linux-gnu-library/3.0/rstan’

Warning message: In install.packages("rstan_2.13.2.tar.gz", repos = NULL, type = "source") : installation of package ‘rstan_2.13.2.tar.gz’ had non-zero exit statusでOK install.packages("rstan_2.8.2.tar.gz", repos = NULL, type = "source")

removing ‘/xxx/R/x86_64-unknown-linux-gnu-library/3.0/rstan’

Warning message: In install.packages("rstan_2.13.2.tar.gz", repos = NULL, type = "source") : installation of package ‘rstan_2.13.2.tar.gz’ had non-zero exit status