Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

create a variable that contains number of times each variable is the same

2 views
Skip to first unread message

Katrine

unread,
Nov 12, 2012, 7:50:25 AM11/12/12
to
Hi guys.

I need some help creating a new variable

I have the variabel: household number. E.g.

1
1
1
2
2
3
3
3

... etc.

And this goes up to 17000 households. I need a variable that contains information of how many times a household number appears. According to the example, it should look like:

3 (times number 1)
2 (times number 2)
3 (times number 3)

.. etc

Can anyone help me?

Regards, Katrine

dpb

unread,
Nov 12, 2012, 9:12:41 AM11/12/12
to
On 11/12/2012 6:50 AM, Katrine wrote:
...

> And this goes up to 17000 households. I need a variable that contains
> information of how many times a household number appears. According to
> the example, it should look like:
> 3 (times number 1)
> 2 (times number 2)
> 3 (times number 3)
>
> .. etc
>
...

doc histc % can

--
0 new messages