Population density by housing (number of persons by room) (hratocc)
Fichier: sn_qm_household
Aperçu
Type: Continu
Format: numeric
Largeur: 9
Décimales: 2
Intervalle: 0.100000001490116-15
Enregistrements valides: 0
Invalide: 0
Others
Notes
Variable calculated from the following variables:
- e2 (Number of rooms)
- hmember (Number of persons living in the HH (excluding the persons declared as living outside the HH))

Stata program:
gen hratocc = hmember/e2 if !inlist(e2, 7777, 8888, 9999)
replace hratocc=7777 if e2==7777
replace hratocc=8888 if e2==8888
replace hratocc=9999 if e2==9999