www.crosshyou.info

政府統計の総合窓口のデータや、OECDやUCIやのデータを使って、Rの練習をしています。ときどき、読書記録も載せています。

読書記録 - 「戦後世界経済史 自由と平等の視点から」 猪木 武徳 著 (中公新書)

戦後世界経済史 自由と平等の視点から (中公新書) 作者:猪木武徳 中央公論新社 Amazon 2009年に出版された本です。 自由と平等の視点から、という副題にあるように、自由と平等という相反することをどのように両立させていくかが難しいけれども大事なことだ…

都道府県別のパソコン所有数量のデータの分析1 - Rにデータを読みこむ。

Generated by Bing Image Creator: picture of flower garden in the future, more realistic 今回は都道府県別のパソコン所有数量のデータの分析をしてみたいと思います。 まず、政府統計の総合窓口 e-stat のウェブサイトデータ表示 | 都道府県データ | 社…

OECD Household savings data analysis 6 - Panel Data regression analysis using R plm package.

Generated by Bing Image Creator: Photograph of narcissus tazetta garden with spring shiny sky, more bright tone www.crosshyou.info This post is following of the above post. I will do panel data regression analysis in this post. I refert to…

OECD Household savings data analysis 5 - Analyzing savings and per capita GDP using 'infer' package workflow.

Generated by Bing Image Creator: Photographic of real violet flowers on the flower garden, background is fine sky www.crosshyou.info This post is following of the above post. In this post I will analyze relationship between household savin…

OECD Household savings data analysis 4 - Join World Bank per capita GDP data using R inner_join() function

Generated by Bing Image Creator: Photographs of rape blossoms like an illustrated book, more shiny and green www.crosshyou.info This post is following of above post. In the previous post, I found year 2000 is a special year for household s…

読書記録 - 「文学は地球を想像する エコクリティシズムの挑戦」 結城 正美 著 (岩波新書)

文学は地球を想像する エコクリティシズムの挑戦 (岩波新書 新赤版 1988) 作者:結城 正美 岩波書店 Amazon エコクリティシズムという学問分野があるのは知りませんでした。文学を環境との係りの観点から分析、考察していくものだそうです。 ソローの「森の生…

OECD Household savings data analysis 3 - Using R reveals Year 2020 is special year for Household savings.

Generated by Bing Image Creator:Lovely photograph of beautiful sunflowers in a city www.crosshyou.info This post is following of the above post. In the above post, I made a subset data frame, which is balanced panel data. Let's see time tr…

OECD Household savings data analysis 2 - Data visualization, histogram, bar chart and box plot with R ggplot2

Generated by Bing Image Creator: photo of real iris flower garden www.crosshyou.info This post is following of the above post. In the previous post, I make a tidy data frame. In this post, I will do visualization to get the feeling of what…

読書記録 - 「ジェンダー格差 実証経済学は何を語るか」 牧野 百恵 著 (中公新書)

ジェンダー格差 実証経済学は何を語るか (中公新書) 作者:牧野百恵 中央公論新社 Amazon ジェンダーとは、社会・文化的に意味づけされた性別のことで、生物学的な性別はセックスというそうです。 この本では、その社会・文化的に意味づけされた性別の格差を…

読書記録 - 「社会学の新地平 ウェーバーからルーマンへ」佐藤 俊樹 著 (岩波新書)

社会学の新地平 ウェーバーからルーマンへ (岩波新書) 作者:佐藤 俊樹 岩波書店 Amazon 「この」産業社会がどのように発生していったのかを考えていったのがウェーバーとルーマンということですが、正直言ってよくわからなかったです。 何故かというと、「こ…

OECD Household savings data analysis 1 - Import CSV file data into R using read_csv() function.

Generated by Bing Image Creator:Beautiful scientific natural flowers on the moon, photo In this post, I will analyse OECD Household savings data with R. I downloaded below CSV fril from OECD web site. I use R to analyze above data. To begi…

都道府県別の睡眠の平均時間のデータの分析5 - Rで回帰分析 - 睡眠時間の平均値と県民一人当り県内総生産額は関連なさそう。

Generated by Bing Image Creator:beautiful clear phot of a flower, wisteria, background is Technopolis www.crosshyou.info の続きです。 前回は、男子と女子では、女子のほうが睡眠時間が短いこと、2001年と2011年では2011年のほうが睡眠時間が短いこ…

都道府県別の睡眠の平均時間のデータの分析4 - Rのt.test()関数で平均値の差の検定とinferパッケージでANOVA。女子のほうが睡眠時間が短い。

Generated by Bing Imae Creator:realistic photo of a Chimonanthus praecox www.crosshyou.info の続きです。前回までで、だいたいの睡眠時間の様子がわかりましたので、今回は男性と女性で睡眠時間に差があるのかどうかを調べてみましょう。 平均値の違い…

都道府県別の睡眠の平均時間のデータの分析3 - Rのdplyrパッケージでグループ化して最大値・最小値を並び替え。

Generated by Bing Image Creator:Realistic Photo of winter flower park www.crosshyou.info の続きです。今回はRのdplyrパッケージで、データフレームをgroup_by()関数でグループ化して、slice_max()関数やslice_max()関数でグループごとの最大値や最小値…

読書記録 - 「恐怖の正体 トラウマ・恐怖症からホラーまで」 春日 武彦 著 (中公新書)

恐怖の正体 トラウマ・恐怖症からホラーまで (中公新書) 作者:春日武彦 中央公論新社 Amazon 著者による恐怖の定義は、 ①危機感 ②不条理感 ③精神的視野狭窄 これら三つが組み合わされることによって立ち上がる圧倒的な感情が、恐怖という体験を形づくる。 と…

都道府県別の睡眠の平均時間のデータの分析2- Rのpivot_longer()でデータフレームを縦長に変換して、ggplot2パッケージでデータの視覚化

Generated by Bing Image Creator: Beautiful Photo of colorful landscape of green grass field, yellow and blue flowers www.crosshyou.info の続きです。 今回は「百聞は一見に如かず」という言葉もありますので、Rのggplot2パッケージでデータをグラフ…

都道府県別の睡眠の平均時間のデータの分析 1 - RにCSVファイルのデータを読み込む。無業者の男子と有業者女子で1時間以上、平均睡眠時間に差がある。

Generated by Bing Image Creator: Beautiful Photo, tropical coral sea, colorful fishes 今回は、政府統計の総合窓口(e-stat)から都道府県別の睡眠時間のデータを分析してみましょう。 男性と女性で睡眠時間に差があるのか?10歳以上と15歳以上で差がある…

読書記録 - 「ドキュメント異次元緩和 - 10年間の全記録」 西野 智彦 著 (岩波新書)

ドキュメント 異次元緩和──10年間の全記録 (岩波新書 新赤版 1997) 作者:西野 智彦 岩波書店 Amazon この本の28ページ目の小見出しが「戦争せずにデフレ脱却を」となっていますが、結局は異次元緩和でもデフレ脱却はできず、ロシアのウクライナ侵攻という戦…

UCIのDry Bean Datasetのデータの分析5 - RのglmnetパッケージでElastic-Net回帰分析。lm()関数のOLSでの係数とは全く違うのに結果は似たようになった。

Bing Image Creatorで生成:Photo of a lot of beautiful real flowers on the tropical beach, in the night, aurora is shining in the night sky www.crosshyou.info の続きです。前回はRのrpartパッケージでregresstion treeをやってみました。結果はlm(…

UCIのDry Bean Datasetのデータ分析4 - Rのlm()関数、rpartパッケージで回帰分析

Bing Image Creatorで生成:菜の花がいっぱい咲いている、月世界の写真 www.crosshyou.info の続きです。前の2回はClassificationをrpartパッケージとglmnetパッケージを使って実行しました。今回はRegressionを実行してみます。非説明変数をroundnessにして…

UCIのDry Bean Datasetのデータ分析3 - RのglmnetパッケージでElastic-Net Regression

Bing Image Creatorで生成: Photo of many flowers of morning glory on the wild grass field, background beautiful sky www.crosshyou.info の続きです。前回はRのrpartパッケージを使ってRegression Treeのモデルを推定してDERMASONとSIRAの分類をしてみ…

読書記録 - 「物語 遺伝学の歴史 - メンデルからDNA、ゲノム編集まで」 平野 博之 著 (中公新書)

物語 遺伝学の歴史-メンデルからDNA、ゲノム編集まで (中公新書 2731) 作者:平野 博之 中央公論新社 Amazon メンデル以前は遺伝はどのように考えられていたのか、からはじまって最近ノーベル賞を受賞したクリスパーCas9の話まで、それぞれの研究者がどのよう…

UCIのDry Bean Datasetのデータ分析2 - RのrpartパッケージでClassification Tree

Generated by Bing Image Creator: Photo of many iris flowers in water world in the dinosaur age www.crosshyou.info の続きです。 今回は、RのrpartパッケージでClassification TreeをつかってDERMASONとSIRAを区別してみます。 How to Fit Classificat…

UCIのDry Bean Datasetのデータ分析1 - データの視覚化

Generated by Bing Image Creator: Photo of many beans and bean flowers blooming in a field Dry Bean Dataset. (2020). UCI Machine Learning Repository. https://doi.org/10.24432/C50S4B. 今回は、UCIのDry Bean Datasetのデータで、Rを使ってClassif…

OECD Total official and private flows data analysis 6 - Regression using R's rpart package

Generated by Bing Inage Creator: Photo of tulips and cherry blossomes in the moon. www.crosshyou.info This post is following of above post. In this post, I will do regression using R's 'rpart' package. I learned how to use 'rpart' package …

OECD Total official and private flows data analysis 5 - Classification using R's glmnet package.

Generated by Bing Image Creator: Photo of dandelions and violets blooming all over a field www.crosshyou.info This post is following of the above post. In the previous post, I used R's 'tree' package. In this post, I will use R's 'glmnet' …

OECD Total official and private flows data analysis 4 - Classification using R's tree package.

Generated by Bing Image Creator: Picture with lots of red maple leaves www.crosshyou.info This post is following of the above post. In the previous post, I made a dummy variable 'neg' which indicates whether a LOCATION has negative value o…

OECD Total official and private flows data analysis 3 - Monte Carlo Simulation using R.

Generated by Bing Image Creator: Pictures of plum blossoms blooming in a rainforest. www.crosshyou.info This posit is following of the above post. In the previous post, I make two groups for LOCATION, one is neg == 1, which has negative va…

OECD Total official and private flows data analysis 2 - Summary Statistics using R

UnsplashのNastasia Kalininaが撮影した写真 www.crosshyou.info This post is following of the above post. Let's see summary statistics. First, let's see summary statistics by LOCATION. Let's see summary stats by TIME. I use group_by() functio…

OECD Total official and private flows data analysis 1 - Load CSV file into R and some data wrangling.

UnsplashのCosmic Timetravelerが撮影した写真 Hello. I will analyse OECE Total offical and private flows using R. I download data CSV file from the OECD web site. https://data.oecd.org/drf/total-official-and-private-flows.htm I got the CSV l…