Population and Housing Census 1385 (2006)
A full count of Iran's people and homes, every ten or five years. Files are a 2% household sample.
- Year
- 1385 / 2006
- Original source
- Statistical Centre of Iran
- Terms of use
- Non-commercial use with credit
- Retrieved from source
- 2024-07-31
- Total size
- 646 MB
Data files 1385 (2006)
| File name | Format | Size | Download |
|---|---|---|---|
census-1385-2pct-csv.zip | CSV ZIP | 640 MB | Download |
Documents (codebook and questionnaire)
Cleaned versions
No cleaned version for this dataset yet.
Data preview: first 5 rows 1385 (2006)
See what the file looks like before you download. Each row is one household and person. The meaning of each column is in Variables.
hhid | province | urban | sex | age | educ | activity | weight |
|---|---|---|---|---|---|---|---|
| 1385856382 | 1 | 2 | 2 | 64 | 6 | 1 | 276.0 |
| 1385771707 | 25 | 1 | 2 | 67 | 3 | 2 | 451.5 |
| 1385275592 | 3 | 2 | 2 | 78 | 4 | 3 | 679.8 |
| 1385433766 | 29 | 1 | 2 | 55 | 6 | 1 | 673.9 |
| 1385115065 | 11 | 2 | 2 | 74 | 6 | 1 | 155.8 |
Full file: About 480,000 households (2% sample)
Variables 1385 (2006)
| Column | Meaning | Type | Note |
|---|---|---|---|
hhid | Household ID | ID | |
province | Province (code) | Code | |
urban | Urban=1, Rural=2 | Code | |
sex | Sex: male=1, female=2 | Code | |
age | Age (years) | Number | |
educ | Highest education (code) | Code | |
activity | Activity status (code) | Code | |
weight | Sample weight | Number |
The full list of codes (for example province codes) is in the guide (codebook) file.
How to use 1385 (2006)
- 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("census-1385-2pct.csv")
head(df)
# weighted mean of age
weighted.mean(df$age, df$weight, na.rm = TRUE)Python
import pandas as pd
df = pd.read_csv("census-1385-2pct.csv")
print(df.head())
# weighted mean of age
(df["age"] * df["weight"]).sum() / df["weight"].sum()Stata
import delimited "census-1385-2pct.csv", clear encoding(utf-8)
describe
summarize age [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 census-1385-2pct-csv.zip SHA256
# Mac and Linux
shasum -a 256 census-1385-2pct-csv.zip
census-1385-2pct-csv.zip83c519638e62ddb3434eb8687b0cc0c790dfe3257fc7299f517fd19bd752ea28
Methodology 1385 (2006)
- Unit
- Household and person
- Sample size
- About 480,000 households (2% sample)
- Coverage
- All provinces, urban and rural
- Weight column
weight
The full methodology report is at the original source. Important changes from the previous year are written in the year notes.
Citation 1385 (2006)
Statistical Centre of Iran (2006). Population and Housing Census, 1385 [data]. Retrieved via Repository of Iranian Statistical Data, 2024-07-31.