Skip to content
Snippets Groups Projects
Select Git revision
  • b364dd1d4cd06bfd79b5049bd4c36b972e63404f
  • master default protected
  • 6.x protected
  • madysson
  • 5.x protected
  • asm
  • time-varying-information-set
  • 4.6 protected
  • dynare_minreal
  • dragonfly
  • various_fixes
  • 4.5 protected
  • clang+openmp
  • exo_steady_state
  • declare_vars_in_model_block
  • julia
  • error_msg_undeclared_model_vars
  • static_aux_vars
  • slice
  • aux_func
  • penalty
  • 6.4 protected
  • 6.3 protected
  • 6.2 protected
  • 6.1 protected
  • 6.0 protected
  • 6-beta2 protected
  • 6-beta1 protected
  • 5.5 protected
  • 5.4 protected
  • 5.3 protected
  • 5.2 protected
  • 5.1 protected
  • 5.0 protected
  • 5.0-rc1 protected
  • 4.7-beta3 protected
  • 4.7-beta2 protected
  • 4.7-beta1 protected
  • 4.6.4 protected
  • 4.6.3 protected
  • 4.6.2 protected
41 results

GeneralMatrix.h

Blame
  • RBC_Est.mod 793 B
    var y c k i l y_l w r z;
    varexo e;
    parameters beta psi delta alpha rho epsilon;
    
    model;
    (1/c) = beta*(1/c(+1))*(1+r(+1)-delta);
    psi*c/(1-l) = w;
    c+i = y;
    y = (k(-1)^alpha)*(exp(z)*l)^(1-alpha);
    w = y*((epsilon-1)/epsilon)*(1-alpha)/l;
    r = y*((epsilon-1)/epsilon)*alpha/k(-1);
    i = k-(1-delta)*k(-1);
    y_l = y/l;
    z = rho*z(-1)+e;
    end;
    
    varobs y;
    
    initval;
      k = 9;
      c = 0.76;
      l = 0.3;
      w = 2.07;
      r = 0.03;
      z = 0;
      e = 0;
    end;
    
    estimated_params;
    alpha, beta_pdf, 0.35, 0.02;
    beta, beta_pdf, 0.99, 0.002;
    delta, beta_pdf, 0.025, 0.003;
    psi, gamma_pdf, 1.75, 0.1;
    rho, beta_pdf, 0.95, 0.05;
    epsilon, gamma_pdf, 10, 0.5;
    stderr e, inv_gamma_pdf, 0.01, inf;
    end;
    
    estimation(datafile=simuldataRBC,nobs=200,first_obs=500,mh_replic=2000,mh_nblocks=2,mh_drop=0.45,mh_jscale=0.8,mode_compute=4);