Hi guys, I’m running into an issue when trying Stan,

When trying to set the model, the Rstudio failed to run the following codes.

## data {

int<lower=0> J;

array[J] real y;

array[J] real<lower=0> sigma;

}

parameters {

real mu; // population treatment effect

real<lower=0> tau; // standard deviation in treatment effects

vector[J] eta; // unscaled deviation from mu by school

}

transformed parameters {

vector[J] theta = mu + tau * eta; // school treatment effects

}

model {

target += normal_lpdf(eta | 0, 1); // prior log-density

target += normal_lpdf(y | theta, sigma); // log-likelihood

}

## Error: unexpected ‘{’ in “data {”

it seems to be a unicode character issues, however, I could not find any way to solve this.

thank you for helping.