Data analysis of the ASPC Paper "Social Health Insurance Inequalities in China" – RStudio Scripts

#RStudio setting: # Import the data # Select variables # Rename variables # Medcover, medical cost covered by the insurance, percent level;F041 = actual medical cost, F042 = actual medical cover amount; # Select variables and change the property # Make the data-frames ready to use # Analyses- Multilevel-linear regression and multilevel-logistic regression models

Comparative Data Visualisation in R: an Example of Building a Data Frame from the Ground Up

When we do data analysis, we often deal with existed data-sets from an official database or survey. That is because R is a powerful tool allowing us to import a wide range of data formats, including excel, SPSS, Stata and other formats. In most occasions, we do not need to create a data frame ourselves. … Continue reading Comparative Data Visualisation in R: an Example of Building a Data Frame from the Ground Up

Dummy variables in R – an example for logistic regression modeling

Doing social research in a quantitative way means we have to fix our data with our expected theories. This is a very different approach from qualitative research, as the grounded theory is not very likely to be purely constructed by numbers. Thus, we sometimes need to fix our data in order to meet our theoretical … Continue reading Dummy variables in R – an example for logistic regression modeling