Population of Finland: Difference between revisions
Jump to navigation
Jump to search
m (→Answer) |
|||
(29 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Population characteristics]] | |||
[[Category: CLAIH]] | |||
[[Category:Contains R code]] | |||
[[Category:Code under inspection]] | |||
{{variable|moderator = Virpi Kollanus}} | {{variable|moderator = Virpi Kollanus}} | ||
==Question== | ==Question== | ||
What is the population of Finland? | What is the population size and age structure of the population of Finland? What is the life expectancy in the population? | ||
==Answer== | ==Answer== | ||
<t2b index="Age,Observation" locations=" | <t2b name="Population" index="Age,Observation" locations="Result" unit="#"> | ||
0-4| | 0-4|267686 | ||
5-9| | 5-9|309010 | ||
10-14| | 10-14|305538 | ||
15 | 15-64|3430848 | ||
65-79|902127 | |||
80+|302710 | |||
65 | |||
80 | |||
</t2b> | </t2b> | ||
== | == Rationale == | ||
* [http://pxweb2.stat.fi/database/StatFin/vrm/vaerak/vaerak_fi.asp Statistics of Finland] | * [http://pxweb2.stat.fi/database/StatFin/vrm/vaerak/vaerak_fi.asp Statistics of Finland] | ||
* Population of Finland | * Population of Finland in the end of 2018 | ||
=== | === Data=== | ||
In 2017, the life expectancy for children born was 78.7 years for males and 84.2 years for females. | |||
=== Formula === | === Formula === | ||
Line 44: | Line 33: | ||
'''Total population in Finland | '''Total population in Finland | ||
<rcode> | <rcode name="population" embed=1> | ||
# This is code Op_en2949/population on page [[Population of Finland]] | |||
library(OpasnetUtils) | |||
# Read population data 2018 from Statistics Finland | |||
# Run this code on your computer to get the data in the answer. | |||
#vae <- re#ad.csv("https://pxnet2.stat.fi:443/PXWeb/sq/ac3373d0-e303-4c67-b32a-73c6d26df809", skip=2, fileEncoding="ISO-8859-1") | |||
#vae$Ikä <- as.numeric(gsub(" -","",as.character(vae$Ikä))) | |||
#population <-data.frame(Age=c("0-4", "5-9", "10-14", "15-24", "25-64", "65-79", "80+", "Total population", "Females", "Males"), | |||
# N.of.people=c( | |||
# sum(vae$X2018[vae$Ikä>=0 & vae$Ikä <5]), # Age 0-4 | |||
# sum(vae$X2018[vae$Ikä>=5 & vae$Ikä <10]), # Age 5-9 | |||
# sum(vae$X2018[vae$Ikä>=10 & vae$Ikä <15]), # Age 5-14 | |||
# sum(vae$X2018[vae$Ikä>=15 & vae$Ikä <25]), # Age 15-24 | |||
# sum(vae$X2018[vae$Ikä>=25 & vae$Ikä <65]), # Age 25-64 | |||
# sum(vae$X2018[vae$Ikä>=65 & vae$Ikä <80]), # Age 65-79 | |||
# sum(vae$X2018[vae$Ikä>=80 & vae$Ikä <101]), # Age 80+ | |||
# sum(vae$X2018), # Total population | |||
# sum(vae$X2018[vae$Sukupuoli=="Naiset"]), #Females | |||
# sum(vae$X2018[!(vae$Sukupuoli=="Naiset")]) #Non female | |||
# ) | |||
# ) | |||
# Save the data presented in the table on this page as an ovariable | |||
population <- Ovariable( | |||
"population", | |||
ddata="Op_en2949", subset="Population" | |||
) | |||
objects.store(population) | |||
cat("Ovariable population stored.\n") | |||
</rcode> | </rcode> | ||
Line 131: | Line 147: | ||
<references/> | <references/> | ||
Latest revision as of 05:56, 28 August 2019
Moderator:Virpi Kollanus (see all) |
|
Upload data
|
Question
What is the population size and age structure of the population of Finland? What is the life expectancy in the population?
Answer
Obs | Age | Result |
---|---|---|
1 | 0-4 | 267686 |
2 | 5-9 | 309010 |
3 | 10-14 | 305538 |
4 | 15-64 | 3430848 |
5 | 65-79 | 902127 |
6 | 80+ | 302710 |
Rationale
- Statistics of Finland
- Population of Finland in the end of 2018
Data
In 2017, the life expectancy for children born was 78.7 years for males and 84.2 years for females.
Formula
Total population in Finland
Population parameters per municipality