Bayesian Var Selection

Use this for suggestions about improvements in RATS

Bayesian Var Selection

Unread postby Padova » Wed Mar 21, 2012 5:17 pm

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


**source(echo) BVarselection.src, ERROR IN "comp p_j = gprior*%ones("
**Calls a function not yet defined
** ## SX11. Identifier %ONES is Not Recognizable.
Posts: 3
Joined: Sun Feb 05, 2012 8:34 pm

Re: Bayesian Var Selection

Unread postby TomDoan » Mon Mar 26, 2012 2:15 pm

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)

before you use the procedure.
Posts: 7240
Joined: Wed Nov 01, 2006 5:36 pm

Return to Suggestion Box

Who is online

Users browsing this forum: No registered users and 1 guest