Publications by Yiyi Li

Research Project

15.12.2023

Setting Up Packages and Loading Dataset # List of packages packages <- c("tidyverse", "infer", "fst", "modelsummary", "effects", "survey", "MASS", "kableExtra", "flextable", "equatiomatic") # Install packages if they aren't installed already new_packages <- packages[!(packages %in% installed.packages()[,"Package"])] if(length(new_packages)) insta...

369 sym Python (12034 sym/30 pcs) 1 img 2 tbl

Homework 8

20.11.2023

# List of packages packages <- c("tidyverse", "infer", "fst", "modelsummary", "broom") # add any you need here # Install packages if they aren't installed already new_packages <- packages[!(packages %in% installed.packages()[,"Package"])] if(length(new_packages)) install.packages(new_packages) # Load the packages lapply(packages, library, charact...

2853 sym

Homework 7

13.11.2023

# List of packages needed packages <- c("tidyverse", "infer", "fst") # Add any packages you need here # Install packages if they aren't installed already new_packages <- packages[!(packages %in% installed.packages()[,"Package"])] if(length(new_packages)) install.packages(new_packages) # Load the packages lapply(packages, library, character.only =...

4413 sym 4 img

Homework 6

03.11.2023

Mission 1 Launch a new R project and R markdown file. Name it “Lastname_Firstname_Project_202”. Set up your environment with packages you will use. # List of packages packages <- c("tidyverse", "modelsummary", "forcats", "RColorBrewer", "fst", "viridis", "knitr", "kableExtra", "rmarkdown", "ggridges", "viridis", "questionr") # I...

834 sym Python (7569 sym/12 pcs) 1 img 1 tbl

Homework 6

03.11.2023

Mission 1 Launch a new R project and R markdown file. Name it “Lastname_Firstname_Project_202”. Set up your environment with packages you will use. # List of packages packages <- c("tidyverse", "modelsummary", "forcats", "RColorBrewer", "fst", "viridis", "knitr", "kableExtra", "rmarkdown", "ggridges", "viridis", "questionr") # I...

1224 sym Python (8010 sym/13 pcs) 1 img 2 tbl

Homework5

19.10.2023

# List of packages packages <- c("tidyverse", "modelsummary", "forcats", "RColorBrewer", "fst", "viridis", "knitr", "kableExtra", "rmarkdown", "ggridges", "viridis", "questionr") # Install packages if they aren't installed already new_packages <- packages[!(packages %in% installed.packages()[,"Package"])] if(length(new_packages)) in...

3237 sym Python (9967 sym/24 pcs) 3 img 3 tbl

Document

15.10.2023

TASK 1: Explain why the levels(france_data$stfdem) returns NULL. levels(france_data$stfdem) returns NULL because the data in the stdfem variable is numerical. Because levels returns the order of categorical variables (ordinal variables), it does not apply to numerical data. TASK 2: When you subset for Hungary for the year 2006, how many observation...

1389 sym