Page 1 of 1

Problem with data

PostPosted: Tue Nov 08, 2016 4:58 am
by thanhha9289
Dear all
The problem I got that make me totally confused. Model is running when I used the data for a developing country (70 observations). However, when I adapted this code for the data of a developed country (105 observations) (use the same code, only change happens with the data), the problem is coming as below:
    Error using load_m_file_data_legacy (line 38)
    makedataset: Check that all the variables listed in varobs exist in finaldata1.m and
    have the same number of observations.

    Error in makedataset (line 106)
    DynareDataset = load_m_file_data_legacy(datafile, DynareOptions.varobs);

    Error in dynare_estimation_init (line 531)
    [dataset_, dataset_info, newdatainterfaceflag] = makedataset(options_,
    options_.dsge_var*options_.dsge_varlag, gsa_flag);

    Error in dynare_estimation_1 (line 94)
    [dataset_, dataset_info, xparam1, hh, M_, options_, oo_, estim_params_, bayestopt_,
    bounds] = ...

    Error in dynare_estimation (line 104)
    dynare_estimation_1(var_list,dname);

    Error in loglinear_Calvo_full1 (line 337)
    oo_recursive_=dynare_estimation(var_list_);

    Error in dynare (line 223)
    evalin('base',fname) ;

I totally don't understand. I checked the second data, it still be listed and the number of observation in each variable is equal.
Any help will be greatly appreciated.
Thank

Re: Problem with data

PostPosted: Tue Nov 08, 2016 9:12 am
by jpfeifer
1. In your datafile you must use a fullstop as the decimal separator, not a comma.
2. You should make sure that your parameter dependence is correctly handled. Use model-local variables. See Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf. In the current form, your estimation results will be wrong.
3. Make sure your observation equation is correct. It seems your data is in first differences, but your model variables they are linked to are not.