H Brown Lecture 3 Assignment With R Code

Embed Size (px)

Citation preview

  • 8/11/2019 H Brown Lecture 3 Assignment With R Code

    1/4

    Hayley Brown

    Applied Spatial Econometrics Lecture 3 Assignment

    Fall 2014 Due: 03 Oct 2014 @ 11:59PM

    Uif gjmf DFPTBM3/Sebub dp!ubj

    !t ebub p

    !288 dijfg fyfdvujwf pggjdfst b

    !e db

    !cf vtfe up fybnj

    !fuif fggfdut pg gjsn qfsgpsnb!df p!DFP tbmbsz/

    b/ Ftujnbuf b npefm sfmbuj!h b!!vbm tbmbsz up gjsn tbmft b!e nbslfu wbmvf/ Nblf uifnpefm pg uif dp!tub!u fmbtujdjuz wbsjfuz gps cpui j!efqf!ef!u wbsjbcmft/ "sjuf uifsftvmut pvu j!frvbujp!gpsn/

    A model of the constant elasticity variety is linear in elasticities. Elasticities are percentage

    changes. So a constant elasticity model would be:

    log(salary) = !0 + !1log(sales) + !2log(mktval) + u.

    In this case, the constant elasticity equation is:!"#!!"#"$%!= 4.62 + 0.162log(sales) + 0.107log(mktval)n = 177

    R2= 0.299

    c/ Bee qspgjut up uif npefm gspn qbsu b/ "iz db!uijt wbsjbcmf !pu cf j!dmvefe j!mphbsjuinjd gpsn@ "pvme zpv tbz uibu uif qfsgpsnb!df wbsjbcmft pg uiftf gjsnt fyqmbj!nptu pg uif wbsjbujp!j!DFP tbmbsjft@

    This variable cannot be included in logarithmic form because nine of the companies in the

    sample have negative profit values. It is impossible to take the log of a negative value, as it is

    undefined. The new model is as follows:

    !"#!!"#"$%!= 4.69 + 0.161log(sales) + 0.098log(mktval) + 0.000036(profits)

    n=177

    R2= 0.299

    Given the value of R2, I surmise that together these variables account for nearly 30% of the

    sample variation in log(salary). This is certainly not most of the variation. Moreover,

    profits seem to add very little to the model, suggesting that profits exert negligible influence

    over log(salary).

    d/

    Bee uif wbsjbcmf dfpuf!

    up uif npefm j!qbsu c/

    "ibu jt uif ftujnbufe qfsdf

    !ubhfj!dsfbtf j!tbmbsz gps b!puifs zfbs pg DFP uf!vsf- ipmej!h puifs gbdupst gjyfe@

    !"#!!"#"$%!= 4.56 + 0.162log(sales) + 0.102(mktval) + 0.000029(profits) + 0.012(ceoten)

    n = 177

    R2= 0.318

  • 8/11/2019 H Brown Lecture 3 Assignment With R Code

    2/4

    The implication is that when CEO tenure increases by one year, salary increases by 1.2%.

    e/ Gj!e uif tbnqmf dpssfmbujp!dpfggjdjf!u cfuxff!uif wbsjbcmft mph)nluwbm* b!e qspgjut/Bsf uiftf wbsjbcmft ijhimz dpssfmbufe@ "ibu epft uijt tbz bcpvu uif PMT ftujnbupst@

    The sample correlation coefficient is 0.78. This suggests that log(mktval) and profits are

    highly correlated. Give this close correlation, it is difficult to estimate the independent effectof each on log(salary). This does not indicate bias in the OLS estimators, though it may cause

    their variances to be large. It is worth noting that profit is a short-term measure, while mktval

    is based on past and current profitability; however, mktval also incorporates future

    expectations of profitability, which may or may not come to fruition and should scrutinized in

    their own right.

    Code

    !""""""""""#""""""""""!

    ! %' '#(#

    ) *'+,-./01/-234*#56#-7&8490:(/-/8;&&*

  • 8/11/2019 H Brown Lecture 3 Assignment With R Code

    3/4

    V&0556860:(/W

    C/(69#(0 B('D C11&1 ( O#*40 a1+)b(bF

    +c:(0180A(F @D]_< >D

  • 8/11/2019 H Brown Lecture 3 Assignment With R Code

    4/4

    !""""""""""8""""""""""!

    ! E0:#90 (;6:G/ (& 9#H0 (;09 9&10 #880//63*0

    ) 80&(0: IJ 80&/#*> ZD\>Z0J>? ??D_\] I ?\0J>? ]DZ>Z0J>< ?D]?@ >D?>\Z

    A1&56(/ `0J>` ?D`>Z0J>@ >D?_Z >D\@^>

    80&(0: ?D?]\0J>< `DZ@Z D>Z>? "

    JJJB6G:65D 8&'0/W > d"""d >D>>? d""d >D>? d"d >D>` dDd >D? d d ?

    E0/6'4#* /(#:'#1' 011&1W >D`>]< &: ?^< '0G100/ &5 5100'&9

    X4*(6A*0 EJ/U4#10'W >DZ?\ZR 2'e4/(0' EJ/U4#10'W >DZ>\ &: @ #:' ?^< 7=R AJO#*40W ?DZ\^0J?Z

    !""""""""""'""""""""""!

    ! =6:' (;0 /#9A*0 8&110*#(6&: 8&0556860:( 30(L00: (;0 O#16#3*0/ *&G+9H(O#*F #:'

    A1&56(/) 8&1+*9H(O#*R A1&56(/F

    f?g >D^^]\_^]