Hello, I want to do the optimization with the loop method. but I am not familiar with mata :
the following is the code:
optimize_init_params(S, rowvector initialvalues)
in my data ,the ols_26 is a matrice ( 1*n)
so I run the code : optimize_init_params(S,ols_26) in mata.
but stata shows these errors:
optimize_init_params(): 3202 ols_26[0,0] found where rowvector required
DLW(): - function returned error
<istmt>: - function returned error
Thank you for your help.
the following is the code:
optimize_init_params(S, rowvector initialvalues)
in my data ,the ols_26 is a matrice ( 1*n)
so I run the code : optimize_init_params(S,ols_26) in mata.
but stata shows these errors:
optimize_init_params(): 3202 ols_26[0,0] found where rowvector required
DLW(): - function returned error
<istmt>: - function returned error
Thank you for your help.
Comment