[Lign274] LIGN274-Questions

Roger Levy rlevy at ling.ucsd.edu
Fri Feb 12 14:06:55 PST 2010


On Feb 12, 2010, at 12:28 PM, Wen-Hsuan Chan wrote:

> Hi Roger,
>
> Could we run JAGS with .bug file in our home directory? When I  
> modified your .bug file, saved it in my directory and run JAGS, it  
> showed following messages:
>
> m <- jags.model("~wec017/rohde_levy_kehler_analysis.bug")
> Compiling model graph
>
> Error in jags.model("~wec017/rohde_levy_kehler_analysis.bug") :
>  Symbol table is empty
> Symbol table is empty
>
> In addition: Warning messages:
> 1: In jags.model("~wec017/rohde_levy_kehler_analysis.bug") :
>  Failed to open file ~wec017/rohde_levy_kehler_analysis.bug
> Nothing to compile
>
> 2: In jags.model("~wec017/rohde_levy_kehler_analysis.bug") :
>  Can't initialize. No nodes in graph (Have you compiled the model?)
>
> It seems there is a problem when the file is not in the directory  
> under /local/contrib ??


Hi Wen,

It looks to me like the jags.model() command doesn't properly  
interpret the "~wec017" part of the file location correctly.  If you  
use the explicit name:

   /home/wec017/rohde_levy_kehler_analysis.bug

it should work properly.

Note however that I noticed that the .bug file had upper-case V's and  
A's where they should have been lower-case. I just fixed this in the  
file in the /local/contrib/lign274/modeling_code directory tree.

Roger


--

Roger Levy                      Email: rlevy at ling.ucsd.edu
Assistant Professor             Phone: 858-534-7219
Department of Linguistics       Fax:   858-534-4789
UC San Diego                    Web:   http://ling.ucsd.edu/~rlevy










More information about the Lign274 mailing list