Changes for page Guidelines on coding time transformations in SDMX
Last modified by Artur K. on 2026/05/29 14:28
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -12,12 +12,12 @@ 12 12 13 13 Examples: 14 14 15 -| (% style="width:501px" %)**Statement**|(% style="width:303px" %)**T**|(% style="width:472px" %)**P**|(% style="width:454px" %)**F**16 -| (% style="width:501px" %)Quarter on quarter growth rate|(% style="width:303px" %)Growth rate|(% style="width:472px" %)2|(% style="width:454px" %)Q17 -| (% style="width:501px" %)Contribution to growth over 1 year (quarterly data)|(% style="width:303px" %)Contribution to growth|(% style="width:472px" %)4|(% style="width:454px" %)Q18 -| (% style="width:501px" %)Contribution to growth over 1 year (annual data)|(% style="width:303px" %)Contribution to growth|(% style="width:472px" %)1|(% style="width:454px" %)A19 -| (% style="width:501px" %)3 months moving average|(% style="width:303px" %)Moving average|(% style="width:472px" %)3|(% style="width:454px" %)M20 -| (% style="width:501px" %)Annual index (reference year=100){{footnote}}Note that for the case of an index, it is useful to specify the reference base period in an additional attribute (see concept BASE_PER specified inthe SDMX Glossary).{{/footnote}}|(% style="width:303px" %)Index|(% style="width:472px" %)1|(% style="width:454px" %)A15 +|Statement|T|P|F 16 +|Quarter on quarter growth rate|Growth rate|2|Q 17 +|Contribution to growth over 1 year (quarterly data)|Contribution to growth|4|Q 18 +|Contribution to growth over 1 year (annual data)|Contribution to growth|1|A 19 +|3 months moving average|Moving average|3|M 20 +|Annual index (reference year=100)[[~[1~]>>path:#_ftn1]]|Index|1|A 21 21 22 22 This guideline describes two methods that may be used to code a time transformation: 23 23 ... ... @@ -26,7 +26,7 @@ 26 26 27 27 Both of these methods are included as separate use cases as served by each method. The aim of this document is to demonstrate that guidance and a standard approach is available and promoted for each use case. The use cases are described in the related sections. 28 28 29 -Further recommended code values for expressing general statistical concepts such as "not applicable", etc., can be found in section “Generic codes” of the "Guidelines for the creation and management of SDMX Cross-Domain Code Lists" (to be found under “Guidelines” on the official SDMX website {{footnote}}http://sdmx.org/{{/footnote}}).29 +Further recommended code values for expressing general statistical concepts such as "not applicable", etc., can be found in section “Generic codes” of the "Guidelines for the creation and management of SDMX Cross-Domain Code Lists" (to be found under “Guidelines” on the official SDMX website[[~[2~]>>path:#_ftn2]]). 30 30 31 31 = 2. SDMX Concepts for Time Transformations = 32 32 ... ... @@ -37,26 +37,29 @@ 37 37 Definition: This concept provides coded information about time-related transformation types of time series. 38 38 39 39 **Concept ID: **The concept ID is TIMETRANS_TYPE. 40 + 40 40 **Code List Name**: Code list for Time Transformation Type. 42 + 41 41 **Code List ID:** CL_TIMETRANS_TYPE. 44 + 42 42 **Established international standard(s) used as input for the code list**: None. 43 43 44 44 **Version**: 1.0, 15 September 2016 45 45 46 -|**Recommended code value**| (% style="width:309px" %)Recommended code description|(% style="width:1262px" %)Annotation47 -|**N**| (% style="width:309px" %)Non transformed|(% style="width:1262px" %)TIMETRANS_PER is always 1, since a non-transformed number covers by definition a single period48 -|**A**| (% style="width:309px" %)Average|(% style="width:1262px" %)Moving average, i.e. an operation that preserves the frequency of the series49 -|**C**| (% style="width:309px" %)Cumulated sum|(%style="width:1262px" %)50 -|**D**| (% style="width:309px" %)Difference|(%style="width:1262px" %)51 -|**DD**| (% style="width:309px" %)Difference, second order|(% style="width:1262px" %)A second order difference is the delta of deltas52 -|**F**| (% style="width:309px" %)Growth rate, flow over stock|(%style="width:1262px" %)53 -|**FC**| (% style="width:309px" %)Contribution to growth, flow over stock|(%style="width:1262px" %)54 -|**G**| (% style="width:309px" %)Growth rate|(%style="width:1262px" %)55 -|**GC**| (% style="width:309px" %)Contribution to growth|(%style="width:1262px" %)56 -|**I**| (% style="width:309px" %)Index|(% style="width:1262px" %)In the usual case, the index is fixed to 100 for a specific reference period, in most cases a year. It is recommended that the DSD contains an additional attribute BASE_PER (type ObservationalTimePeriod), which specifies the reference period of the index. In special cases (e.g. National Accounts chain linking), the index is fixed to a value different to 100 in the reference year. In these cases the BASE_PER attribute is even more important.57 -|**LA**| (% style="width:309px" %)Annualised levels|(% style="width:1262px" %)This relates to stock versus flow series. For example, many countries publish their Quarterly National Accounts (QNA) at quarterly level, which means that annual Gross Domestic Product (GDP) is the sum of the four quarters, whereas some countries publish their QNA at annual level (e.g. US), which means that annual GDP is the average of the four quarters. In order to present quarterly data in comparable levels across countries and to derive zone aggregates, quarterly data expressed at quarterly levels are “transformed” to annual levels (i.e. multiplied by four) and have this code.58 -|**S**| (% style="width:309px" %)Shifted|(% style="width:1262px" %)The time series was moved back or forth in time. This may for instance be used when non-calendar year series are aligned to the calendar year using certain estimation formulas.59 -|**_O**| (% style="width:309px" %)Other transformation|(% style="width:1262px" %)This code is taken from the guidelines on generic codes, specifying "Other". In that context it should be used if more complex transformations are applied. An explanation of the transformation or a transformation script should be given in a comment field.49 +|**Recommended code value**|Recommended code description|Annotation 50 +|**N**|Non transformed|TIMETRANS_PER is always 1, since a non-transformed number covers by definition a single period 51 +|**A**|Average|Moving average, i.e. an operation that preserves the frequency of the series 52 +|**C**|Cumulated sum| 53 +|**D**|Difference| 54 +|**DD**|Difference, second order|A second order difference is the delta of deltas 55 +|**F**|Growth rate, flow over stock| 56 +|**FC**|Contribution to growth, flow over stock| 57 +|**G**|Growth rate| 58 +|**GC**|Contribution to growth| 59 +|**I**|Index|In the usual case, the index is fixed to 100 for a specific reference period, in most cases a year. It is recommended that the DSD contains an additional attribute BASE_PER (type ObservationalTimePeriod), which specifies the reference period of the index. In special cases (e.g. National Accounts chain linking), the index is fixed to a value different to 100 in the reference year. In these cases the BASE_PER attribute is even more important. 60 +|**LA**|Annualised levels|This relates to stock versus flow series. For example, many countries publish their Quarterly National Accounts (QNA) at quarterly level, which means that annual Gross Domestic Product (GDP) is the sum of the four quarters, whereas some countries publish their QNA at annual level (e.g. US), which means that annual GDP is the average of the four quarters. In order to present quarterly data in comparable levels across countries and to derive zone aggregates, quarterly data expressed at quarterly levels are “transformed” to annual levels (i.e. multiplied by four) and have this code. 61 +|**S**|Shifted|The time series was moved back or forth in time. This may for instance be used when non-calendar year series are aligned to the calendar year using certain estimation formulas. 62 +|**_O**|Other transformation|This code is taken from the guidelines on generic codes, specifying "Other". In that context it should be used if more complex transformations are applied. An explanation of the transformation or a transformation script should be given in a comment field. 60 60 61 61 == 2.2 Time Transformation Periods == 62 62 ... ... @@ -63,30 +63,45 @@ 63 63 Definition: This concept provides information about the number of periods used for a time-related transformation of the time series. 64 64 65 65 **Concept ID: **The concept ID is TIMETRANS_PER. 69 + 66 66 **Code List Name**: Code list for Time Transformation Periods. 71 + 67 67 **Code List ID:** CL_TIMETRANS_PER. 73 + 68 68 **Established international standard(s) used as input for the code list**: None. 69 69 70 70 **Version**: 1.0, 15 September 2016 71 71 72 -(% style="width:1172.96px" %) 73 -|(% style="width:320px" %)**Recommended code value**|(% style="width:408px" %)**Recommended 74 -code description**|(% style="width:442px" %)**Annotation** 75 -|(% style="width:320px" %)**1**|(% style="width:408px" %)One|(% style="width:442px" %) 76 -|(% style="width:320px" %)**2**|(% style="width:408px" %)Two|(% style="width:442px" %) 77 -|(% style="width:320px" %)**etc.**|(% style="width:408px" %)etc.|(% style="width:442px" %) 78 +|**Recommended code value**|**Recommended 79 +code description**|**Annotation** 80 +|**1**|One| 81 +|**2**|Two| 82 +|**etc.**|etc.| 78 78 79 79 == 2.3 Relation of transformation coding to transformation rules == 80 80 81 81 Transformation can also be expressed with transformation rules using a syntax such as the Validation and Transformation Language (VTL). Following the transformation graph model behind VTL, the transformation coding suggested in this guideline can be seen complementary with using transformation rules in VTL. The idea is that a coded non-transformed time series is transformed using a VTL rule and the result is then coded again with transformation codes for further data exchange. This principle is shown in the graph below: 82 82 83 -[[image:1769510498202-796.png]] 84 84 89 +|((( 90 +Level series 91 +))) 92 + 93 +|((( 94 +Transformed series 95 +))) 96 + 97 +|((( 98 +Transformation rule 99 + 100 +(VTL) 101 +))) 102 + 85 85 Using the two concepts as suggested above for coding the type of transformation applied and the number of periods covered will additionally ensure that the parameters used for the formula are directly used in the coding of the resulting series. Thus no complex mapping is needed. The transformation applied is linked to the transformation type concept and the number of periods used for the calculation is linked to the transformation periods concept. 86 86 87 87 **Example:** 88 88 89 -The formula for a simple annual growth rate can be expressed as follows: {{footnote}}Note: often growth rates are expressedas percentage growth, in which case the value is multiplied with 100%. This is however not relevantforthis guideline and is left out for simplicity.{{/footnote}}107 +The formula for a simple annual growth rate can be expressed as follows:[[~[3~]>>path:#_ftn3]] 90 90 91 91 //GT= VT-VT-PVT-P//[[image:file:///C:/Users/axyli/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png]] 92 92 ... ... @@ -147,8 +147,7 @@ 147 147 148 148 In case the mixed frequencies or complex transformations as outlined above are needed in a simpler way and normalisation does not need to be strictly enforced, a composite code list CL_TIMETRANS may be created. 149 149 150 -The number of periods in the code follows the frequency of the series unless stated otherwise. Example: code G3Y refers to a three-year growth rate, irrespective of the series frequency. For complex transformations, the codes that would be used for the respective transformations can be concatenated and separated by an underscore{{footnote}}Example: 151 -G1_C4 Growth rate, period on period, over 4-period cumulated sum{{/footnote}}. 168 +The number of periods in the code follows the frequency of the series unless stated otherwise. Example: code G3Y refers to a three-year growth rate, irrespective of the series frequency. For complex transformations, the codes that would be used for the respective transformations can be concatenated and separated by an underscore[[~[4~]>>path:#_ftn4]]. 152 152 153 153 Example for composite CL_TIMETRANS: 154 154 ... ... @@ -208,7 +208,7 @@ 208 208 209 209 The table below shows coding example using all 3 options lined out above. 210 210 211 -|Statement|Normalised {{footnote}}Forsake of readability theprefix TIMETRANS_ wasnot put in the table. The concepts areinfactcalled TIMETRANS_TYPE and TIMETRANS_PER.{{/footnote}}|Type+Period|Type+Period+Freq228 +|Statement|Normalised[[(% class="wikiinternallink" %)**~[5~]**>>path:#_ftn5]]|Type+Period|Type+Period+Freq 212 212 |Level series (non transformed data)|((( 213 213 FREQ=A or Q or M … 214 214 ... ... @@ -304,4 +304,16 @@ 304 304 305 305 ---- 306 306 307 -{{putFootnotes/}} 324 +[[~[1~]>>path:#_ftnref1]] Note that for the case of an index, it is useful to specify the reference base period in an additional attribute (see concept BASE_PER specified in the SDMX Glossary). 325 + 326 +[[~[2~]>>path:#_ftnref2]] [[http:~~/~~/sdmx.org/>>url:http://sdmx.org/]] 327 + 328 +[[~[3~]>>path:#_ftnref3]] Note: often growth rates are expressed as percentage growth, in which case the value is multiplied with 100%. This is however not relevant for this guideline and is left out for simplicity. 329 + 330 +[[~[4~]>>path:#_ftnref4]] Example: 331 + 332 +|**G1_C4**|Growth rate, period on period, over 4-period cumulated sum 333 + 334 + 335 + 336 +[[~[5~]>>path:#_ftnref5]] For sake of readability the prefix **TIMETRANS_ **was not put in the table. The concepts are in fact called **TIMETRANS_TYPE** and **TIMETRANS_PER**.
- 1769510498202-796.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -xwiki:XWiki.helena - Size
-
... ... @@ -1,1 +1,0 @@ 1 -9.0 KB - Content