Classifications 9-1 Files in the Classification Directory Starting with the version 99 of PC-Axis a new file format has been introduced for the classifications. There are 2 file types.vs.agg for valuesets for aggregation lists If there are any valuesets with more than 1000 values a continuation fil with values exists with the extension.vsc (for value codes) and.vsn (for value texts) if texts exist. Value Sets There are 3 types of value sets: Type V is used for "ordinary" variables, such as age. Type H is used for hierarchical variables except nyko (subareas). Type N is used for nyko (subareas). The VS file contains 3 mandatory sections [Descr] for general information [Domain] to give the connection to PC-Axis files [Valuecode] listing all values If there are texts for the values it contains the section [Valuetext] listing texts for all values If there are aggregation lists for the valueset it contains [Aggreg] for information on existing aggregation lists If the valueset is of type H it also contains a section [Level]. If there are no aggregation lists for the valueset the levels section may be missing but will be updated when the first aggregation list is created. If the valueset is of type N it also contains a section [Region] indicating which municipalities exist in the valueset. Type V The name of the valueset is the same as the name of the file, less the extension.vs.
Classifications 9-2 Example file Age5.vs: [Descr] Name=Age5 Prestext=Ages 0-9 - 60+ Type=V [Aggreg] 1=25-years classes.agg [Domain] 1=age [Valuecode] 1=0-4 2=5-9 3=10-14 4=15-19 5=20-24 6=25-29 7=30-34 8=35-39 9=40-44 10=45-49 11=50-54 12=55-59 13=60-64 14=65-69 15=70-74 16=75+ [Valuetext] 1=0-4 years 2=5-9 years 3=10-14 years 4=15-19 years 5=20-24 years 6=25-29 years 7=30-34 years 8=35-39 years 9=40-44 years 10=45-49 years 11=50-54 years 12=55-59 years 13=60-64 years 14=65-69 years 15=70-74 years 16=75+ years In this example there is one aggregation list for the valueset, the file 25-years classes.agg described below.
Classifications 9-3 Type H If the valueset is of type H, hierarchical it contains some more information: Example file SNI92.vs [Descr] Name=SNI92 Prestext=SNI92 Type=H [Level] 1=2 2=4 3=5 4=6 [Domain] 1=SNI92BR [Valuecode] 1=01.111 2=01.112 3=01.113 4=01.114 5=01.115 6=01.117 7=01.119 8=01.121 9=01.122 10=01.123 11=01.124 12=01.125 13=01.127 14=01.129 15=01.131 16=01.137 17=01.139 18=01.211 19=01.212 20=01.213 21=01.217 22=01.221 23=01.222 24=01.223 25=01.227 26=01.228 27=01.231 28=01.232
Classifications 9-4 29=01.233 30=01.237 31=01.241 32=01.242 33=01.243 34=01.247 35=01.249 36=01.250 37=01.251 38=01.252 39=01.253 40=01.254 [Valuetext] 1=spannmålsodlare m fl 2=vallodlare 3=potatisodlare 4=sockerbetsodlare 5=odlare av jordbruksväxter, blandat 6=odlare av växter, blandat, mest jordbruksväxter 7=övriga odlare av jordbruksväxter 8=odlare av köksvöxter på friland 9=odlare av plantskoleväxter m m på friland 10=odlare av köksväxter i växthus 11=odlare av prydnadsväxter i växthus 12=odlare av köks-, prydnads- o plantskoleväxter, blandat 13=odl av växter,blandat,mest köks-,prydn-,plantsk.växter 14=svampodlare m fl 15=frukt- och bärodlare 16=odlare av växter, blandat, mest frukt och bär 17=kryddväxtodlare m fl; bärplockare 18=mjölkproducenter 19=nötköttsproducenter 20=producenter av mjölk och nötkött, blandat 21=husdjursföretag, blandad drift, mest nötkreatur 22=fåruppfödare 23=getuppfödare 24=uppfödare av får o getter, blandat 25=husdjursföretag, blandad drift, mest får och getter 26=stuterier och andra hästuppfödare m fl 27=smågrisuppfödare 28=slaktsvinsuppfödare 29=uppfödare av smågrisar och slaktsvin, blandat 30=husdjursföretag, blandad drift, mest svin 31=äggproducenter 32=slaktkycklingsuppfödare 33=fjäderfäföretag, blandad drift 34=husdjursföretag, blandad drift, mest fjäderfä
Classifications 9-5 35=övriga fjäderfäföretag 36=andra djurskötselföretag 37=renskötare 38=pälsdjursuppfödare 39=bi-, mask- och andra smådjursuppfödare 40=uppfödare av sällskapsdjur The level information indicates the number of digits/characters for each level. In this case the codes include a dot. [Level]1=2 indicates that the 2 first characters make up the first level, i e 01 [Level]2=4 indicates that the 4 first characters make up the second level, i e 01.1 [Level]3=5 indicates that the 5 first characters make up the third level, i e 01.11 [Level]4=6 indicates that the 6 first characters make up the fourth level, i e 01.111 Type N For variables of type N the values are written as county, municipality, subarea. And it contains information stating from which regions there are values. Example file Nyko18.vs: [Descr] Name=Nyko18 Prestext=Subareas for municipalities in county 18 Type=N [Aggreg] 1=testN18.agg [Region] 1=1814 2=1860 3=1864 [Domain] 1=Region 2=Delområde [Valuecode] 1=1814911001 2=1814912001 3=1814913001 4=1814914002 5=1814914003 6=1814914004 7=1814914005 8=1814914006 9=1814916001 10=1814917001 11=1814918001 12=1814919001
Classifications 9-6 13=1814922002 14=1814925002 15=1814925003 16=1814925004 17=1814999801 18=1814999802 19=1860011113 20=1860100000 21=1860110000 22=1860111100 23=1860111200 24=1860111300 25=1860111400 26=1860112100 27=1860112200 28=1860112300 29=1860113100 30=1860113200 31=1860113300 32=1860114100 33=1860114200 34=1860114300 35=1860115100 36=1860115200 37=1860115300 38=1860116000 39=1860117100 40=1860117200 41=1860120000 42=1860131000 43=1860132000 44=1860133000 45=1860134000 46=1860135000 47=1860200000 48=1860210000 49=1860221000 50=1864111000 51=1864111010 52=1864111020 53=1864112000 54=1864113000 55=1864114000 56=1864190000 57=1864190010 58=1864190020 59=1864190030
Classifications 9-7 60=1864210000 61=1864220000 62=1864230000 63=1864240000 64=1864250000 65=1864290000 66=1864290010 67=1864290020 68=1864290030 69=1864310000 70=1864390000 Vale Sets with more than 1000 Values If there are more than 1000 values for a valueset, the VS-file will end with 1000=**** in the section [Valuecode]. This means that the 1000th value and all the rest are to be found in a file with the same name but with extension.vsc. The VSC-file contains one record for each value and each record consists of only the value. If there are texts for the values there is a file with the same name but with extension.vsn. This file contains one record for each value text and each record contains just the value text. Example 1: File: KN8-9.VS [Descr] Name=KN8-9 Type=V [Aggreg] 1=KNgrupper.agg 2=KNgrupp0708.agg [Domain] 1=KN [Valuecode] 1=01011100 2=01011910 3=01011990 4=01012010 996=07099079 997=07099090 998=07099090x
Classifications 9-8 999=07101000 1000=**** File: KN8-9.VSC 07102100 07102200 07102900 07103000 07104000 etc There is no file KN8-9.VSN because there are no texts for this value set. Example 2: File: CFAR-SNI92.VS [Descr] Name=CFAR-SNI92 Type=V [Domain] 1=SNI92BR [Valuecode] 1=A-Q 2=01 3=01.11 4=01.111 5=01.112 996=63.301 997=63.302 998=63.303 999=63.40 1000=**** [Valuetext] 1=samtliga näringsgrenar 2=jordbruk och serviceföretag till jordbruk 3=jordbruksväxtodlare 4=spannmålsodlare m fl 5=vallodlare
Classifications 9-9 996=researrangörer 997=resebyråer 998=turistbyråer 999=speditörer, lastbilscentraler, skeppsmäklare 1000=speditörer, lastbilscentraler, skeppsmäklare File: CFAR-SNI92.VSC 63.400 64 64.11 64.110 64.12 64.120 64.20 etc File: CFAR-SNI92.VSN speditörer, lastbilscentraler, skeppsmäklare post- och tele-kommunikationsföretag postverket postverket budbils-, kurir- och andra postföretag budbils-, kurir- och andra postföretag telekommunikationsföretag etc
Classifications 9-10 Aggregation Lists The agg - files have two mandatory sections plus one section for each group. [Aggreg] contains Name=The name of the aggregation list which is the same as the name of the file less the extension.agg. Valueset=The name of the valueset it belongs to. 1, 2, etc=all groups that have been created. Optional Map=Name of a map to be used if a geographical variable [Aggtext] contains texts for every group in section [Aggreg] [group] contains all values that make up the group. Example: File: 25-years classes.agg [Aggreg] Name=25-years classes Valueset=Age5 1=0-24 2=25-49 3=50-74 4=75+ [Aggtext] 1=0-24 2=25-49 3=50-74 4=75+ [0-24] 1=0-4 2=5-9 3=10-14 4=15-19 5=20-24 [25-49] 1=25-29 2=30-34 3=35-39 4=40-44
Classifications 9-11 5=45-49 [50-74] 1=50-54 2=55-59 3=60-64 4=65-69 5=70-74 [75+] 1=75+