Bayesian estimation
Posted: Sat Nov 22, 2014 11:49 am
I am trying to execute a bayesian estimation. In particular I would like to estimate a transofmation of the parameter as expressed in the model instead of the parameter itself.
The code I wrote is:
It keeps on returning the following error message:
Y has wrong type, you cannot use it within as left-hand side of a pound ('#') expression
what am I doing wrong?
Thanks,
Nemo4t
The code I wrote is:
- Code: Select all
varobs Y;
parameters alfa;
model;
# Y=z+alfa*N+(1-alfa)*k(-1);
end;
estimated_params;
alfa, beta_pdf, 0.99, 0.02; //Parametro, Distribuzione, Prior, Standard Error,
stderr e, inv_gamma_pdf, 0.01, inf;
end;
It keeps on returning the following error message:
Y has wrong type, you cannot use it within as left-hand side of a pound ('#') expression
what am I doing wrong?
Thanks,
Nemo4t