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 1399 CSV file
hhid
province
urban
members
income
exp_food
exp_total
weight
1399976225
2
1
2
2336000000
879000000
2714000000
330.5
1399776239
13
1
5
1984000000
746000000
1220000000
187.2
1399735854
8
1
3
2546000000
494000000
1018000000
559.8
1399325716
4
1
5
2650000000
583000000
1065000000
412.9
1399263135
14
2
2
2346000000
470000000
2501000000
660.3
Full file: About 38,000 households per year
Variables 1399 (2020)
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 1399 (2020)
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-1399-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-1399-all.csv")
print(df.head())
# weighted mean of members
(df["members"] * df["weight"]).sum() / df["weight"].sum()
Stata
import delimited "heis-1399-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-1399-all-csv.zip SHA256
# Mac and Linux
shasum -a 256 heis-1399-all-csv.zip
Three-stage cluster sampling. Each household is interviewed once a year. The full report is at the original source.
Citation 1399 (2020)
Statistical Centre of Iran (2020). Household Income and Expenditure Survey, 1399 [data]. Retrieved via Repository of Iranian Statistical Data, 2024-07-31.