代写ECON343 Advanced Macroeconomics代做Matlab编程

ECON343 Advanced Macroeconomics

Research Report Instructions

This report contributes to 30% of the final mark for this module. Please read this document and the research report template carefully before completing your report.

1 Instructions

Use the Matlab code provided to simulate a real business cycle model. Instructions on how to set up Matlab and run the code is provided below in section 2. Complete a research report of no more than 1,000 words. Your report should address the following three tasks:

1. Run the code to get the plot for the impulse response functions (IRFs). Interpret the economic intuitions of the plot.

2. Line 7 of the code rbc.mod declares 6 key parameters of the model after the com-mand parameters. The parameter names are separated by a space. Line 32 − 46 of the code define the 8 endogenous equations that characterise this RBC model.

(i) Use these hints to identify which parameter is the Frisch elasticity of labour supply in the code.

(ii) Change the value of this parameter to another reasonable value. Justify your choice of the parameter value. [Hint: You may with to consult the empirical literature to find the reasonable values of this parameter.]

(iii) Re-run the code to plot the IRFs under this different paramter value. Compare this plot with the plot you get from task 2 above, and explain the intuition of the difference.

3. The output of the code in the Command Window contains the THEORETICAL MOMENTS of the endogenous variables. Identify the standard deviation of the endogenous variables that you think are mostly affected by the value of the Frisch elasticity of labour supply. Compare those values produced by your exercises in Task 1 and 2 above with the business cycle evidence (such as in King and Rebelo (1999)). Given your finding in this and all above exercises, critically evaluate empirical relevance of the Real Business Cycle model.

A separate report template provides further guidance on completing the report.

2 How to Run the Code

The code needs to be run in Matlab. In addition, you will need to install Dynare in Matlab to run the code. Dynare is an extension package for Matlab. The package is widely used by academic researchers and central banks for solving and simulating a wide range of macroeconomic models.

2.1 Setting up Matlab and Dynare

1. Register a Mathworks account and associate your account with the University li-cense for Matlab. The instruction on how to do this is here.

2. Download Matlab here. You may need to sign in your Mathworks account to download the package. You can download any version ranging from R2018b to R2024b.

3. Install Matlab by following the instructions of the installer.

4. Download Dynare 6.3 here. Follow the instructions of the installer to install Dynare. For any questions related to installation, consult section 2.2 of the Dynare docu-mentation here.

5. Open Matlab. You need to add the ‘matlab’ subdirectory of your Dynare instal-lation to MATLAB path. You can do this by following the instructions in section 2.4.1 of the Dynare documentation here. There are two methods mentioned in the instructions. If you are following the first method by typing the command, the command window mentioned in the instructions is marked green in the figure be-low. Alternatively, if you are following the second method via the menu entries, the ‘Set Path’ button mentioned in the instructions is marked red in the figure below.

Now you have finished the set-up!

2.2 Running the Code

To run the code rbc.mod:

1. Open the code in Matlab by clicking Open in the top left corner (marked in red in the figure below).

2. Find the folder where you save the downloaded code. Make sure that you select All Files (marked in red in the figure below) so that you can see the code rbc.mod.

3. Choose the code file and click Open. You will be able to see the script. of the code in Editor (marked in green in the figure below).

4. Check that you ‘current folder’ is the folder where you save rbc.mod at. The way to check this is to check that the directory matches the directory of the code (marked in violet in the figure above), and that rbc.mod appears in the current folder on the left (marked in orange in the figure above).

5. If you current folder is incorrect, you can change this by clicking the small button with a downward green arrow to the left of the directory (marked in blue in the figure above)

6. Once everything is correct, type dynare rbc.mod in the command window. The running should be within seconds. You get some output in the command window and a plot of the IRFs for the 8 endogenous variables to a positive productivity shock as shown in the figure below. You can save this figure by clicking the classic blue save button on the top left of the plot window. Please make sure that you save into a format that can be inserted into your research report (e.g. .jpg, .png, etc.).

7. You can change the values of the key parameters of your choice in line 12-17 of the code. Then you can re-run the code by simply typing dynare rbc.mod again in the command window. The new set of output corresponds to the new set of parameter values.

3 Additional Information on the Model

In this model, we assume that the production function is in Cobb-Douglas form.

Meanwhile, the households’ utility function is in the following form.

4 How to Submit

The report must be submitted online through Canvas. The submission link for this is available on Canvas. The deadline for submitting research report is 14:00 on Wednes-day 7th May. If you have any issues of submitting it on Canvas, please email your report to me ([email protected]) before the deadline.

5 Further Information Regarding Dynare Codes

The code is illustrated with comments (initiated by double backward-slashes //) to help you understand what each line of code is roughly doing. For more information on the structure and specific commands of Dynare codes, you can consult here. Note that this is not necessary for completing this research report.





热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图