[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Count presence of item on different vars
Check out -tabm- from -tab_chi- on SSC.
Alternatively, an approach from first
principles is to -reshape long- so
that this reduces to a two-way tabulation.
Nikolaos A. Patsopoulos
> I've got a set of variables v6-v146, each one containing
> string values
> (unique values ~4500):
> v6 v7 v8 v9 v10...
> text1 text1 text3 text45 text1...
> text5 text2 text1 text455 text1
> I want to count how many times each of the values appears in at least
> one of the v6-v146 in each row [observation], e.g. text1 appears at
> least once in 7365obs.
> How can achieve this?
* For searches and help try: