Introduction

I chose these three variables as this provides a multifaceted approach to looking at the Scottish Independence referendum as personal, economic and political motivations are different angles to approaching this divisive issue. My hypothesis proposes that Scottish independence is a convergence, if not a culmination, of the cultural identity of Scottish people, the economic proposition of the removing the tax burden from impoverished parts of England, Wale and Northern Ireland, and future of Scotland rejoining the EU. ### Hypothesis Ho = the odds ratio of a respondent voting ‘yes’ on Scottish independence (RefvoteDum) is not related to respondent’s strength of Scottish identity (ScotID_NoNa), view on taxation (TaxSpend_NoNa) or view on to EU (ECPolicy_NoNa) Ha = The odds ratio on a respondent voting ’yes on Scottish independence (RefvoteDum) increase as respondents report a stronger Scottish identity (ScotID_NoNa), support reducing taxes (TaxSpend_NoNa) and invovlement with the EU (ECPolicy_NaNa)

Methods

After cleansing the data into just the 4 variables (ScotID_No_Na, Taxspend_NoNa, ECPolicy_NoNa, and RefvoteDum), I ran an initial generalized linear model comparing RefvoteDum against the other 3 variables. After that I ran odds ratios on each specific variable and then I ran individualized probability test on the variables with for the extremes of variables. Lastly, I made predicted probability plots with 95% confidence intervals for the 3 different variables as factors against voting.

Logit Model

The model shows that the variables are statistically significant, particularity, Scottish Identity and Tax as they has p-values < 0.001 and p-value < 0.05, respectively. Meanwhile respondent’s opinion on the EU was less significant with a p = 0.0819.

## 
## Call:
## glm(formula = RefvoteDum ~ scot + tax + eu, family = binomial(link = "logit"), 
##     data = data2)
## 
## Coefficients:
##             Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -3.44103    0.45072  -7.634 2.27e-14 ***
## scot         0.31449    0.04873   6.454 1.09e-10 ***
## tax          0.27324    0.12304   2.221   0.0264 *  
## eu           0.12524    0.07199   1.740   0.0819 .  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for binomial family taken to be 1)
## 
##     Null deviance: 1201.9  on 941  degrees of freedom
## Residual deviance: 1143.2  on 938  degrees of freedom
## AIC: 1151.2
## 
## Number of Fisher Scoring iterations: 4
## 
## Call:
## glm(formula = RefvoteDum ~ scot + tax + eu, family = binomial(link = "probit"), 
##     data = data2, na.action = na.omit)
## 
## Coefficients:
##             Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -2.02995    0.26030  -7.798 6.27e-15 ***
## scot         0.18194    0.02758   6.597 4.20e-11 ***
## tax          0.16393    0.07407   2.213   0.0269 *  
## eu           0.07427    0.04385   1.694   0.0903 .  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for binomial family taken to be 1)
## 
##     Null deviance: 1201.9  on 941  degrees of freedom
## Residual deviance: 1144.2  on 938  degrees of freedom
## AIC: 1152.2
## 
## Number of Fisher Scoring iterations: 4

This was an appropriate model as its test a binary (yes/no) variable against categorical predictors which matches the set-up of a binary logistic regression. Furthermore, it had a large sample, converged in only 4 iterations and had an AIC score of 1151.2 and log- likelihood of -571.6184. The model correctly predicted 67.83% of the observations.

## 
## Call:
## glm(formula = RefvoteDum ~ scot + tax + eu, family = binomial(link = "logit"), 
##     data = dataEval)
## 
## Coefficients:
##             Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -3.44103    0.45072  -7.634 2.27e-14 ***
## scot         0.31449    0.04873   6.454 1.09e-10 ***
## tax          0.27324    0.12304   2.221   0.0264 *  
## eu           0.12524    0.07199   1.740   0.0819 .  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for binomial family taken to be 1)
## 
##     Null deviance: 1201.9  on 941  degrees of freedom
## Residual deviance: 1143.2  on 938  degrees of freedom
## AIC: 1151.2
## 
## Number of Fisher Scoring iterations: 4
## correct
##        0        1 
## 32.16561 67.83439
## 'log Lik.' -571.6184 (df=4)

Probit

## 
## Call:
## glm(formula = RefvoteDum ~ scot + tax + eu, family = binomial(link = "probit"), 
##     data = dataEval)
## 
## Coefficients:
##             Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -2.02995    0.26030  -7.798 6.27e-15 ***
## scot         0.18194    0.02758   6.597 4.20e-11 ***
## tax          0.16393    0.07407   2.213   0.0269 *  
## eu           0.07427    0.04385   1.694   0.0903 .  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for binomial family taken to be 1)
## 
##     Null deviance: 1201.9  on 941  degrees of freedom
## Residual deviance: 1144.2  on 938  degrees of freedom
## AIC: 1152.2
## 
## Number of Fisher Scoring iterations: 4
## 'log Lik.' -572.0921 (df=4)
## correct
##        0        1 
## 32.16561 67.83439

Using probit instead of logit yields nearly the same score and predictability on all accounts. Because of this, I stuck to logit due to it being easier to interpret coefficient using logit over probit.

Results

Odds Ratios

##     scot      tax       eu 
## 1.369557 1.314210 1.133425
## [1] 37
## [1] 31
## [1] 13

All 3 variables had positive correlation in which for every unit-increase, the odds of voting increased by 37% (Scottish identity), 31% (decreasing taxes) and 13% (invovlement in the EU).

Individual Predicted Probability

Predicted probability of a respondent who feels strongly Scottish, wants to decrease taxes and wants to be in a single European government

newdataIPP= data.frame(scot=7, tax=3, eu=5)
predict(model1, newdataIPP, type="response")
##         1 
## 0.5513943

For this respondent, there is a 55.13% chance of them saying ‘yes’ to the Scottish Independent Referendum # # # Predicted probability for a respondent who does not feels strongly Scottish, wants to increase taxes and wants to leave the EU

newdataIPP2= data.frame(scot=1, tax=1, eu=1)
predict(model1, newdataIPP2, type="response")
##          1 
## 0.06133745

For this respondent, there is a 6.13% chance of them saying ‘yes’ to the Scottish Independent Referendum # # # # Results ## Probability Plot 1- Probability of Voting Yes vs. Scottish Identity by Opinion of Taxation

## 
## Call:
## glm(formula = RefvoteDum ~ scot + tax_fac + eu, family = binomial(link = "logit"), 
##     data = data2)
## 
## Coefficients:
##             Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -2.45916    0.44260  -5.556 2.76e-08 ***
## scot         0.31579    0.04887   6.462 1.03e-10 ***
## tax_fac2    -0.62445    0.32342  -1.931   0.0535 .  
## tax_fac3    -0.11264    0.31998  -0.352   0.7248    
## eu           0.13053    0.07223   1.807   0.0707 .  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for binomial family taken to be 1)
## 
##     Null deviance: 1201.9  on 941  degrees of freedom
## Residual deviance: 1134.9  on 937  degrees of freedom
## AIC: 1144.9
## 
## Number of Fisher Scoring iterations: 4
##         eu     scot tax_fac
## 1 2.278132 5.544586       1
## 2 2.278132 5.544586       2
## 3 2.278132 5.544586       3
##         eu     scot tax_fac     voteP
## 1 2.278132 5.544586       1 0.3987021
## 2 2.278132 5.544586       2 0.2620526
## 3 2.278132 5.544586       3 0.3720311

This plot shows the probability of voting yes as a respondent’s strength in Scottish identity increase, shown through the factor of their opinion on taxation. Already we see a strong correlation between respondent voting ‘yes’, the stronger they identify as Scottish. In addition, this also visual correlation between those who want to decrease taxes being more likely to vote ‘yes’. However, those who want to increase the taxation also appear more likely to vote ‘yes’ than those who wish to keep taxation the same.This goes against the alternative hypothesis which stated that they would be less likely. The plot also shows more variance in those who wish to decrease taxation, as indicated by the wider spread of red outlining on the plot. # # ## Probability Plot - probability of Voting Yes vs. Support for the EU by Scottish Identity

This plot shows the probability of voting yes as a respondent’s support for the EU increase, shown through the factor of their strength in Scottish identity. As previously stated, there is a clear trend of the Scottish identity being a significant factor as seen by the district gaps in the 7 levels. However, the weak slopes show that their opinions of staying or leaving the EU had only slightly positive correlation. There is more variance, as seen by the wide and overlapping outlines on people’s opinions about the EU. # # ## Probability Plot - Probability of Voting Yes vs. Opinion on Taxation by Support for EU

This plot shows the probability of voting yes as a respondent’s support of taxation increases, shown through the factor of their support for involvement in the EU. The slopes show that they is strong correlation between opinions on taxation and probability of voting ‘yes’. One key points of the plot, unlike the other two, is that of lowest line of best fit has a lowest y-intercept at approximately 0.2. Meanwhile, the lowest y-intercepts for the other two plots are approximately 0.1. However, it does display wider gaps between respondent’s levels of support for the EU, better highlighting its statistical significance. Nonetheless, the large variance shown does make the data less reliable. # # # Conclusion Overall, my hypothesis overstated the importance of EU as a factor, shown visually in the plots and statistically by the p-values. The strongest variable was undoubtedly a respondent’s strength in Scottish identity which can possibly be explained by cultural and social aspects of independence driving this movement. Lastly, taxation, while relevant, was more so related to respondent’s EU positions which makes sense as both variables have political and economic repercussions. It would be interesting to divulge further into the economic side of the referendum voting by removing Scottish Identity as variable and replacing it with one income related. The model was somewhat hindered by my own choices in variables as well as any technical expertise I’m lacking to code a better model.

Bibliography

Fox, J. and Weisberg, S. (2019). An R Companion to Applied Regression, Third edition. Sage, Thousand Oaks CA. URL: https://socialsciences.mcmaster.ca/jfox/Books/Companion/

R Core Team (2022). foreign: Read Data Stored by ‘Minitab’, ‘S’, ‘SAS’, ‘SPSS’, ‘Stata’, ‘Systat’, ‘Weka’, ‘dBase’, … PARADIGM-R is a flexible approach for testing theory-motivated parsimonious alternatives in SEM and related models. R package version 0.4.1. https://CRAN.R-project.org/package=foreign

Wickham et al., (2019). Welcome to the tidyverse. Journal of Open Source Software, 4(43), 1686, https://doi.org/10.21105/joss.01686

Wickham, H. (2016). ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York. ISBN 978-3-319-24277-4, https://ggplot2.tidyverse.org.

Wickham, H. (2011). The Split-Apply-Combine Strategy for Data Analysis. Journal of Statistical Software, 40(1), 1-29. URL http://www.jstatsoft.org/v40/i01/.