[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Number of observantions in each of the cells of an N-Dimensional Array
I believe that -groups- from SSC will help
-groups- was also discussed in
Problems with tables, Part II.
Stata Journal 3(4): 420--439 (2003)
Alternatively, it's not as difficult
as you fear. -egen, group() label- or -egen,
concat()- can create cross-combinations,
after which -tab, sort- will sort in
order of frequency.
> I am interested in ranking and displaying the number of
> observantions that
> are present in each of the cells of an N-Dimensional Array.
> For example if I have a 2x3x2x5 array I have 60 cells each
> of them having a
> number of observacions. I need to list all of them showing
> first the most
> populated cells. For low dimensional arrays i may just use
> tabcount amd
> count the values. However for higher dimensional arrays this may be
> Is there any command in stata that can do that? If not, can
> somobody help me
> programming it? Pushing my luck a little further... I will
> need to do this
> expanding the observations according to some weighting factor.
* For searches and help try: