From df51e063577fcd63a92c648add3d754c2e41a9d0 Mon Sep 17 00:00:00 2001 From: Pascal Michaillat <85443660+pmichaillat@users.noreply.github.com> Date: Thu, 11 Jul 2024 11:34:40 -0700 Subject: [PATCH] Add table and LaTeX examples in webpages --- content/courses/course1/index.md | 12 --- content/data/data1.md | 51 ++++++---- public/courses/course1/index.html | 67 +------------ public/data/data1/index.html | 157 ++++++++++++++++++++++++------ 4 files changed, 162 insertions(+), 125 deletions(-) diff --git a/content/courses/course1/index.md b/content/courses/course1/index.md index 4f76749ed..f3c929db8 100644 --- a/content/courses/course1/index.md +++ b/content/courses/course1/index.md @@ -100,15 +100,3 @@ This section concludes by comparing Portuguese and Spanish irregular verbs to ir Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. - -## Additional references on unrelated topics - -| Title | Author | Year | Link | -| :----- | :------: | :----: | :----: | -| Do Matching Frictions Explain Unemployment? Not in Bad Times | P. Michaillat | 2012 | [pascalmichaillat.org/1.pdf](https://pascalmichaillat.org/1.pdf) | -| A Theory of Countercyclical Government Multiplier | P. Michaillat | 2014 | [pascalmichaillat.org/2.pdf](https://pascalmichaillat.org/2.pdf) | -| A Macroeconomic Approach to Optimal Unemployment Insurance: Theory| C. Landais et al. | 2018 | [pascalmichaillat.org/4.pdf](https://pascalmichaillat.org/4.pdf) | -| A Macroeconomic Approach to Optimal Unemployment Insurance: Applications | C. Landais et al. | 2018 | [pascalmichaillat.org/5.pdf](https://pascalmichaillat.org/5.pdf) | -| Persistence of False Paradigms in Low-Power Sciences | G. Akerlof & P. Michaillat | 2018 | [pascalmichaillat.org/10.pdf](https://pascalmichaillat.org/10.pdf) | -| Resolving New Keynesian Anomalies with Wealth in the Utility Function | P. Michaillat & E. Saez | 2021 | [pascalmichaillat.org/11.pdf](https://pascalmichaillat.org/11.pdf) | -| Modeling Job Stealing | P. Michaillat | 2023 | [pascalmichaillat.org/14.pdf](https://pascalmichaillat.org/14.pdf) | diff --git a/content/data/data1.md b/content/data/data1.md index aed70a106..efdbda06a 100644 --- a/content/data/data1.md +++ b/content/data/data1.md @@ -20,14 +20,12 @@ This dataset contains all irregular verbs in [all known Romance languages](http: --- -## View +## View datasets -+ Irregular verbs in Portugese: [dataset](https://github.com/pmichaillat/u-star) -+ Irregular verbs in Italian: [dataset](https://github.com/pmichaillat/unemployment-gap) -+ Irregular verbs in French: [dataset](https://github.com/pmichaillat/job-rationing) -+ Irregular verbs in Spanish: [dataset](https://github.com/pmichaillat/countercyclical-multiplier) -+ Construction of the Portugese and Italian datasets: [paper](https://pascalmichaillat.org/1.pdf) and [online appendix](https://pascalmichaillat.org/1a.pdf) -+ Construction of the Spanish and French datasets: [paper](https://pascalmichaillat.org/2.pdf) ++ [Irregular verbs in Portugese](https://github.com/pmichaillat/u-star) ++ [Irregular verbs in Italian](https://github.com/pmichaillat/unemployment-gap) ++ [Irregular verbs in French](https://github.com/pmichaillat/job-rationing) ++ [Irregular verbs in Spanish](https://github.com/pmichaillat/countercyclical-multiplier) --- @@ -44,14 +42,15 @@ proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ## Description of variables -+ Lorem ipsum dolor sit amet -+ Consectetur adipisicing elit -+ Sed do eiusmod -+ Tempor incididunt ut labore et dolore magna aliqua -+ Ut enim ad minim veniam -+ Quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo -consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse -cillum dolore eu fugiat nulla pariatur. +| Symbol | Range | Variable | Note | +| -------- | --------- | --------- | -------------------------------------------------- | +| $\alpha$ | 1930–1954 | Tempor | Lorem ipsum dolor sit amet | +| $\beta$ | 1930–1954 | Fugiat | Consectetur adipisicing elit | +| $\gamma$ | 1833–1954 | Duis | Sed do eiusmod | +| $\zeta$ | 1930–1994 | Excepteur | Tempor incididunt ut labore et dolore magna aliqua | +| $\nu$ | 1990–2023 | Lorem | Ut enim ad minim veniam | +| $\chi$ | 1990–2023 | Labore | Quis laboris nisi ut aliquip ex ea commodo | +| $\Omega$ | 1890–1900 | Pariatur | Excepteur sint $\beta > \alpha$ | --- @@ -83,7 +82,7 @@ file_path = 'data.csv' with open(file_path, 'r') as file: ``` -#### Read data: +### Read data: Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. @@ -92,7 +91,7 @@ cillum dolore eu fugiat nulla pariatur. lines = file.readlines() ``` -#### Parse and process data: +### Parse and process data: Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. @@ -105,7 +104,7 @@ for line in lines: data.extend(line_data) # Extend the main list with values from the line ``` -##### Compute summary statistics using NumPy: +#### Compute summary statistics using NumPy: Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. @@ -118,7 +117,7 @@ min_value = np.min(data_array) max_value = np.max(data_array) ``` -##### Display summary statistics: +#### Display summary statistics: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, @@ -131,4 +130,16 @@ print(f"Median: {median}") print(f"Standard Deviation: {std_dev}") print(f"Minimum Value: {min_value}") print(f"Maximum Value: {max_value}") -``` \ No newline at end of file +``` + +### Additional references on unrelated topics + +| Title | Author | Year | Link | +| :----- | :------: | :----: | :----: | +| Do Matching Frictions Explain Unemployment? Not in Bad Times | P. Michaillat | 2012 | [pascalmichaillat.org/1.pdf](https://pascalmichaillat.org/1.pdf) | +| A Theory of Countercyclical Government Multiplier | P. Michaillat | 2014 | [pascalmichaillat.org/2.pdf](https://pascalmichaillat.org/2.pdf) | +| A Macroeconomic Approach to Optimal Unemployment Insurance: Theory| C. Landais et al. | 2018 | [pascalmichaillat.org/4.pdf](https://pascalmichaillat.org/4.pdf) | +| A Macroeconomic Approach to Optimal Unemployment Insurance: Applications | C. Landais et al. | 2018 | [pascalmichaillat.org/5.pdf](https://pascalmichaillat.org/5.pdf) | +| Persistence of False Paradigms in Low-Power Sciences | G. Akerlof & P. Michaillat | 2018 | [pascalmichaillat.org/10.pdf](https://pascalmichaillat.org/10.pdf) | +| Resolving New Keynesian Anomalies with Wealth in the Utility Function | P. Michaillat & E. Saez | 2021 | [pascalmichaillat.org/11.pdf](https://pascalmichaillat.org/11.pdf) | +| Modeling Job Stealing | P. Michaillat | 2023 | [pascalmichaillat.org/14.pdf](https://pascalmichaillat.org/14.pdf) | \ No newline at end of file diff --git a/public/courses/course1/index.html b/public/courses/course1/index.html index 653192b7a..51249deb9 100644 --- a/public/courses/course1/index.html +++ b/public/courses/course1/index.html @@ -70,8 +70,8 @@ "keywords": [ "Romance languages", "philology", "irregular verbs", "Spanish", "Portuguese" ], - "articleBody": "Introduction This course covers research topics related to Romance philology. It focuses especially on Portugese and Spanish irregular verbs. It tries to answer several questions:\nWhy are there irregular verbs? How are Portuguese irregular verbs different from Spanish irregular verbs? What is the role of Latin and Greek in these irregularities? What about irregular verbs in other Romance languages? Part 1: Review of Romance languages This section reviews Romance languages. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\nLecture videos Lecture video 1 Lecture video 2 Lecture video 3 Lecture notes Lecture note 1 Readings Paper 1 – This paper finds things. Paper 2 – This paper reviews things. Paper 3 – This paper reviews more things and derives some results. Part 2: Portugese irregular verbs This section introduces Portugese irregular verbs. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\nLecture videos Lecture video 4 Lecture video 5 Lecture video 6 Lecture notes Lecture note 2 Readings Paper 4 – This paper shows things. (Details about the results are presented in the paper’s online appendix .) Paper 5 – This paper shows other things. (The paper’s online appendix explains the construction of the data.) Part 3: Spanish irregular verbs This section quickly discusses irregular verbs in Spanish. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\nLecture videos Lecture video 7 Lecture video 8 Lecture video 9 Lecture video 10 Lecture video 11 Optional lecture video: extensions of the results Optional readings Paper 6 – This paper finds complicated patterns in the data. Paper 7 – This paper reviews data on verbs. Paper 8 – This paper characterizes more things and derives some results. Conclusion This section concludes by comparing Portuguese and Spanish irregular verbs to irregular verbs in other Romance languages.\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst. Quisque non felis. Nullam vulputate libero quis ligula. Fusce scelerisque suscipit sapien. Suspendisse commodo ullamcorper magna. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\nAdditional references on unrelated topics Title Author Year Link Do Matching Frictions Explain Unemployment? Not in Bad Times P. Michaillat 2012 pascalmichaillat.org/1.pdf A Theory of Countercyclical Government Multiplier P. Michaillat 2014 pascalmichaillat.org/2.pdf A Macroeconomic Approach to Optimal Unemployment Insurance: Theory C. Landais et al. 2018 pascalmichaillat.org/4.pdf A Macroeconomic Approach to Optimal Unemployment Insurance: Applications C. Landais et al. 2018 pascalmichaillat.org/5.pdf Persistence of False Paradigms in Low-Power Sciences G. Akerlof \u0026 P. Michaillat 2018 pascalmichaillat.org/10.pdf Resolving New Keynesian Anomalies with Wealth in the Utility Function P. Michaillat \u0026 E. Saez 2021 pascalmichaillat.org/11.pdf Modeling Job Stealing P. Michaillat 2023 pascalmichaillat.org/14.pdf ", - "wordCount" : "636", + "articleBody": "Introduction This course covers research topics related to Romance philology. It focuses especially on Portugese and Spanish irregular verbs. It tries to answer several questions:\nWhy are there irregular verbs? How are Portuguese irregular verbs different from Spanish irregular verbs? What is the role of Latin and Greek in these irregularities? What about irregular verbs in other Romance languages? Part 1: Review of Romance languages This section reviews Romance languages. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\nLecture videos Lecture video 1 Lecture video 2 Lecture video 3 Lecture notes Lecture note 1 Readings Paper 1 – This paper finds things. Paper 2 – This paper reviews things. Paper 3 – This paper reviews more things and derives some results. Part 2: Portugese irregular verbs This section introduces Portugese irregular verbs. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\nLecture videos Lecture video 4 Lecture video 5 Lecture video 6 Lecture notes Lecture note 2 Readings Paper 4 – This paper shows things. (Details about the results are presented in the paper’s online appendix .) Paper 5 – This paper shows other things. (The paper’s online appendix explains the construction of the data.) Part 3: Spanish irregular verbs This section quickly discusses irregular verbs in Spanish. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\nLecture videos Lecture video 7 Lecture video 8 Lecture video 9 Lecture video 10 Lecture video 11 Optional lecture video: extensions of the results Optional readings Paper 6 – This paper finds complicated patterns in the data. Paper 7 – This paper reviews data on verbs. Paper 8 – This paper characterizes more things and derives some results. Conclusion This section concludes by comparing Portuguese and Spanish irregular verbs to irregular verbs in other Romance languages.\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst. Quisque non felis. Nullam vulputate libero quis ligula. Fusce scelerisque suscipit sapien. Suspendisse commodo ullamcorper magna. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n", + "wordCount" : "538", "inLanguage": "en", "image":"https://pascalmichaillat.org/hugo-website/course1.png","datePublished": "2003-03-10T00:00:00Z", "dateModified": "2024-05-08T00:00:00Z", @@ -196,7 +196,6 @@
Title | -Author | -Year | -Link | -
---|---|---|---|
Do Matching Frictions Explain Unemployment? Not in Bad Times | -P. Michaillat | -2012 | -pascalmichaillat.org/1.pdf - | -
A Theory of Countercyclical Government Multiplier | -P. Michaillat | -2014 | -pascalmichaillat.org/2.pdf - | -
A Macroeconomic Approach to Optimal Unemployment Insurance: Theory | -C. Landais et al. | -2018 | -pascalmichaillat.org/4.pdf - | -
A Macroeconomic Approach to Optimal Unemployment Insurance: Applications | -C. Landais et al. | -2018 | -pascalmichaillat.org/5.pdf - | -
Persistence of False Paradigms in Low-Power Sciences | -G. Akerlof & P. Michaillat | -2018 | -pascalmichaillat.org/10.pdf - | -
Resolving New Keynesian Anomalies with Wealth in the Utility Function | -P. Michaillat & E. Saez | -2021 | -pascalmichaillat.org/11.pdf - | -
Modeling Job Stealing | -P. Michaillat | -2023 | -pascalmichaillat.org/14.pdf - | -
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
lines = file.readlines()
-
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
data = []
@@ -284,7 +323,7 @@ Start Python:
line_data = line.strip().split(',') # Split the line into a list of values
line_data = [float(value) for value in line_data] # Convert values to floats
data.extend(line_data) # Extend the main list with values from the line
-
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
data_array = np.array(data) # Convert the list to a NumPy array
mean = np.mean(data_array)
@@ -292,7 +331,7 @@ Start Python:
std_dev = np.std(data_array)
min_value = np.min(data_array)
max_value = np.max(data_array)
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo @@ -302,7 +341,69 @@
Title | +Author | +Year | +Link | +
---|---|---|---|
Do Matching Frictions Explain Unemployment? Not in Bad Times | +P. Michaillat | +2012 | +pascalmichaillat.org/1.pdf + | +
A Theory of Countercyclical Government Multiplier | +P. Michaillat | +2014 | +pascalmichaillat.org/2.pdf + | +
A Macroeconomic Approach to Optimal Unemployment Insurance: Theory | +C. Landais et al. | +2018 | +pascalmichaillat.org/4.pdf + | +
A Macroeconomic Approach to Optimal Unemployment Insurance: Applications | +C. Landais et al. | +2018 | +pascalmichaillat.org/5.pdf + | +
Persistence of False Paradigms in Low-Power Sciences | +G. Akerlof & P. Michaillat | +2018 | +pascalmichaillat.org/10.pdf + | +
Resolving New Keynesian Anomalies with Wealth in the Utility Function | +P. Michaillat & E. Saez | +2021 | +pascalmichaillat.org/11.pdf + | +
Modeling Job Stealing | +P. Michaillat | +2023 | +pascalmichaillat.org/14.pdf + | +