This project is read-only.

Policy functions

Topics: Models
Jun 3, 2014 at 2:51 PM
Hello

How can I get the policy functions of a model?

Thank you

Camila
Jun 3, 2014 at 3:00 PM
You can access the solution in state space form using the function sspace.
Marked as answer by jaromirbenes on 6/3/2014 at 9:03 AM
Jun 3, 2014 at 5:03 PM
Edited Jun 3, 2014 at 5:03 PM
Indeed... If you mean the first-order solution, use sspace(...) as Micheal suggest
[T,R,K,Z,H,D,U] = sspace(m)
where the system matrices T, R, K, Z, H, D, U are explained in the reference manual or the function help.

If you, on the other hand, mean equations that describe optimal policy (discretionary or commitment) introduced by the operator min( )... in the model file, simply use the function get to get the list of model equations after you create the model object:
e = get(m,'xEqtn')
Best,
Jaromir
Marked as answer by jaromirbenes on 6/3/2014 at 9:03 AM