www.crosshyou.info

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

2023-04-01から1ヶ月間の記事一覧

都道府県別の世帯土地統計のデータの分析2 - Rのggplot() + geom_histogram()関数で各変数のヒストグラムを描く。

UnsplashのGuillaume Chabrolが撮影した写真 www.crosshyou.info の続きです。 前回はデータのCSVファイルをRにインポートしました。 まず、skimrパッケージのskim()関数で各変数の基本統計量を一覧します。 282行、10列のデータフレームで、文字列型の変数…

都道府県別の世帯土地統計のデータの分析1 - Rのread_csv()関数でCSVファイルを読み込み、inner_join()関数でデータフレームを統合する。

UnsplashのJasmin Maagが撮影した写真 今回は、都道府県別の世帯土地統計のデータを分析してみようと思います。 政府統計の総合窓口(www.e-stat.go.jp)からデータを取得します。 たくさんデータセットがありましたが、今回は一番上の「世帯人員、土地の所有…

読書記録 - 「デジタル化する新興国 先進国を超えるか、監視社会の到来か」 伊藤 亜聖 著 中公新書

デジタル化する新興国 先進国を超えるか、監視社会の到来か (中公新書) 作者:伊藤亜聖 中央公論新社 Amazon 中国、インド、東南アジア、アフリカの新興国を中心に、これらの国々のデジタル社会化の様子を描いています。 この本のタイトル(先進国を超えるか、…

OECD Tourism flows data analysis 7 - regression analysis with infer package of R

UnsplashのAlexander Cifuentesが撮影した写真 www.crosshyou.info This post is following of above post. In this post, I will do cross sectional regression analysis using infer package. Fisrt, I select one year for cross sectional regression. …

OECD Tourism flows data analysis 6 - Testing for serial correlation of the error term using R

UnsplashのBob Brewerが撮影した写真 www.crosshyou.info This post is following of the above post. By previous posts, I made 6 models. These models are time series regression model. So, I would like to check whether there are serial correlati…

OECD Tourism flows data analysis 5 - regression with differenced data using R

Unsplashのguy stevensが撮影した写真 www.crosshyou.info This psot is following of above post.In the previous post, I regress acc_nights, inter_arr and inter_dep on per_capita and trend term for Japan tourism flow data. In this post, I will …

OECD Tourism flows data analysis 4 - Time series regression for Japan tourism data with R.

UnsplashのHan Chenxuが撮影した写真 www.crosshyou.info This post is floowing of the above post.In the above post, I find year 2020 and 2021 have COVID-19 effect and each locations has their own characteristics. So I will focus a few locatio…

OECD Tourism flows data analysis 3 - Boxplots and Scatter Plots using R.

UnsplashのQuang Nguyen Vinhが撮影した写真 www.crosshyou.info This post is floowing of above post.In this post, I will draw some graphs to see relationship of two variables. Fisrt, I see per capita and location with boxplots. I see SAU, AUS…

読書記録 - 「幸福の増税論 - 財政は誰のために」 井手 英策 著 岩波新書

幸福の増税論-財政はだれのために (岩波新書) 作者:井手 英策 岩波書店 Amazon この本の第4章のタイトルは、「貯蓄ゼロでも不安ゼロの社会」です。 このタイトル通りに日本が「貯蓄ゼロでも不安ゼロの社会」になればいいなと思います。 教育、医療、子育て…

OECD Tourism flows data analysis 2 - Data wrangling and one variable visualization with R.

Unsplashの2H Mediaが撮影した写真 www.crosshyou.info This post is following of the above post. I make ACC_NIGHTS only data frame with filter() function in R. Next, I make INTER_ARR only data frame. I make INTER_DEP only data frame. Then, I …

OECD Tourism flows data analysis 1 - Load CSV data into R.

UnsplashのErik Knoefが撮影した写真 In this post, I will analyze OECD Tourism flows data analysis. I download CSV file from the OECD website. I also downladed GDP per capita data from OECD web site. I use R for data analysis. First, I load …

読書記録 - 「肝臓のはなし - 基礎知識から病への対処まで」 竹原 徹郎 著 中公新書

肝臓のはなし-基礎知識から病への対処まで (中公新書, 2689) 作者:竹原 徹郎 中央公論新社 Amazon タイトルどおりに、古代中国やギリシャでは肝臓がどのように捉えられていたか、から始まり、肝臓の病気の対処方法までが書かれていました。 肝臓は人体の中で…

都道府県別の建築物リフォーム・リニューアル調査のデータ分析9 - Rでパネルデータ分析

UnsplashのYouSsef NaDramが撮影した写真 www.crosshyou.info の続きです。前回は、l_total: リフォーム・リニューアルの金額の自然対数値を被説明変数、l_shotoku23: 県民1人当たり所得の自然対数値、l_total_prev: 前年のl_total、yearを説明変数にして回…

都道府県別の建築物リフォーム・リニューアル調査のデータ分析8 - 前年の被説明変数値を含めての回帰分析すると、結果は全く違った結果になった。

UnsplashのArham Jainが撮影した写真 www.crosshyou.info の続きです。前回は、l_total: 建築物リフォーム・リニューアルの金額の自然対数値をl_shotoku23: 県民1人当たり所得とyear: 調査年度の2つの説明変数で回帰分析してみました。 今回は、前年度のl_to…