Publications by Meng Ye
Document
Load packages and CLEANED data library(tidyverse) # package for data cleaning and plotting) library(modelsummary) cic_list <- read_csv("data/cic_full_list.csv") Draw cross tab and print full list datasummary(region + 1 ~ location_type + 1, data = cic_list, fmt = 0) region Independent Healthcare Org Primary Medical Services Social Care Or...
104 sym R (280 sym/3 pcs) 2 tbl
Document
# environment setup to run ordered logit properly options(contrasts = rep("contr.treatment", 2)) library(tidyverse) library(lubridate) # For working with dates library(scales) library(ggridges) # For ridge plots library(gghalves) library(mapchina) library(modelsummary) library(marginaleffects) library(ggrepel) library(nnet) trust_raw <- ...
142 sym R (17732 sym/29 pcs) 2 img 3 tbl
Document
# environment setup to run ordered logit properly options(contrasts = rep("contr.treatment", 2)) library(tidyverse) library(lubridate) # For working with dates library(scales) library(ggridges) # For ridge plots library(gghalves) library(mapchina) library(modelsummary) library(ggrepel) library(nnet) trust_raw <- read_csv("data/trust_2023_...
91 sym R (11285 sym/19 pcs) 2 img 2 tbl
Document
Read Me This is the data analysis RMarkdown file for 1) merging in spin-out data, and 2)initial data analysis with the additional spin-out variable. Please read the subtitles and notes added as normal text in this document. Blocks with darker backgrounds are code chunks, mostly with their outputs. I tried to add #comments within the chunck just...
1362 sym R (10090 sym/24 pcs) 3 tbl
Document
# environment setup to run ordered logit properly options(contrasts = rep("contr.treatment", 2)) This chunk loads all the packages to use #packages for ordered logit library(tidyverse) # package for data cleaning and plotting library(readxl) # package for reading excel file library(broom) # extracting model summary as data frame library(models...
200 sym R (2946 sym/9 pcs) 3 tbl
Document
Updated 2/19/2023 to add new variable age and save the combined data to prepare for further analysis Setting up library(tidyverse) # package for data cleaning and plotting library(readxl) # package for reading excel file library(broom) # extracting model summary as data frame library(modelsummary) # deriving model tables library(scales) # lab...
4334 sym R (9702 sym/27 pcs) 2 img 5 tbl
Document
# environment setup to run ordered logit properly options(contrasts = rep("contr.treatment", 2)) This chunk loads all the packages to use #packages for ordered logit library(tidyverse) # package for data cleaning and plotting library(readxl) # package for reading excel file library(broom) # extracting model summary as data frame library(models...
1711 sym R (9241 sym/27 pcs) 6 tbl
CQC data for Skills for Care
This chunk loads all the packages to use library(tidyverse) # package for data cleaning and plotting Data Preparation First, import the sampled and coded data set #import the raw data file socialcare_raw <- read_csv("data/sample_new_cleaned.csv") Assign orders to the ordinal level variables and name the organizational form in a reader-friendly...
265 sym R (3957 sym/9 pcs)
Document
Setting up #packages for ordered logit library(ordinal) # package for ordinal logit regression library(brant) # brant test for the parallel assumption for ordered logit library(MASS) # models that work with the brant test library(tidyverse) # package for data cleaning and plotting library(readxl) # package for reading excel file library(br...
650 sym R (6261 sym/18 pcs) 2 tbl
Document
Read Me This is the data analysis RMarkdown file for the QCQ data after ISIRC 2022. Mainly changes: incorporating the contol of before and after COVID Please read the subtitles and notes added as normal text in this document. Blocks with darker backgrounds are code chunks, mostly with their outputs. I tried to add #comments within the chunck ...
2626 sym R (8438 sym/25 pcs) 7 tbl