Government consumption preprocessor: Difference between revisions

From Pardee Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
= Series read =
= Series read =


{| border="1" cellpadding="0" cellspacing="0" width="694"
{| cellpadding="0" cellspacing="0" border="1" width="694"
|-
|-
| height="20" width="243" | SeriesGovtMil%GDPSIPRI
| width="243" height="20" | SeriesGovtMil%GDPSIPRI
| width="150" | Government, Conflict
| width="150" | Government, Conflict
| width="64" | Expenditure
| width="64" | Expenditure
| width="173" | <span style="background-color:#FFFF00;">SIPRI, Stockholm International Peace Research Institute</span>
| width="173" | <span style="background-color: rgb(255, 255, 0);">SIPRI, Stockholm International Peace Research Institute</span>
| width="64" | Military expenditures as percent of GDP (SIPRI)
| width="64" | Military expenditures as percent of GDP (SIPRI)
|-
|-
Line 12: Line 12:
| Government, Infrastructure, Conflict
| Government, Infrastructure, Conflict
| Expenditure
| Expenditure
| <span style="background-color:#FFFF00;">ACDA www.state.gov/global/arms/bureau_ac/reports_ac.html + asst earlier volumes</span>
| <span style="background-color: rgb(255, 255, 0);">ACDA www.state.gov/global/arms/bureau_ac/reports_ac.html + asst earlier volumes</span>
| Military expenditures as percent of GDP (ACDA)
| Military expenditures as percent of GDP (ACDA)
|-
|-
Line 42: Line 42:
| Government
| Government
| Research and Development
| Research and Development
| <span style="background-color:#FFFF00;">UNESCO</span>
| <span style="background-color: rgb(255, 255, 0);">UNESCO</span>
| Gross R&D expenditure by government
| Gross R&D expenditure by government
|-
|-
Line 48: Line 48:
| Science Technology, Infrastructure, Knowledge
| Science Technology, Infrastructure, Knowledge
| R&D
| R&D
| <span style="background-color:#FFFF00;">Constructed from multiple WDI vol;CD incl 01, 02, 04,05,06,07; 2006-2008 Update from UIS Website</span>
| <span style="background-color: rgb(255, 255, 0);">Constructed from multiple WDI vol;CD incl 01, 02, 04,05,06,07; 2006-2008 Update from UIS Website</span>
| R&D as&nbsp;% of GDP (in some earlier years was GNI)
| R&D as&nbsp;% of GDP (in some earlier years was GNI)
|-
|-
Line 73: Line 73:
| Finance
| Finance
| IMF GFS 2013 BATCH PULL
| IMF GFS 2013 BATCH PULL
| Education spending, government, total, as&nbsp;% of GDP
| Education spending, government, total, as&nbsp;% of GDP<br/>
|}
|}
= Equations =
== Defense ==
'''To fill holes:''' "GDP/Capita (PPP) Versus Govt Exp Mil as&nbsp;% of GDP (" & CStr(BaseYear) & ") - linear"
'''This equation is using:&nbsp;'''<span style="background-color: rgb(255, 255, 0);">GDP/Capita (PPP) Versus Govt Exp Mil as&nbsp;% of GDP (2000) - linear</span>
== Health ==
'''To fill holes:''' "GDP/Capita (PPP) Versus Govt Exp Hlth as&nbsp;% of GDP (" & CStr(BaseYear) & ") - log"
'''This equation is using:''' <span style="background-color: rgb(255, 255, 0);">GDP/Capita (PPP) Versus Govt Exp Hlth as&nbsp;% of GDP (2000) - log</span>
== Education ==
'''To fill holes:''' <span><span style="background-color: rgb(255, 255, 0);">"GDP/Capita (PPP) Versus Govt Exp Educ as&nbsp;% of GDP (2002) - log"</span></span>
== R&D ==
'''To fill holes:''' "GDP/Capita (PPP) Versus R&D Total&nbsp; as&nbsp;% of GNI (" & CStr(BaseYear) & ") - linear"
'''This equation is using:''' <span style="background-color: rgb(255, 255, 0);">GDP/Capita (PPP) Versus R&D Total&nbsp; as&nbsp;% of GNI (2000) - linear</span>
'''To fill holes:''' "GDP/Capita (PPP) Versus Govt Exp R&D as&nbsp;% of GNP (" & CStr(BaseYear) & ") - linear"
'''This equation is using: '''<span style="">GDP/Capita (PPP) Versus Govt Exp R&D as&nbsp;% of GNP (2000) - linear&nbsp;</span>
== Infrastructure ==
'''To fill holes:'''&nbsp;<span style="background-color: rgb(255, 255, 0);">GExpInfraOther(ICount%) = 1.8162 + 0.061 * Log(CGDPPCP(ICount%))</span>
''Need to put in TablFunc''


= Initializations =
= Initializations =
Line 117: Line 83:


'''If null estimate using GDPPCP: '''TbName$ = "GDP/Capita (PPP) Versus Govt Exp Mil as&nbsp;% of GDP (" & CStr(BaseYear) & ") - linear"
'''If null estimate using GDPPCP: '''TbName$ = "GDP/Capita (PPP) Versus Govt Exp Mil as&nbsp;% of GDP (" & CStr(BaseYear) & ") - linear"
'''To fill holes:''' "GDP/Capita (PPP) Versus Govt Exp Mil as&nbsp;% of GDP (" & CStr(BaseYear) & ") - linear"
'''This equation is using:&nbsp;'''<span style="background-color: rgb(255, 255, 0);">GDP/Capita (PPP) Versus Govt Exp Mil as&nbsp;% of GDP (2000) - linear</span>


== Health ==
== Health ==
Line 123: Line 93:


If null estimate using GDPPCP:&nbsp; TbName$ = "GDP/Capita (PPP) Versus Govt Exp Hlth as&nbsp;% of GDP (" & CStr(BaseYear) & ") - log"
If null estimate using GDPPCP:&nbsp; TbName$ = "GDP/Capita (PPP) Versus Govt Exp Hlth as&nbsp;% of GDP (" & CStr(BaseYear) & ") - log"
'''To fill holes:''' "GDP/Capita (PPP) Versus Govt Exp Hlth as&nbsp;% of GDP (" & CStr(BaseYear) & ") - log"
'''This equation is using:''' <span style="background-color: rgb(255, 255, 0);">GDP/Capita (PPP) Versus Govt Exp Hlth as&nbsp;% of GDP (2000) - log</span>


Initialize private health expenditures using '''SeriesHealthExpPriv%Tot'''. If no data, but there is data on total health expenditures '''(SeriesHealthExpTot%GDP) '''then set private as the difference between total and public.
Initialize private health expenditures using '''SeriesHealthExpPriv%Tot'''. If no data, but there is data on total health expenditures '''(SeriesHealthExpTot%GDP) '''then set private as the difference between total and public.
Line 137: Line 111:


Call XYTABL("GDP/Capita (PPP) Versus Govt Exp Educ as&nbsp;% of GDP (2002) - log", _<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Amin(40, CGDPPCP(ICount%)), GExpEd(ICount%))
Call XYTABL("GDP/Capita (PPP) Versus Govt Exp Educ as&nbsp;% of GDP (2002) - log", _<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Amin(40, CGDPPCP(ICount%)), GExpEd(ICount%))
'''To fill holes:''' <span><span style="background-color: rgb(255, 255, 0);">"GDP/Capita (PPP) Versus Govt Exp Educ as&nbsp;% of GDP (2002) - log"</span></span>


Bound as 1.5% as a minimum. Set Uzbekistan to 3%.
Bound as 1.5% as a minimum. Set Uzbekistan to 3%.
Line 145: Line 121:


If ExpRandDTot is null then estimate using: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TbName$ = "GDP/Capita (PPP) Versus R&D Total&nbsp; as&nbsp;% of GNI (" & CStr(BaseYear) & ") - linear"
If ExpRandDTot is null then estimate using: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TbName$ = "GDP/Capita (PPP) Versus R&D Total&nbsp; as&nbsp;% of GNI (" & CStr(BaseYear) & ") - linear"
'''This equation is using:''' <span style="background-color: rgb(255, 255, 0);">GDP/Capita (PPP) Versus R&D Total&nbsp; as&nbsp;% of GNI (2000) - linear</span>


If GExpRandD is null then estimate using: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TbName$ = "GDP/Capita (PPP) Versus Govt Exp R&D as&nbsp;% of GNP (" & CStr(BaseYear) & ") - linear"
If GExpRandD is null then estimate using: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TbName$ = "GDP/Capita (PPP) Versus Govt Exp R&D as&nbsp;% of GNP (" & CStr(BaseYear) & ") - linear"
'''This equation is using: '''<span style="background-color: rgb(255, 255, 0);">GDP/Capita (PPP) Versus Govt Exp R&D as&nbsp;% of GNP (2000) - linear&nbsp;</span>


Initialize central government health expenditures (GExpHlCen) using '''SeriesGovtCalcHealthCen%GDP'''
Initialize central government health expenditures (GExpHlCen) using '''SeriesGovtCalcHealthCen%GDP'''
Line 163: Line 143:


''<span style="color: rgb(0, 0, 0);">'''Note:''' default setting of infrastructure finance is on (1) - changing this to off (0) in global parameters (IFs.mdb) means that infrastructure spending is initialized at zero.</span>''
''<span style="color: rgb(0, 0, 0);">'''Note:''' default setting of infrastructure finance is on (1) - changing this to off (0) in global parameters (IFs.mdb) means that infrastructure spending is initialized at zero.</span>''
''<span style="color: rgb(0, 0, 0);"></span>''
'''To fill holes:'''&nbsp;<span style="background-color: rgb(255, 255, 0);">GExpInfraOther(ICount%) = 1.8162 + 0.061 * Log(CGDPPCP(ICount%))</span>


''Need to put in TablFunc''
''<span style="color: rgb(0, 0, 0);"></span>''
If infrastructure finance is on (default) then sum up new construction and maintenance from all sub-types of infrastructure. Cap at 10% of GDP.
If infrastructure finance is on (default) then sum up new construction and maintenance from all sub-types of infrastructure. Cap at 10% of GDP.



Revision as of 15:00, 17 May 2016

Series read

SeriesGovtMil%GDPSIPRI Government, Conflict Expenditure SIPRI, Stockholm International Peace Research Institute Military expenditures as percent of GDP (SIPRI)
SeriesGovtMil%GDP Government, Infrastructure, Conflict Expenditure ACDA www.state.gov/global/arms/bureau_ac/reports_ac.html + asst earlier volumes Military expenditures as percent of GDP (ACDA)
SeriesGovtHl%GDP Government, Health, Infrastructure Expenditure WDI  BATCH PULL Health expenditures as percent of GDP, public
SeriesHealthExpPriv%Tot Population, Health Expenditure WHO Global Health Expenditure Database Private expenditure on health (PvtHE) as % of Total Health Expenditure
SeriesHealthExpTot%GDP Population, Health Expenditure WHO Global Health Expenditure Database Total health expenditure (THE) % Gross Domestic Product (GDP)
SeriesGovtEdPub%GDP Government Expenditure WDI  BATCH PULL Educational expenditures (public) as percent of GDP
SeriesR&DGovt%GDP Government Research and Development UNESCO Gross R&D expenditure by government
SeriesR&D%GDPWDI Science Technology, Infrastructure, Knowledge R&D Constructed from multiple WDI vol;CD incl 01, 02, 04,05,06,07; 2006-2008 Update from UIS Website R&D as % of GDP (in some earlier years was GNI)
SeriesGovtCalcHealthCen%GDP Economic Finance IMF GFS 2013 BATCH PULL Health spending, government, Central government, as % of GDP
SeriesGovtCalcHealthTot%GDP Economic Finance IMF GFS 2013 BATCH PULL Health spending, government, total, as % of GDP
SeriesGovtCalcEdCen%GDP Economic Finance IMF GFS 2013 BATCH PULL Education spending, government, Central government, as % of GDP
SeriesGovtCalcEdTot%GDP Economic Finance IMF GFS 2013 BATCH PULL Education spending, government, total, as % of GDP

Initializations

Defense

Initialize defense expenditures using SeriesGovtMil%GDPSIPRI. If null, then use SeriesGovtMil%GDP.

If null estimate using GDPPCP: TbName$ = "GDP/Capita (PPP) Versus Govt Exp Mil as % of GDP (" & CStr(BaseYear) & ") - linear"

To fill holes: "GDP/Capita (PPP) Versus Govt Exp Mil as % of GDP (" & CStr(BaseYear) & ") - linear"

This equation is using: GDP/Capita (PPP) Versus Govt Exp Mil as % of GDP (2000) - linear

Health

Initialize public health expenditures using SeriesGovtHl%GDP.

If null estimate using GDPPCP:  TbName$ = "GDP/Capita (PPP) Versus Govt Exp Hlth as % of GDP (" & CStr(BaseYear) & ") - log"

To fill holes: "GDP/Capita (PPP) Versus Govt Exp Hlth as % of GDP (" & CStr(BaseYear) & ") - log"

This equation is using: GDP/Capita (PPP) Versus Govt Exp Hlth as % of GDP (2000) - log

Initialize private health expenditures using SeriesHealthExpPriv%Tot. If no data, but there is data on total health expenditures (SeriesHealthExpTot%GDP) then set private as the difference between total and public.

If no data on total health expenditure then estimate private using:

                    'Estimate Private
                    Call AnalFunc("Private Health Expenditures % of GDP (2012)", _
                    Array(CGDPPCP(ICount%), CEDYRSAGE25T(ICount%)), cVal, _
                    Array("GDP2005PCPPP(MOSTRECENT)/ 1000 (Log)", "EdYearsAge25(MOSTRECENT) (Linear)"))

If no data on total expenditures, then it is the sum of private and public.

Education

Initialize public spending on education using SeriesGovtEdPub%GDP. If null then use:                

Call XYTABL("GDP/Capita (PPP) Versus Govt Exp Educ as % of GDP (2002) - log", _
                    Amin(40, CGDPPCP(ICount%)), GExpEd(ICount%))

To fill holes: "GDP/Capita (PPP) Versus Govt Exp Educ as % of GDP (2002) - log"

Bound as 1.5% as a minimum. Set Uzbekistan to 3%.

R & D

Initialize public R&D spending using SeriesR&DGovt%GDP (GExpRandD) and SeriesR&D%GDPWDI (ExpRandDTot).

If ExpRandDTot is null then estimate using:                 TbName$ = "GDP/Capita (PPP) Versus R&D Total  as % of GNI (" & CStr(BaseYear) & ") - linear"

This equation is using: GDP/Capita (PPP) Versus R&D Total  as % of GNI (2000) - linear

If GExpRandD is null then estimate using:                 TbName$ = "GDP/Capita (PPP) Versus Govt Exp R&D as % of GNP (" & CStr(BaseYear) & ") - linear"

This equation is using: GDP/Capita (PPP) Versus Govt Exp R&D as % of GNP (2000) - linear 

Initialize central government health expenditures (GExpHlCen) using SeriesGovtCalcHealthCen%GDP

Initialize total government health expenditures (GExpHlTot) using SeriesGovtCalcHealthTot%GDP

Initialize central government education expenditures (GExpEdCen) using SeriesGovtCalcEdCen%GDP

Initialize total government education expenditures (GExpEdTot) using SeriesGovtCalcEdTot%GDP

Infrastructure

        '-- Infrastructure Expenditure : Build up from components calculated in DataInfra: for historical and regular base--

        'switch to turn infrastructure finance on and off

Note: default setting of infrastructure finance is on (1) - changing this to off (0) in global parameters (IFs.mdb) means that infrastructure spending is initialized at zero. To fill holes: GExpInfraOther(ICount%) = 1.8162 + 0.061 * Log(CGDPPCP(ICount%))

Need to put in TablFunc If infrastructure finance is on (default) then sum up new construction and maintenance from all sub-types of infrastructure. Cap at 10% of GDP.

InfraOther

        'non-core or 'other' infrastructure as a % of GDP - using function estimated by DSR
        GExpInfraOther(ICount%) = 1.8162 + 0.061 * Log(CGDPPCP(ICount%))

Output

Read everything to GovConsumptionOutput

Cap Infra spending

Private Function CalcInfraPubSpendCap

'procedure for capping infrastructure fund demand as a % of GDP;
'uses inverted V suggested by BBH