See what the file looks like before you download. Each row is one household. The meaning of each column is in Variables.
First rows of the 1402 CSV file
hhid
province
urban
members
income
exp_food
exp_total
weight
1402516234
30
1
1
2043000000
542000000
2428000000
400.9
1402522379
22
2
6
1074000000
426000000
2631000000
290.9
1402339529
3
2
1
2804000000
473000000
1677000000
542.0
1402113223
29
1
1
1720000000
576000000
930000000
563.2
1402347419
14
2
6
2470000000
460000000
2364000000
725.3
Full file: About 38,000 households per year
Variables 1402 (2023)
Column
Meaning
Type
Note
hhid
Household ID
ID
province
Province (code)
Code
urban
Urban=1, Rural=2
Code
members
Household size
Number
income
Yearly income (rial)
Number
exp_food
Yearly food spending (rial)
Number
exp_total
Yearly total spending (rial)
Number
weight
Sample weight
Number
The full list of codes (for example province codes) is in the guide (codebook) file.
How to use 1402 (2023)
Download the CSV file.
If it is a ZIP file, unzip it.
Check the file check code (below).
Open it in your program. Example code:
R
library(readr)
df <- read_csv("heis-1402-all.csv")
head(df)
# weighted mean of members
weighted.mean(df$members, df$weight, na.rm = TRUE)
Python
import pandas as pd
df = pd.read_csv("heis-1402-all.csv")
print(df.head())
# weighted mean of members
(df["members"] * df["weight"]).sum() / df["weight"].sum()
Stata
import delimited "heis-1402-all.csv", clear encoding(utf-8)
describe
summarize members [aweight=weight]
Important: This is a sample. To get correct numbers for the whole country, always use the weight column (weight).
File check code (SHA-256)
After download, compare this code with your file's code. If they match, the file is complete.
# Windows
certutil -hashfile heis-1402-all-csv.zip SHA256
# Mac and Linux
shasum -a 256 heis-1402-all-csv.zip
Three-stage cluster sampling. Each household is interviewed once a year. The full report is at the original source.
Citation 1402 (2023)
Statistical Centre of Iran (2023). Household Income and Expenditure Survey, 1402 [data]. Retrieved via Repository of Iranian Statistical Data, 2024-07-31.