Bayesian Var Selection

Use this for suggestions about improvements in RATS
Padova
Posts: 3
Joined: Sun Feb 05, 2012 7:34 pm

Bayesian Var Selection

Unread post by Padova »

There is a missing function in the code?
needs "%ones()"?

Bvarselection.src

**source(echo) BVarselection.src, ERROR IN "comp p_j = gprior*%ones("
**Calls a function not yet defined
** ## SX11. Identifier %ONES is Not Recognizable.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Bayesian Var Selection

Unread post by TomDoan »

There is no %ones function. (Not a bad idea, but we don't have one). You should be able to make this work by adding

Code: Select all

function %ones rows cols
type rect %ones
type integer rows cols
*
compute %ones=%fill(rows,cols,1.0)
end
before you use the procedure.
Post Reply