diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..69e58cb Binary files /dev/null and b/.DS_Store differ diff --git a/Data 400 Project Proposal 1.pdf b/Data 400 Project Proposal 1.pdf new file mode 100644 index 0000000..13dfa3f Binary files /dev/null and b/Data 400 Project Proposal 1.pdf differ diff --git a/Data_400_Project_Proposal_1.md b/Data_400_Project_Proposal_1.md new file mode 100644 index 0000000..7880a45 --- /dev/null +++ b/Data_400_Project_Proposal_1.md @@ -0,0 +1,25 @@ + +# Data 400 Project Proposal 1 +### Exploring the Relationship Between Remittances and Economic Stability in Nepal + +### Research Question: Can remittance inflows help predict changes in household consumption and inflation in Nepal? +### +### Motivation +Nepal is one of the most remittance dependent economies in the world with 25% of its total GDP coming from remittance. Since a large share of household income comes from citizens working abroad, remittances are important for consumption and functioning of households and for stabilizing the economy. Remittances are studied in development economics in Nepal but are usually studied by describing trends rather than making predictions. I want to use this project to examine whether remittance inflows can help predict changes in household consumption and inflation in Nepal. +### +### Data Sources +For this project I will use publicly available macroeconomic time-series data. Data on remittance inflows can be obtained from the Nepal Rastra Bank and the World Bank datasets. I will source household consumption, gross domestic product (GDP), and inflation data from the World Bank and the International Monetary Fund. All datasets are aggregated, numeric, and reported at monthly or yearly frequencies which makes them suitable for exploratory analysis and predictive modeling. +#### +### Methodology +I will begin this project with exploratory data analysis (EDA) to examine trends/relationships between remittance inflows, household consumption, and inflation. This will include summary statistics and visualizations such as time-series plots and correlation matrices. If time allows I will also consider economic shock periods like the 2015 earthquake and the COVID-19 pandemic to observe how these variables behaved during times of stress. For the predictive modelling, I will use models such as linear regression to assess whether remittance inflows can help predict changes in consumption and inflation. + +### Implications for Stakeholders +The findings from this project would be useful for policymakers and central bank officials in Nepal who are interested in economic forecasting and planning. Development organizations and researchers would benefit from understanding whether remittance flows provide signals of changes in economic conditions. The project highlights the economic role of migrant workers and the importance of external income flows in shaping domestic outcomes. +### +### Ethical Considerations +This project relies on aggregated and publicly available data which does not involve personal or sensitive information. However, the analysis acknowledges societal issues related to labor migration, including household separation and unequal access to migration opportunities. I will avoid causal claims and state its limitations to ensure the interpretation of predictive results is clear. +#### +### Challenges +I may face challenges in aligning data from different sources which are reported at different time intervals or contain missing values. I will clearly document data limitations and modeling assumtions so that results can be interpreted with caution. + + diff --git a/Data_400_Project_Proposal_1.md (3).html b/Data_400_Project_Proposal_1.md (3).html new file mode 100644 index 0000000..be2cfeb --- /dev/null +++ b/Data_400_Project_Proposal_1.md (3).html @@ -0,0 +1,23 @@ +
Nepal is one of the most remittance dependent economies in the world with 25% of its total GDP coming from remittance. Since a large share of household income comes from citizens working abroad, remittances are important for consumption and functioning of households and for stabilizing the economy. Remittances are studied in development economics in Nepal but are usually studied by describing trends rather than making predictions. I want to use this project to examine whether remittance inflows can help predict changes in household consumption and inflation in Nepal.
+For this project I will use publicly available macroeconomic time-series data. Data on remittance inflows can be obtained from the Nepal Rastra Bank and the World Bank datasets. I will source household consumption, gross domestic product (GDP), and inflation data from the World Bank and the International Monetary Fund. All datasets are aggregated, numeric, and reported at monthly or yearly frequencies which makes them suitable for exploratory analysis and predictive modeling.
+I will begin this project with exploratory data analysis (EDA) to examine trends/relationships between remittance inflows, household consumption, and inflation. This will include summary statistics and visualizations such as time-series plots and correlation matrices. If time allows I will also consider economic shock periods like the 2015 earthquake and the COVID-19 pandemic to observe how these variables behaved during times of stress. For the predictive modelling, I will use models such as linear regression to assess whether remittance inflows can help predict changes in consumption and inflation.
+The findings from this project would be useful for policymakers and central bank officials in Nepal who are interested in economic forecasting and planning. Development organizations and researchers would benefit from understanding whether remittance flows provide signals of changes in economic conditions. The project highlights the economic role of migrant workers and the importance of external income flows in shaping domestic outcomes.
+This project relies on aggregated and publicly available data which does not involve personal or sensitive information. However, the analysis acknowledges societal issues related to labor migration, including household separation and unequal access to migration opportunities. I will avoid causal claims and state its limitations to ensure the interpretation of predictive results is clear.
+I may face challenges in aligning data from different sources which are reported at different time intervals or contain missing values. I will clearly document data limitations and modeling assumtions so that results can be interpreted with caution.
+ + \ No newline at end of file diff --git a/notes/week01/github/test.Rmd b/notes/week01/github/test.Rmd new file mode 100644 index 0000000..b47eb19 --- /dev/null +++ b/notes/week01/github/test.Rmd @@ -0,0 +1,636 @@ +--- +title: "Presentation Ninja" +subtitle: "⚔
+ ```
+
+---
+
+# Macros (continued)
+
+- To insert macros in **xaringan** slides, you can use the option `beforeInit` under the option `nature`, e.g.,
+
+ ```yaml
+ output:
+ xaringan::moon_reader:
+ nature:
+ beforeInit: "macros.js"
+ ```
+
+ You save your remark.js macros in the file `macros.js`.
+
+- The `beforeInit` option can be used to insert arbitrary JS code before `remark.create()`. Inserting macros is just one of its possible applications.
+
+---
+
+# CSS
+
+Among all options in `xaringan::moon_reader`, the most challenging but perhaps also the most rewarding one is `css`, because it allows you to customize the appearance of your slides using any CSS rules or hacks you know.
+
+You can see the default CSS file [here](https://github.com/yihui/xaringan/blob/master/inst/rmarkdown/templates/xaringan/resources/default.css). You can completely replace it with your own CSS files, or define new rules to override the default. See the help page `?xaringan::moon_reader` for more information.
+
+---
+
+# CSS
+
+For example, suppose you want to change the font for code from the default "Source Code Pro" to "Ubuntu Mono". You can create a CSS file named, say, `ubuntu-mono.css`:
+
+```css
+@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);
+
+.remark-code, .remark-inline-code { font-family: 'Ubuntu Mono'; }
+```
+
+Then set the `css` option in the YAML metadata:
+
+```yaml
+output:
+ xaringan::moon_reader:
+ css: ["default", "ubuntu-mono.css"]
+```
+
+Here I assume `ubuntu-mono.css` is under the same directory as your Rmd.
+
+See [yihui/xaringan#83](https://github.com/yihui/xaringan/issues/83) for an example of using the [Fira Code](https://github.com/tonsky/FiraCode) font, which supports ligatures in program code.
+
+---
+
+# CSS (with Sass)
+
+**xaringan** also supports Sass support via **rmarkdown**. Suppose you want to use the same color for different elements, e.g., first heading and bold text. You can create a `.scss` file, say `mytheme.scss`, using the [sass](https://sass-lang.com/) syntax with variables:
+
+```scss
+$mycolor: #ff0000;
+.remark-slide-content > h1 { color: $mycolor; }
+.remark-slide-content strong { color: $mycolor; }
+```
+
+Then set the `css` option in the YAML metadata using this file placed under the same directory as your Rmd:
+
+```yaml
+output:
+ xaringan::moon_reader:
+ css: ["default", "mytheme.scss"]
+```
+
+This requires **rmarkdown** >= 2.8 and the [**sass**](https://rstudio.github.io/sass/) package. You can learn more about **rmarkdown** and **sass** support in [this blog post](https://blog.rstudio.com/2021/04/15/2021-spring-rmd-news/#sass-and-scss-support-for-html-based-output) and in [**sass** overview vignette](https://rstudio.github.io/sass/articles/sass.html).
+
+---
+
+# Themes
+
+Don't want to learn CSS? Okay, you can use some user-contributed themes. A theme typically consists of two CSS files `foo.css` and `foo-fonts.css`, where `foo` is the theme name. Below are some existing themes:
+
+```{r, R.options=list(width = 70)}
+names(xaringan:::list_css())
+```
+
+---
+
+# Themes
+
+To use a theme, you can specify the `css` option as an array of CSS filenames (without the `.css` extensions), e.g.,
+
+```yaml
+output:
+ xaringan::moon_reader:
+ css: [default, metropolis, metropolis-fonts]
+```
+
+If you want to contribute a theme to **xaringan**, please read [this blog post](https://yihui.org/en/2017/10/xaringan-themes).
+
+---
+class: inverse, middle, center
+background-image: url(https://upload.wikimedia.org/wikipedia/commons/3/39/Naruto_Shiki_Fujin.svg)
+background-size: contain
+
+# Naruto
+
+---
+background-image: url(https://upload.wikimedia.org/wikipedia/commons/b/be/Sharingan_triple.svg)
+background-size: 100px
+background-position: 90% 8%
+
+# Sharingan
+
+The R package name **xaringan** was derived1 from **Sharingan**, a dōjutsu in the Japanese anime _Naruto_ with two abilities:
+
+- the "Eye of Insight"
+
+- the "Eye of Hypnotism"
+
+I think a presentation is basically a way to communicate insights to the audience, and a great presentation may even "hypnotize" the audience.2,3
+
+.footnote[
+[1] In Chinese, the pronounciation of _X_ is _Sh_ /ʃ/ (as in _shrimp_). Now you should have a better idea of how to pronounce my last name _Xie_.
+
+[2] By comparison, bad presentations only put the audience to sleep.
+
+[3] Personally I find that setting background images for slides is a killer feature of remark.js. It is an effective way to bring visual impact into your presentations.
+]
+
+---
+
+# Naruto terminology
+
+The **xaringan** package borrowed a few terms from Naruto, such as
+
+- [Sharingan](https://naruto.fandom.com/wiki/Sharingan) (写輪眼; the package name)
+
+- The [moon reader](https://naruto.fandom.com/wiki/Moon_Reader) (月読; an attractive R Markdown output format)
+
+- [Chakra](https://naruto.fandom.com/wiki/Chakra) (查克拉; the path to the remark.js library, which is the power to drive the presentation)
+
+- [Nature transformation](https://naruto.fandom.com/wiki/Nature_Transformation) (性質変化; transform the chakra by setting different options)
+
+- The [infinite moon reader](https://naruto.fandom.com/wiki/Infinite_Tsukuyomi) (無限月読; start a local web server to continuously serve your slides)
+
+- The [summoning technique](https://naruto.fandom.com/wiki/Summoning_Technique) (download remark.js from the web)
+
+You can click the links to know more about them if you want. The jutsu "Moon Reader" may seem a little evil, but that does not mean your slides are evil.
+
+---
+
+class: center
+
+# Hand seals (印)
+
+Press `h` or `?` to see the possible ninjutsu you can use in remark.js.
+
+
+
+---
+
+class: center, middle
+
+# Thanks!
+
+Slides created via the R package [**xaringan**](https://github.com/yihui/xaringan).
+
+The chakra comes from [remark.js](https://remarkjs.com), [**knitr**](https://yihui.org/knitr/), and [R Markdown](https://rmarkdown.rstudio.com).