using a matlab program to calculate functions of deep params
Posted: Wed Apr 29, 2009 9:23 pm
Hi there,
I am writing because I am not being able to run a matlab .m file to calculate the value of some parameters, which are functions of deeper parameters of the model (to be estimated).
So, basically I have a log-linearized model. Some of the coefficients on the log-linear variables, are ratios of steady-state *levels*. This steady-state levels are functions of deep parameters of the model that I want to estimate.
I have a matlab function that calculates these steady-state levels, given some previously defined deep parameters.
What I want is to run this matlab .m function within the definition of the model, so that every time the model is being solved during the estimation process, the coefficients on the variables of the log-linear equations are based upon the deep parameters being estimated, and not upon some fixed ones.
Say my model file is model.mod
I am writing #model_steadystate; as part of the definition of the model, but its not running.
Does anybody know how to handle this situation?
Thanks a lot for your help!
I am writing because I am not being able to run a matlab .m file to calculate the value of some parameters, which are functions of deeper parameters of the model (to be estimated).
So, basically I have a log-linearized model. Some of the coefficients on the log-linear variables, are ratios of steady-state *levels*. This steady-state levels are functions of deep parameters of the model that I want to estimate.
I have a matlab function that calculates these steady-state levels, given some previously defined deep parameters.
What I want is to run this matlab .m function within the definition of the model, so that every time the model is being solved during the estimation process, the coefficients on the variables of the log-linear equations are based upon the deep parameters being estimated, and not upon some fixed ones.
Say my model file is model.mod
I am writing #model_steadystate; as part of the definition of the model, but its not running.
Does anybody know how to handle this situation?
Thanks a lot for your help!