0

Let's say I have a variable in Stata: house number.

I want a new variable that tells me the frequency of each value of 'house number'.

Nick Cox
  • 35,529
  • 6
  • 31
  • 47

1 Answers1

0
bysort house_number : gen frequency = _N
Nick Cox
  • 35,529
  • 6
  • 31
  • 47