Question about estimation

The command

save data_mat itm_obs itr_obs itc_obs itin_obs itip_obs ;

didn’t work for me. I imported the data in MATLAB and then used

> save data_mat Dataitmobs Dataitrobs Dataitcobs Dataitpiobs Dataitinobs ;

which worked for me. However, I’m running free trial version of MATLAB that will expire soon. So, can the same operation be done in Octave? I couldn’t import .MAT files…

Yes, loading mat files should work in Octave.

But loading this file works fine in MATLAB and it shows 1x116 dimension, however loading same file in Octave shows 1x1 dimension.
data_mat1.mat (6.2 KB)

I cannot reproduce this in Octave 8.4.

What do you mean? My file also shows only 1x1 dimension or it shows correctly 1x116 dimension?

I’m running the same version of Octave 8.4.0, and I can open your file data_fs2000.mat with 1x203 dimension but it shows 1x1 dimension if I try to open my file data_mat1.mat (6.2 KB)

In Matlab R2004a, both files run perfectly and my file shows 1x116 dimension

I see. The problem is that you saved the data in Matlab’s native table format, not just as a standard variable.

Edit: I already found instructions on how to change the data type

I’ve created my own three files, according to your templates. Please excuse my beginner’s questions, but:

  1. How do I use data in .M file, after I open them in “Editor” window, do I enter the commands in the “Command window”? They don’t seem to be working…
  2. The real world observations data is entered as c_obs m_obs in_obs pi_obs r_obs in the var section, but as Dataitrobs Dataitpiobs Dataitmobs Dataitinobs Dataitcobs; in the varobs section. Can they be entered under two different names?

Thanks in advance.

Model.mod (3.7 KB)
reestimate model.m (371 Bytes)
data1.mat (4.9 KB)

Dear professor,

using the tree files below, I obtain this error message:

Running .M file does nothing/doesn’t work and running .MOD file produces the above error message.

reestimate model.m (371 Bytes)
Model.mod (3.6 KB)
data1.mat (4.9 KB)

Dear professor @stepan-a,

running the three files in the attachment, I obtain this error message:

Could you please advise me where have I done a mistake? Thanks a million in advance!

data1.mat (4.9 KB)
Model.mod (3.6 KB)
reestimate model.m (371 Bytes)

Is the question still current?

I still have problems running my files, however I stopped receiving answers so I started new topic…