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 1401 CSV file
hhid
province
urban
members
income
exp_food
exp_total
weight
1401230830
6
2
3
2083000000
650000000
2064000000
663.4
1401969691
1
1
2
1267000000
470000000
1476000000
227.1
1401525388
28
1
3
2597000000
250000000
2529000000
603.2
1401715353
12
1
3
3123000000
353000000
2234000000
659.5
1401790122
21
2
6
2557000000
457000000
2087000000
732.2
Full file: About 38,000 households per year
Variables 1401 (2022)
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 1401 (2022)
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-1401-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-1401-all.csv")
print(df.head())
# weighted mean of members
(df["members"] * df["weight"]).sum() / df["weight"].sum()
Stata
import delimited "heis-1401-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-1401-all-csv.zip SHA256
# Mac and Linux
shasum -a 256 heis-1401-all-csv.zip
Three-stage cluster sampling. Each household is interviewed once a year. The full report is at the original source.
Citation 1401 (2022)
Statistical Centre of Iran (2022). Household Income and Expenditure Survey, 1401 [data]. Retrieved via Repository of Iranian Statistical Data, 2024-07-31.