Need support to resolve an error in ulam


  Ass.ulam<-ulam(
    alist(
        Th14.z ~ dnorm( mu , sigma ) ,
        mu <- a[cond]+b[cond]*(Age-27.7219),
        a[cond]~ dnorm( 0, 0.1) ,
        b[cond]~dnorm(0,0.3),
        sigma ~ dexp( 1 )
    ) , data=dat_list, chains=1 )
} 

The error message

Syntax error in 'C:/Users/ADMINI~1/AppData/Local/Temp/Rtmp4ELYID/model-1c076e1588.stan', line 2, column 19, lexing error:
   -------------------------------------------------
     1:  data{
     2:      vector[274] Th14.z;
                             ^
     3:      vector[274] Age;
     4:      int cond[274];
   -------------------------------------------------

Invalid character found.

mingw32-make.exe: *** [make/program:50: C:\Users\ADMINI~1\AppData\Local\Temp\Rtmp4ELYID\model-1c076e1588.hpp] Error 1

 
 Error: An error occured during compilation! See the message above for more information.

It seems to point out the error quite clearly :)

I guess it’s because you have a (.) in your variable name?

It works when I removed the dot. Thank you very much.