On Fri, 14 Sep 2012, Annaert Jan wrote:

> Would it be a big deal to allow the freq command to operate on vectors? 
> I know I can convert the vector into a series and then use the freq 
> command. But especially when the number of elements in the vector is 
> larger than the dataset's dimension this because somewhat more 
> cumbersome. A freq command accepting a column (or row) vector as input 
> would be a real time-saver… Thanks for considering the request. Jan 
> Annaert

I agree, it would be nice to have. In the meantime, you could adapt to 
your needs the following code snippet:

<hansl>
x = ceil(muniform(400,1)*6)
frq = sumc(x .= values(x)')
print frq
</hansl>

--------------------------------------------------
  Riccardo (Jack) Lucchetti
  Dipartimento di Economia

  Università Politecnica delle Marche
  (formerly known as Università di Ancona)

  r.lucchetti(a)univpm.it
  http://www2.econ.univpm.it/servizi/hpp/lucchetti
--------------------------------------------------

Reply via email to