Publications by Yiyi Li
Research Project
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
# 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
# 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
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
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
# 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
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