Publications by 田中 鮎夢
Document
library(readxl) gravity <- read_excel("gravity.xlsx") gravity$limports<-log(gravity$imports) gravity$lgdp_exporter<-log(gravity$gdp_exporter) gravity$lgdp_importer<-log(gravity$gdp_importer) gravity$ldist<-log(gravity$dist) gravity2<-subset(gravity,gravity$imports>0) #install.packages("estimatr") library(estimatr) ols<-lm_robust(gravity2$limpo...
5 sym R (1483 sym/2 pcs)
skimr
skimr package skimr package skimr 安装 支持字符串、列表和其他 汇总功能 选择单个列 处理分组数据 管道操作中使用 自定义 其他对象 2023-01-19 skimr 显示汇总统计信息,处理不同的数据类型并返回一个对象,且可以包含在管道中使用。 提供比summary更多的统计信息。...
749 sym 16 tbl
Document
library(readxl) gravity <- read_excel("gravity.xlsx") gravity$limports<-log(gravity$imports) gravity$lgdp_exporter<-log(gravity$gdp_exporter) gravity$lgdp_importer<-log(gravity$gdp_importer) gravity$ldist<-log(gravity$dist) gravity2<-subset(gravity,gravity$imports>0) library(estimatr) ols<-lm_robust(limports~lgdp_exporter+lgdp_importer+ldist+c...
5 sym R (415 sym/1 pcs) 1 tbl
Document
Maps with ggplot2 Author Ayumu Tanaka Setting the world map #install.packages(c("cowplot", "googleway","ggplot2", "ggrepel", "ggspatial", "libwgeom", "sf", "rnaturalearth","rnaturalearthdata")) library("ggplot2") theme_set(theme_bw()) library("sf") Linking to GEOS 3.8.0, GDAL 3.0.4, PROJ 6.3.1; sf_use_s2() is TRUE library("rnaturalearth")...
731 sym Python (3614 sym/28 pcs) 4 img
Ejemplo RMarkdown
Ejemplo de combinaciones Este es un ejemplo de texto. help("combinations") # Con repetición c=combinations(n=4,r=3,v=c('a','b','c','d'),repeats.allowed = T) c ## [,1] [,2] [,3] ## [1,] "a" "a" "a" ## [2,] "a" "a" "b" ## [3,] "a" "a" "c" ## [4,] "a" "a" "d" ## [5,] "a" "b" "b" ## [6,] "a" "b" "c" ## [7,] "a" "b" "...
156 sym 1 img
Publish Document
Rの基本 Rの説明 https://yukiyanai.github.io/stat2/ https://www.jaysong.net/RBook/rmarkdown.html 2+2 ## [1] 4 2-2 ## [1] 0 2*2 ## [1] 4 2/2 ## [1] 1 2^2 ## [1] 4 データ読み込み library(readr) trade2013 <- read_csv("trade2013.csv") 散布図 plot(trade2013$lgdp1,trade2013$ltrade,xlab="GDP",ylab = "貿易額") ...
126 sym R (170 sym/12 pcs) 1 img
Document
library(readxl) time <- read_excel("time.xlsx") mean(time$time) ## [1] 62.35294 hist(time$time) library(readxl) time2 <- read_excel("time2.xlsx") ## You can use the below code to generate the graph. ## Don't forget to replace the 'df' with the name ## of your dataframe # You need the following package(s): library("ggplot2") # The code below w...
73 sym R (1498 sym/21 pcs) 8 img
Prof. Frank Liu's in class discussion notes
Inclass Discussion Political Methodology 2022, IPS-NSYSU Author Prof. Frank Liu Published December 1, 2022 TOPIC 1: Thinking about the Discipline in the Era of Data Science the outlook of the discipline united? fragmented? divided? What does our discipline’s organized sections shows? TOPIC 2: What Do We Really Know? sources of (scien...
9344 sym 3 img 1 tbl
Actividad airbnb
library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union library(tidyr) library(plotly) ## Loading required package: ggplot2 ## ## Attaching package: 'plotly' ## The foll...
19 sym R (1522 sym/15 pcs)
20221101_從民眾與選舉現象找議題與做研究_第一講理論篇
從民眾與選舉現象中找議題與做研究-第一講理論篇 中山政治所 劉正山教授 2022.11.1 講者簡介 | 關於劉正山教授 美國堪薩斯大學政治學博士(2006取得博士學位、同年加入中山大學) 劉老師的研究興趣: 民意與群眾行為 國家認同 媒體使用 政治談論社群 道德心理�...
2403 sym 15 img