sik
May 3, 2023, 7:51am
1
Hello all,
As per title. I have tried this with Dynare 5.3. Could you confirm if you’re having a similar issue?
Replication:
load acetylene.mat
ds_example = dseries(y)
size(ds_example)
ds_nan = dseries(NaN, ds_example.dates, “inserted_Variable”)
ds_example1 = insert(ds_example, ds_nan{1}, 1) % we succesfully insert a variable
size(ds_example1) % check what we’ve done
ds_example1{1} % works
ds_example1{end} % doesn’t work (ds_example1{2} and ds_example1{‘Variable_1’} don’t work either)
Can you please provide the files to replicate the issue?
sik
May 3, 2023, 12:20pm
3
Hello and thanks for the prompt response.
I have provided a replicable block of code with the sample dataset acetylene.mat. I think one should pretty much be able to run the code exactly as I have it.
No, you did not provide the dataset.
My mistake, I did not know it’s a Matlab example data set. I can confirm that the code
clear all
load acetylene.mat
ds_example = dseries(y)
size(ds_example)
ds_nan = dseries(NaN, ds_example.dates, "inserted_Variable")
ds_example1 = insert(ds_example, ds_nan{1}, 1) % we succesfully insert a variable
size(ds_example1) % check what we’ve done
ds_example1{1} % works
ds_example1{end} % doesn’t work (ds_example1{2} and ds_example1{‘Variable_1’} don’t work either)
does not run, presumably due to a problem with the command history. You can keep track of the bug at Fix crash after using insert (#53) · Issues · Dynare / dseries · GitLab
The bug should be fixed in the current unstable version.
sik
May 13, 2023, 8:08pm
7
Thank you very much, I’ll give it a go!