本文介绍了使用R在Linux的Stan程序中找不到prep_call_sampler的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的.stan程序用于多级模型,该程序在Windows中运行良好.但是我在运行Linux时遇到了这个奇怪的错误.

I have a simple .stan program for multilevel model that was running fine in Windows. But I was getting this strange error in Linux when I was running it.

找不到prep_call_sampler"

'prep_call_sampler not found'

推荐答案

我试图找到问题的根源,更新软件包并在线查找解决方案.最后,我在 STAN论坛

I tried to find the source of the problem, updated packages and looked up online for solutions. Finally, I saw a blog with a post describing a similar problem in the STAN forum

解决方案是在.stan程序中简单地用a * b替换a * b,并且该模型在linux上运行良好.只是想共享一下,以防其他人在使用R在linux中运行stan程序时遇到类似的问题.

The solution was to simply replace the a*b with a * b in the .stan program and the model works fine in linux. Just thought of sharing this in case others face a similar problem when running stan program in linux using R.

这篇关于使用R在Linux的Stan程序中找不到prep_call_sampler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 09:05