فارسی
This is a test version of the site. Data, file sizes and links are samples.
Income, spending & prices

Household Income and Expenditure Survey (HEIS) 1400 (2021)

Yearly survey of urban and rural household income, spending and assets.

Year
1400 / 2021
Original source
Statistical Centre of Iran
Terms of use
Non-commercial use with credit
Retrieved from source
2024-07-31
Total size
191 MB

Data files 1400 (2021)

File nameFormatSizeDownload
heis-1400-all-csv.zipCSV ZIP186 MBDownload

Documents (codebook and questionnaire)

File nameFormatSizeDownload
Codebook (variable guide)
heis-1400-codebook-fa.pdf
PDF3.7 MBDownload
Questionnaire
heis-1400-questionnaire-fa.pdf
PDF1.4 MBDownload

Cleaned versions

Other researchers made these versions. The original data is unchanged. If you use one, cite both this version and the original data.

HEIS 1399 to 1402, panel file

By Sample Author B · Sample University · 2024

What was changed:

  • Repeat households linked across years
  • Variable names made the same in all years
Format
CSV
Size
1.2 GB
License
CC BY 4.0

Cite this version:

Sample Author B (2024). HEIS 1399 to 1402, panel file [cleaned data]. Sample University. https://doi.org/10.5281/zenodo.0000002.

Download (1.2 GB)

Send your own cleaned version

Data preview: first 5 rows 1400 (2021)

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 1400 CSV file
hhidprovinceurbanmembersincomeexp_foodexp_totalweight
1400403281202517700000007530000002322000000566.9
140024133081423390000007940000001489000000504.4
140040663372215900000006630000002766000000710.7
1400105217132624300000003370000001175000000242.8
1400442223262321000000006770000002454000000690.2

Full file: About 38,000 households per year

Variables 1400 (2021)

ColumnMeaningTypeNote
hhidHousehold IDID
provinceProvince (code)Code
urbanUrban=1, Rural=2Code
membersHousehold sizeNumber
incomeYearly income (rial)Number
exp_foodYearly food spending (rial)Number
exp_totalYearly total spending (rial)Number
weightSample weightNumber

The full list of codes (for example province codes) is in the guide (codebook) file.

How to use 1400 (2021)

  1. Download the CSV file.
  2. If it is a ZIP file, unzip it.
  3. Check the file check code (below).
  4. Open it in your program. Example code:

R

library(readr)
df <- read_csv("heis-1400-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-1400-all.csv")
print(df.head())
# weighted mean of members
(df["members"] * df["weight"]).sum() / df["weight"].sum()

Stata

import delimited "heis-1400-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-1400-all-csv.zip SHA256
# Mac and Linux
shasum -a 256 heis-1400-all-csv.zip

heis-1400-all-csv.zip
544401e9ce8235b5e674cf77367568732c1792d2c84575d038f79db7bdb29e24

Methodology 1400 (2021)

Unit
Household
Sample size
About 38,000 households per year
Coverage
All provinces, urban and rural
Weight column
weight

Three-stage cluster sampling. Each household is interviewed once a year. The full report is at the original source.

Citation 1400 (2021)

Statistical Centre of Iran (2021). Household Income and Expenditure Survey, 1400 [data]. Retrieved via Repository of Iranian Statistical Data, 2024-07-31.