• No results found

Market Access and Regional Wage Structure : Estimating the Helpman-Hanson Model for Sweden

N/A
N/A
Protected

Academic year: 2021

Share "Market Access and Regional Wage Structure : Estimating the Helpman-Hanson Model for Sweden"

Copied!
30
0
0

Loading.... (view fulltext now)

Full text

(1)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

Market Access and Regional

Wage Structure

E s t i m a t i n g t h e H e l p m a n - H a n s o n M o d e l f o r S w e d e n

Master thesis in Economics

Author:

Lars Lundström, 880210-2411

Tutors:

Prof. Börje Johansson

Ph.D. Lina Bjerke

(2)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

(3)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

Table of Contents

1

Introduction ... 1

2

Theoretical and empirical concern about the

Helpman-Hanson model ... 2

3

Data and Econometric Issues ... 4

4

Empirical Analysis ... 9

4.1

Harris Model ... 9

4.2

Helpman-Hanson Model ... 11

5

Conclusion ... 15

6

References ... 18

Appendix A ... 20

Derivation of the estimation equation ... 20

Appendix B ... 24

(4)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

1

(5)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

2

2

Theoretical and empirical concern about the

Helpman-Hanson model

(6)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

(7)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

4

[∑

]

.

(8)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

5

(9)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

6

Figure 1

Income per km

2

Figure 2

Housing per km

2

Figure 3

Wage levels

(10)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

(11)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

(12)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

9

4

Empirical Analysis

4.1 Harris Model

[∑

]

[∑

]

(13)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

10

(14)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

11

4.2 Helpman-Hanson Model

[∑

]

(15)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

12

(16)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

13

(17)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

14

̂

[∑

]

(18)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

15

(19)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

(20)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

(21)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

18

(22)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

(23)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

20

Appendix A

Derivation of the estimation equation

[∑

]

(24)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

21

[∑

]

(25)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

22

(

)

[(

)

] [

(

)]

[∑

]

[∑

]

̅

(26)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

23

̅ (

)

[∑

]

[∑

]

(27)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

24

Appendix B

Estimation Code

// Include header files and import the maximization package #include <oxstd.h>

#include <oxfloat.h> #import <maximize>

// Declare a few variables

static decl s_vY, s_mX, s_iEval = 0, vEps;

// The initialize function initializes variable-matrices based on an excel table and also sets // the initial starting values for the parameters

Initialize(const mDat, const avY, const amX, const avP) {

// In this case you would want to have the wage data in the first column (column [0]) // and the other variables in the next three columns

avY[0] = mDat[][0]; amX[0] = mDat[][0:3];

// Set initial starting values for the parameters based on previous research avP[0] = < 0 ; 5 ; 0.9 ; 0.1 >;

// Print a message stating the initial parameter values

println("\rThe starting values for the parameters are: \r", "%r", {"beta", "sigma", "delta", “tao”}, avP[0]);

}

// The AvgLnLikRegr function is essentially the core equation that is run multiple times // in order to optimize the parameter values

AvgLnLiklRegr(const vP, const adLnPdf, const avScore, const amHess) {

// Declare the variables used and store each of the parameters into separate // variable names

(28)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

25

beta = vP[0]; sigma = vP[1]; delta = vP[2]; tao = vP[3];

// Initialize the variables dC = 0; dKLoop = 0; iN = 290; vw = s_vY; vY = s_mX[][1]; vW = s_mX[][0]; vH = s_mX[][2]; vD = s_mX[][3]; vEps = constant(.NaN,iN,1);

// The outer loop that runs through all the iN regions and stores the difference // between the calculated wage and the actual wage for the region in the vector // vEps

for(j = 0; j<iN; j++) {

dKLoop = 0;

// The inner loop that aggregates all the regions weighted by distance // for each of the regions in the outer loop. This is the summation in // the original equation.

for(k = 0; k < iN; k++) {

dKLoop = dKLoop + (vY[k].^(sigma+(1-sigma)/delta) .* vW[k].^(sigma-1)/delta) .* vH[k].^((1-delta).*(sigma-vW[k].^(sigma-1)/delta) .* exp(vD[dC] .*(tao.*(1-sigma)) );

dC = dC + 1; }

// Stores the difference between the actual and the calculated value vEps[j] = log(vw[j]) - (beta + (1/sigma)*log(dKLoop));

(29)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

26

// Store the negative of the squared sum of the error terms in the adLnPdf variable. // The reason for using the negative value is of course that we want to maximize // the result later.

adLnPdf[0] = -vEps'*vEps;

// Increment the number of times we have run the estimation and store it in a variable s_iEval = s_iEval + 1;

// If the SSE is a number and is not missing we return it if(adLnPdf[0] != .NaN) {

return !ismissing(adLnPdf[0]); }

}

// The Estimate function maximizes the returned value from the AvgLnLikRegr function by // changing the parameter values using the MaxBFGS function.

Estimate(const avP, const adLnPdf) {

decl ir;

// set the maximum number of estimations to 10000 MaxControl(10000, -1);

ir = MaxBFGS(AvgLnLiklRegr, avP, adLnPdf, 0, 1); return ir;

}

// Output the number of estimations, the convergence, the optimal parameter values together // with their standard errors, the epsilon vector and a Hess matrix.

Output(const ir, const vP, const dLnPdf) {

decl mHess, mS2, dSigma, dStdError;

println("\rThe number of calls of the log likelihood function = ", s_iEval); println("MaxBFGS returns '", ir, "' meaning '", MaxConvergenceMsg(ir),"'."); Num2Derivative(AvgLnLiklRegr, vP, &mHess);

mS2 = invert(mHess*mHess')/(rows(vEps)); dSigma = (1/rows(vEps))*vEps'*vEps; mS2 = dSigma*mS2;

(30)

J

Ö N K Ö P I N G

I

N T E R N A T I O N A L

B

U S I N E S S

S

C H O O L

JÖNKÖPING UNIVERSITY

27

dStdError = sqrt(diagonal(mS2));

println("\rOptimal parameter values are: \r", "%r", {"beta", "sigma", "delta"}, "%c", {"Estimates", "Std Error"}, vP~dStdError');

println("The epsilon vector equals in this case: \r", vEps); println(mHess);

}

// The main function that, at execution of the program, loads the excel table and then // initializes the entire estimation procedure.

main() {

decl mDat, vP, ir, dLnPdf, avScore; mDat = loadmat("PATH to the excel-file"); Initialize(mDat, &s_vY, &s_mX, &vP); ir = Estimate(&vP, &dLnPdf);

Output(ir,vP,dLnPdf); }

References

Related documents

46 Konkreta exempel skulle kunna vara främjandeinsatser för affärsänglar/affärsängelnätverk, skapa arenor där aktörer från utbuds- och efterfrågesidan kan mötas eller

Both Brazil and Sweden have made bilateral cooperation in areas of technology and innovation a top priority. It has been formalized in a series of agreements and made explicit

The increasing availability of data and attention to services has increased the understanding of the contribution of services to innovation and productivity in

Generella styrmedel kan ha varit mindre verksamma än man har trott De generella styrmedlen, till skillnad från de specifika styrmedlen, har kommit att användas i större

Parallellmarknader innebär dock inte en drivkraft för en grön omställning Ökad andel direktförsäljning räddar många lokala producenter och kan tyckas utgöra en drivkraft

Närmare 90 procent av de statliga medlen (intäkter och utgifter) för näringslivets klimatomställning går till generella styrmedel, det vill säga styrmedel som påverkar

I dag uppgår denna del av befolkningen till knappt 4 200 personer och år 2030 beräknas det finnas drygt 4 800 personer i Gällivare kommun som är 65 år eller äldre i

Industrial Emissions Directive, supplemented by horizontal legislation (e.g., Framework Directives on Waste and Water, Emissions Trading System, etc) and guidance on operating