kenjisato.jp
https://www.kenjisato.jp/en/
Recent content on kenjisato.jpHugo -- gohugo.ioen-usWed, 06 Sep 2023 00:00:00 +0000juicedown v0.1.1
https://www.kenjisato.jp/en/post/2023/09/juicedown-v0-1-1/
Wed, 06 Sep 2023 00:00:00 +0000https://www.kenjisato.jp/en/post/2023/09/juicedown-v0-1-1/juicedown juicedown v0.1.1 is now available on CRAN ðŸŽ‰
install.packages("juicedown") What Does It Do? It is a small package that combines two basic tasks into one:
Write documents in R Markdown and convert them to HTML (R Markdown v1). Convert HTML with inlined CSS (juice). Motivation There has been a cost-saving trend in my university and they recommend instructors against printing teaching material. Also, students also bring their own PCs to the university.Generate bordered tables with exams::exams2mooodle
https://www.kenjisato.jp/en/post/2020/07/moodle-bordered-table/
Fri, 24 Jul 2020 00:00:00 +0000https://www.kenjisato.jp/en/post/2020/07/moodle-bordered-table/Motivation By default, tables in moodle problems created with exams::exams2moodle do not have table or cell borders. I want tables with borders!
If you does too, you might find this post useful.
Stylesheet Create a style for a class you will use for tables. Note that this is not a CSS file but a HTML code snippet that you want to include in markdown files.
Instead of styling a class, it’s possible to style table tag itself.Cross Referenceable Equation with Preview in RMarkdown
https://www.kenjisato.jp/en/post/2017/02/cross-referenceable-equation-with-preview-in-rmarkdown/
Sun, 12 Feb 2017 00:00:00 +0000https://www.kenjisato.jp/en/post/2017/02/cross-referenceable-equation-with-preview-in-rmarkdown/Cross-referenceable math equation in RMarkdown You can cross-reference equations in Rmarkdown if you set output to bookdown::pdf_document2 and write equations within \begin{align} ~ \end{align} or \begin{equation} ~ \end{equation}
To make a tag, put (\#eq:label_name) inside a math environment. The equation can be cross-referenced by \ï¼ ref(eq:label_name). See this stackoverflow answer by Yihui Xie and the related section of his bookdown book for more detail.
\begin{equation*} ~ \end{equation*} also produces an equation without number.Computation of the Optimal Policy for the Optimal Growth (Euler Equation)
https://www.kenjisato.jp/en/post/2017/01/computation-of-the-optimal-policy-for-the-optimal-growth-euler-equation/
Sun, 15 Jan 2017 00:00:00 +0000https://www.kenjisato.jp/en/post/2017/01/computation-of-the-optimal-policy-for-the-optimal-growth-euler-equation/(Mainly for students attending my class.)
As supplementary matrials on our way to understanding the optimal growth model, I put an R code and related documents on my github repository: kenjisato/intro-macro:
/r/optimal_growth_euler.R /doc/r/optimal_growth_euler.Rmd Compiled PDF I do this mainly for a pedagogical reason. As a matter of fact, the above mentioned script isn’t practical; it does work if the initial condition is close to the steady state and the initial guesses of optimal consumption are sufficiently accurate but otherwise doesn’t (it’d take very loong time).Economic Dynamics (2017)
https://www.kenjisato.jp/en/teaching/ed/2017/
Mon, 01 Jan 0001 00:00:00 +0000https://www.kenjisato.jp/en/teaching/ed/2017/2017Q1 Economic Dynamics (Kobe Univ.) Lecture Slides Mostly in Japanese.
Day Title Memo Day 01 Course Overview (mostly in Japanese) Day 02 Slides Notes on the Ramsey model Day 03 Slides RStudio Shortcuts Day 04 Slides Quiz Day 05 Slides Day 06 Slides Day 07 Slides Day 08 Slides Quiz Day 09 Slides Day 10 Slides Quiz Day 11 Slides Day 12 Slides Example Lecture Notes http://led.kenjisato.jp (work in progress, in Japanese)Graduate Macroeconomics
https://www.kenjisato.jp/en/teaching/ma/grad/
Mon, 01 Jan 0001 00:00:00 +0000https://www.kenjisato.jp/en/teaching/ma/grad/ Real Business Cycle Model Python code for Romer Â§5.6
This Colab notebook presents Python code to run the simulation in Â§5.6 of Romer 5e. It basically translates Romerâ€™s verbal explanations of the method of undetermined coefficients into Python. For actual day-to-day research, you may prefer to use Benjamin Jenkinsâ€™ linearmodels package or Dynare, but writing code yourself for once will be very helpful to absorb the algorithm. Ramsey Model Macroeconomics (2016Q2)
https://www.kenjisato.jp/en/teaching/ma/2016q2/
Mon, 01 Jan 0001 00:00:00 +0000https://www.kenjisato.jp/en/teaching/ma/2016q2/2016 Q2 Macroeconomics (GMAP, GSE, Kobe University) Syllabus 16MA2A: Syllabus Lecture Notes, Problem Sets [16MA2B: Problem Set + Homework] [16MA2B-Sol: Solution to [16MA2B]] [16MA2C: Problem Set] [16MA2D: Units of measurement in continuous- and discrete-time models] [16MA2E: Summary of the Solow model] [16MA2F: Homework assignment 2] [16MA2G-Sol: Solution to Quiz] [16MA2H: Exercise (Hamiltonian)] [16MA2I: Discrete-time Ramsey model] Jupyter Notebooks Launch Binder When you can’t reach the app, the binder service might be busy.Macroeconomics (2016Q4)
https://www.kenjisato.jp/en/teaching/ma/2016q4/
Mon, 01 Jan 0001 00:00:00 +0000https://www.kenjisato.jp/en/teaching/ma/2016q4/2016 Q4 Macroeconomics (Kobe Univ.) Syllabus 16MA4A: Syllabus Lecture Notes, Problem Sets 16MA4B: Problem Set 16MA4a: Simulation of the Solow model R Notebook 16MA4b: Convergence R Notebook 16MA4-Mid: Take-home exam Due on 13 January, 2017 Presentation Files Day 01 Day 05 Source Day 06 Source Day 07 Day 08 Source Day 09 Source Day 10 Day 11 Day 12 Day 13 Day 14 Supplementary Materials Computation of Optimal Growth based on Euler Equation PDF or HTML Computation of Optimal Growth based on Dynamic Programming PDF or HTML RStudio To run Rmd files above and to compile (knit) them to pdf or other document format, install RStudio > 1.Macroeconomics (2017Q2)
https://www.kenjisato.jp/en/teaching/ma/2017q2/
Mon, 01 Jan 0001 00:00:00 +0000https://www.kenjisato.jp/en/teaching/ma/2017q2/2017 Q2 Macroeconomics (Kobe Univ.) Course materials Day 01 Slides Syllabus : A Problem Set : B Homework : hw01 Day 02 Slides Problem Set : C Homework : hw02 Exercise : ex01 Day 03 Slides Problem Set : D Exercise : ex02 Day 04 Slides Problem Set : E Exercise : ex03 Day 05 Slides Problem Set : F Homework : hw03 Day 06 Slides Problem Set : G Midterm : Due on 2017/07/14 18:00 Day 07 Slides Problem Set : H Day 08 Slides Problem Set : I Day 09 Slides Problem Set : J Day 10 Slides Problem Set : K Day 11 Slides Problem Set : L Day 12 Slides Problem Set : M Day 13 Slides Problem Set : N Problem Set : O Assignments and exercises See https://github.Macroeconomics (2017Q4)
https://www.kenjisato.jp/en/teaching/ma/2017q4/
Mon, 01 Jan 0001 00:00:00 +0000https://www.kenjisato.jp/en/teaching/ma/2017q4/2017 Q4 Macroeconomics (Kobe Univ.) Course materials Day 01 Slides Syllabus : A Problem Set : B Homework : hw01, Due on 7 Dec.Â Day 02 Slides Problem Set : C Homework : hw02, Due on 11 Dec. Day 03 Slides Problem Set : D Homework : hw03, Due on 14 Dec. Day 04 Slides Problem Set : E Homework : hw04, Due on 18 Dec. Day 05 Slides Problem Set : F Day 06 Slides Problem Set : G Day 07 Slides Problem Set : H Day 08 Slides Problem Set : I Day 09 Slides Problem Set : J Day 10 Slides Problem Set : K Day 11 Slides Problem Set : L Day 12 Slides Problem Set : M Day 13 Slides Problem Set : N Day 14 Problem Set : O Assignments and exercises See https://github.Macroeconomics (2018Q1)
https://www.kenjisato.jp/en/teaching/ma/2018q1/
Mon, 01 Jan 0001 00:00:00 +0000https://www.kenjisato.jp/en/teaching/ma/2018q1/2018 Q1 Macroeconomics (Kobe Univ.) Course material Date Slides Handouts April 6 Day 01 A, B April 10 Day 02 C April 13 Day 03 D April 17 Day 04 E April 20 Day 05 F April 24 Day 06 G, H April 27 Day 07 I May 1 Day 08 (Midterm Exam) May 8 Day 09 J May 11 Day 10 K May 18 Day 11 L May 22 Day 12 M May 25 Day 13 N May 29 Day 14 O June 5 Day 15 (Final Exam) The slides and handouts for 2017Q4 are available [here](https://www.Macroeconomics (2018Q3)
https://www.kenjisato.jp/en/teaching/ma/2018q3/
Mon, 01 Jan 0001 00:00:00 +0000https://www.kenjisato.jp/en/teaching/ma/2018q3/2018 Q3 Macroeconomics (Kobe Univ.) Course material Date Slides Handouts October 2 Day 01 A, B October 5 Day 02 C October 9 Day 03 D October 12 Day 04 E October 16 Day 05 October 19 Day 06 F October 23 Day 07 October 26 Day 08 (Midterm Exam) October 30 Day 09 November 2 Day 10 G November 6 Day 11 H November 9 Day 12 I November 13 Day 13 November 16 Day 14 J November 27 Day 15 (Final Exam) The slides and handouts for 2017Q4 are available [here](https://www.