Search found 8 matches

by ohubert
Wed Jun 01, 2022 11:40 pm
Forum: Programming
Topic: How to use temporary variables in state space?
Replies: 3
Views: 6314

Re: How to use temporary variables in state space?

Hi Gareth, Thank you for spotting that error. Suppose now that the code is the following: wfcreate(wf=annual, page=myproject) a 1950 2005 genr series1=nrnd genr series2= 0.9*series1(-1)+ 0.1*nrnd %stdgdp="gdp" ' shortcut for standarization by GDP: "" for not, "gdp" if y...
by ohubert
Thu May 19, 2022 8:00 am
Forum: Estimation
Topic: How do I set an initial coefficient value in a State Space object from a previously calculated scalar?
Replies: 6
Views: 5260

Re: How do I set an initial coefficient value in a State Space object from a previously calculated scalar?

Hi Gareth,

Unfortunately, still not working:
Error in Param statement in "LOCALLEVELBIS.ML" on line 77.

Thanks.
by ohubert
Thu May 19, 2022 12:59 am
Forum: Programming
Topic: How to use temporary variables in state space?
Replies: 3
Views: 6314

How to use temporary variables in state space?

Hi all, I am trying to automate building a state space to avoid having numerous lines of code. I want to estimate a relationship for a variable in levels or divided by GDP. I thus have created variables in level and divided by GDP. The structure of the names of the variables is convenient and allows...
by ohubert
Thu May 19, 2022 12:01 am
Forum: Estimation
Topic: How do I set an initial coefficient value in a State Space object from a previously calculated scalar?
Replies: 6
Views: 5260

Re: How do I set an initial coefficient value in a State Space object from a previously calculated scalar?

Thank you.

However, I still get an error message:
!COEF1 is not a valid string or scalar name in "LOCALLEVELBIS.
APPEND PARAM C(1) -7 C(2) {!COEF1}" on line 59.

How can I solve this?


Thanks again.
by ohubert
Wed May 18, 2022 2:45 am
Forum: Estimation
Topic: How do I set an initial coefficient value in a State Space object from a previously calculated scalar?
Replies: 6
Views: 5260

How do I set an initial coefficient value in a State Space object from a previously calculated scalar?

Dear all, when creating a state space object, how can I set an initial value for a coefficient of the state space which comes from an object that already exists in my workfile? I know how to set an initial value in a state space, but I would like to use outside information to help/accelerate the max...
by ohubert
Mon May 16, 2022 11:39 pm
Forum: Programming
Topic: Handle two temporary control variables in nested loops
Replies: 2
Views: 3348

Re: Handle two temporary control variables in nested loops

Thank you for having a look.

For some reason, it did not run correctly on my machine. It does now.

Thanks again.
by ohubert
Fri May 13, 2022 7:38 am
Forum: Programming
Topic: Handle two temporary control variables in nested loops
Replies: 2
Views: 3348

Handle two temporary control variables in nested loops

Hi all, I am try to automate some computation with transformation of series names. The problem that I have is that the temporary variable used as counter in the loop does not allow me to loop over lists of characters. I come from MATLAB, so my way of doing things may not be the most appropriate for ...

Go to advanced search