Publications by 张献伟

table1

31.01.2023

table1 package table1 package 1.特征表 2.p和统计量. 2023-01-31 https://cran.r-project.org/web/packages/table1/vignettes/table1-examples.html https://www.bioinfo-scrounger.com/archives/855/ 1.特征表 例1 library(boot) library(tidyverse) ## -- Attaching packages --------------------------------------- tidyverse 1.3.1 -- ## v ggplot...

672 sym Python (6649 sym/22 pcs) 6 tbl

Price Elasticity of Demand

14.01.2023

Price Elasticity of Demand (PED) “H ποσοστιαία μεταβολή της ζητούμενης ποσότητας προς την ποσοστιαία μεταβολή της τιμής, ονομάζεται ελαστικότητα ζήτησης ως προς την τιμή. Μπορούμε λοιπόν να αντιληφθούμ�...

2768 sym R (626 sym/6 pcs) 1 img 1 tbl

Document

16.01.2023

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

19.01.2023

skimr package skimr package skimr 安装 支持字符串、列表和其他 汇总功能 选择单个列 处理分组数据 管道操作中使用 自定义 其他对象 2023-01-19 skimr 显示汇总统计信息,处理不同的数据类型并返回一个对象,且可以包含在管道中使用。 提供比summary更多的统计信息。...

749 sym 16 tbl

Document

23.01.2023

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

09.09.2022

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

09.09.2022

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

29.09.2022

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

10.10.2022

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

13.10.2022

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