Page 1 of 1

Bayesian Var Selection

Posted: Wed Mar 21, 2012 5:17 pm
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.

Re: Bayesian Var Selection

Posted: Mon Mar 26, 2012 2:15 pm
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.