2021-01-01から1年間の記事一覧
Photo by Mylon Ollila on Unsplash www.crosshyou.info This post is following of the above post. In this post, I will do clustering. First, I use hierarchial clustering. I make a matrix for clustering. I use 2018 and 2019 data. Then, I use d…
Photo by Quino Al on Unsplash www.crosshyou.info This post is following of the above post.I have GDP data file like below, which I downloaded OECD web site. I am going to merge this data to previous ppp data. Firstly, I upload this CSV fil…
Photo by Drew Bae on Unsplash www.crosshyou.info This post is following of the above post. In this post, let's make some graphs. Firstly, let's see year vs. ppp. I use plot() function. We see 2 countries have relatively high ppp than oters…
新型コロナと向き合う: 「かかりつけ医」からの提言 (岩波新書 新赤版 1900) 作者:横倉 義武 岩波書店 Amazon 著者は2012年から2020年6月まで日本医師会会長をしていました。 日本医師会からみた新型コロナの対応が第1章で時系列的に書かれていて、第2章でそ…
Photo by Andrew Svk on Unsplash In this post, I will analyze OECD Purchasing power parities (PPP). From the OECD website, I got below CSV file. I analyze those data with R. Firstly, I load tidyvesr package. Let's load the CSV file with rea…
Photo by Kyle on Unsplash www.crosshyou.info の続きです。 今回は、carパッケージのlinearHypothesis()関数というものを知ったので、忘れないように使ってみたいと思います。 前回は、tomo: 共働き世帯割合(%)を被説明変数にして、2期間のパネルデータでF…
Photo by Ahsen Sunay on Unsplash www.crosshyou.info の続きです。 前回は2015年だけのデータを使って回帰分析しました。 今回は2010年のデータも使って回帰分析してみます。 まず、2010年と2015年だけのデータフレームを作成します。 d10というダミー変数…
Photo by Gavin Spear on Unsplash www.crosshyou.info の続きです。 前回は、tomo: 共働き世帯割合(%)をunem: 完全失業率(%)で回帰分析してみました。 2015年だけのデータを使うと、 tomo = 51.19 - 16.66 x log(unem) + u というモデルが推計されました。 …
Photo by Gustavo Zambelli on Unsplash www.crosshyou.info の続きです。 今回は、tomo: 共働き世帯割合(%)を被説明変数、unem: 完全失業率(%)を説明変数にして回帰分析をしてみようと思います。 R言語のlm()関数を使います。 まずは、2015年だけのデータで…
Photo by Alexander Andrews on Unsplash www.crosshyou.info の続きです。 まず、年ごとに共働き世帯割合がどのように変化しているのかを見てみます。 R言語のplot()関数を使いました。 年と経るごとに共働き世帯割合が減少していることがわかります。 この…
保守主義とは何か - 反フランス革命から現代日本まで (中公新書) 作者:宇野 重規 中央公論新社 Amazon 保守主義とは、進歩主義に対抗するもの。 現在は「進歩」に対して懐疑的な感情も多くなっているので、それに対応して保守主義も曖昧な感じになっている。…
Photo by Riccardo Chiarini on Unsplash 今回は都道府県別の共働き世帯割合のデータを分析してみようと思います。 データは、政府統計の総合窓口(www.e-stat.go.jp)から取得します。 まず、地域を選択します。 データを選択します。 共働き世帯割合の他に関…
Photo by Rob Wicks on Unsplash www.crosshyou.info This post is following of above post. In the previous post I used only JPN data.Let's use whole data in this post.Firstly, I make a multiple linear regression model by year. Dependent varia…
Photo by Zoltan Tasi on Unsplash www.crosshyou.info This post is following above post. I will add interst rate data and long term unpenployment data. longterm unenployment is "number of unenployee more than 12 months / number of all unenpo…
中国名文選 (岩波新書) 作者:興膳 宏 岩波書店 Amazon 漢文の名文を12章で12人分紹介しています。 印象に残ったのは、この紹介された12人の多くが左遷されたり不遇なときを過ごしたことがあることです。
Photo by Jim Cooke on Unsplash www.crosshyou.info This post is following of the above post. So far previous posts, GDP nor per capita GDP cannot explain Trust in governmnet very well. I will add more variables. I have CPI, inflation data l…
Photo by Annie Spratt on Unsplash www.crosshyou.info This post is following of the above post. 5. Independent variable = capi, by year Almost year except for 2010 have positive coefficientt. But only 2017 is statisticaly significant. 6. In…
Photo by Dulana Kodithuwakku on Unsplash www.crosshyou.info This post is following of the above post. Let's make log(capi) as l_capi. Let's make a scatter plot for trust and l_capi. It seems there is not clear relationship. Then, I load br…
Photo by Sunil Naik on Unsplash www.crosshyou.info This post is following of the above post. I have another data file like below This is GDP and per capita GDP data.I will merge this data with trust in government data. First, I load this f…
Photo by SGR on Unsplash www.crosshyou.info This post is following of the above post. In the previous post, I loaded OECD Trust in government data.Let's see overall histogram of the data. I use hist() function. It looks like normal distrib…
Photo by Taun Stewart on Unsplash I this series of posts, I will analysis OECD data, "Trust in governmet".I got below CSV file from General government - Trust in government - OECD Data I use R to analyze this data. Firstly, I load tidyvers…
Photo by Mark X. on Unsplash www.crosshyou.info の続きです。 今回が都道府県別にグループ分けしてから回帰分析をしてみます。 まず、df_lmというデータフレーム(正しくはtibble)を作成して、その中に回帰分析の結果を格納しました。 切片をみてみましょ…
Photo by Markus Spiske on Unsplash www.crosshyou.info の続きです。 今回もR言語のlm()関数で回帰分析をしていこうと思います。今回はbroomパッケージのtidy()関数を使ってみます。 まずは、broomパッケージを読み込みます。 broomパッケージのtidy()関数…
Photo by Tanya Nevidoma on Unsplash www.crosshyou.info の続きです。 今回はR言語のlm()関数を使って回帰分析をしてみようと思います。 まずは、l_waterをl_kachiで回帰分析してします。 l_water: 工業用水量(m3/日)を対数変換したもの l_kachi: 製造業付…
Photo by Daniel Seifried on Unsplash www.crosshyou.info の続きです。 今回は、各変数間の相関関係をみてみましょう。 2014年のデータを使ってみてみます。 まずは、調べる変数名の確認です。対数変換した変数で調べます。 names()関数でデータフレームdf…
Photo by Jerry Adney on Unsplash www.crosshyou.info の続きです。 前回の分析で、どうやら海の無い県は工業用水の使用料が海のある県よりも少ないようです。 これを統計学的に検証してみましょう。 まず、2014年の海の無い県のwater_kachi: 製造業付加価…
Photo by Martina Mainetti on Unsplash www.crosshyou.info の続きです。 前回は工業用水量のデータをはじめ総人口や県内総生産額などのデータが対数正規分布になっていることを確認しました。 まず、codeだけではどれがどの都道府県なのかわからないので、…
Photo by Joanna Huang on Unsplash 今回は、都道府県別の工業用水のデータを分析してみようと思います。 データは、政府統計の総合窓口(www.e-stat.go.jp)から取得しました。 47の都道府県を選択します。 工業用水量のデータの他に総人口、県内総生産額、製…
怨霊とは何か - 菅原道真・平将門・崇徳院 (中公新書) 作者:山田 雄司 中央公論新社 Amazon 怨霊とは死ぬときに深い怨念を抱いて死んで、現世の世界に祟りをもたらす存在です。 菅原道真・平将門・崇徳院が日本の三大怨霊だそうです。 崇徳院は知らなかった…
Photo by J Lee on Unsplash www.crosshyou.info This post is following of above post.In the previous post, I made panel data dataframe.Let's analyze this. Firstly, let's see correlation. g_gdp and g_capi are highly correlated. bci_sd are neg…