Estimating Constituency-Level Results from the EU Referendum

Assignment Questions/Requirement File

QUESTION B: Estimating Constituency-Level Results from the EU Referendum [25 points]

In the 2016 UK referendum on leaving the EU, the results of the vote were not released for individual electoral constituencies. However, many scholars would like to know why people voted to leave the EU, and how support for leaving differed across constituencies. One previous study has already estimated constituency-level support for ‘leave’ in an authoritative way. Your tasks in this question are (i) to produce estimates of the percentage of voters that voted ‘leave’ in every constituency using multilevel modeling and post-stratification that are as close as possible to this existing set of estimates, as measured by the Mean Absolute Error (MAE), and (ii) to use your results to explain why people voted to leave.

You need to:

  1. Estimate an appropriate logistic multilevel model explaining voting for leave, using the predictors in the dataset.1
  2. Present the multilevel model results and interpret how the variables affect voting to leave the EU (Note: you do notneed to discuss statistical significance).
  3. Produce post-stratified estimates of the percentage of people who voted ‘leave’ in all

631 constituencies in England, Scotland and Wales

  1. Compare your results to the existing estimates using the Mean Absolute Error

You should present and explain your approach and results in a brief report, explaining why your estimates do or not perform well compared to the existing estimates. Note: if you cannot get very close to the existing results, do not worry. Your grade depends on the quality of your analysis, presentation and interpretation, not how close your results are to the existing estimates.

The surveydatais called “e” and is in the file “eusurvey.Rda”. It comes from the 2017 British

Election Study and it contains the following variables:

Variable name Variable description

cname constituency name

ccode constituency code

leave dependent variable: =1 if respondent voted to leave EU, 0 if respondent voted to remain in the EU

votecon =1 if respondent voted Conservative in the 2015 election, 0 otherwise

voteukip =1 if respondent voted UKIP in the 2015 election, 0 otherwise [note: UKIP is the United Kingdom Independence Party, which campaigns in favour of the UK leaving the EU]

female =1 if female, 0 otherwise

age in years

highed =1 if respondent is educated to degree level or higher, 0 otherwise lowed =1 if respondent has no educational qualifications, 0 otherwise c_con15 percent vote for Conservative party in the constituency, 2015 election c_ukip15 percent vote for UKIP in the constituency, 2015 election c_unemployed constituency unemployment rate, percent

c_whitebritish percent of constituency population who are white British

c_deprived percent of constituency population living in poverty

1 As in the practical exercise, use the option “nAGQ=0” to avoid estimation errors

Post-stratification data for the 631 constituencies is called “post” and is contained in the file “eupoststrat.Rda”. Each row contains one particular demographic group in one constituency. In addition to the variables in “e”, it also contains these variables:

Variable name Variable description

c_count Number of people in the demographic group

c_total Number of people in the constituency

percent percent of constituency represented by the demographic group

Finally, the comparison data containing the existing estimates by constituency is called “est” and is in the file “existing_estimates.Rda”. In addition to the constituency name and code, it contains the existing estimate of the leave vote share for each constituency (called estimate).


This part of the final essay contains one question. It is worth 40 points. Again, 5 points are reserved for clarity of presentation, especially tables and figures. See Q+A session 5 for guidelines on presentation.

The question requires you to write a brief report. It is up to you how you structure the report, but it is advisable to keep introductory material to a minimum, given the word limit. Your report should discuss your methods, your results and the conclusions that you draw from them.

QUESTION C: Describing and Classifying Tweets [40 points]

Many companies monitor social media posts in order to gauge how customers feel about their company and their competitors. For this question, imagine that you have been hired as a consultant by one of the major American airline companies to analyse tweets about airlines. They want to find out how people talk about airlines on Twitter, and then build a predictive tool that can classify tweets in future into ‘negative’ or ‘positive’ sentiment toward airlines, to help them respond better to their customers in real time. They have provided you with a dataset of 11,541 tweets about airlines that have been labelled as ‘negative’ or ‘positive’ by their staff. The dataset also identifies which airline each tweet is talking about.

Your task is to prepare a brief report that describes the tweets, and recommends a classification method for future tweets. You need to:

  1. Use appropriate tools to describe the tweets. In particular, what words are associated with negative or positive sentiment? How does word usage differ across the different airlines?
  2. Use your analysis from i) to build a short dictionary of negative and positive words describing airlines, then use it to classify tweets as ‘negative’ if they contain more negative than positive language, and ‘positive’ otherwise [code for creating your own dictionary is provided below]
  3. Use the lasso logit method to classify the tweets into ‘negative’ and ‘positive’
  4. Compare the performance of your classifiers from ii) and iii), and use this analysis to decide which one would be the better classifier for the company to use for future tweets

The dataset for this question is called “tweets” and is contained in the file “tweets.Rda”. It contains

the following variables:

Variable name Variable description

text The text of each tweet

sentiment Labeled sentiment of each tweet: 1=negative, 0=positive

airline The airline company featured in the tweet: United, JetBlue, American

Airlines, US Airways, Virgin America or Southwest

You should first create a corpus of tweets using the following code:

tweetCorpus <- corpus(tweets$text, docvars = tweets)


  • Your dictionary should contain a minimum of 5 words and a maximum of 15 words in each category
  • You are not expected to exhaustively compare the performance of different dictionaries. Instead, simply choose one dictionary based on your analysis from i), explaining how you chose the words.

Code for creating a dictionary:

You can create a dictionary called “mydict” in R that contains two categories (‘negative’ and ‘positive’) using the following code:

neg.words <- c() pos.words <- c()

mydict <- dictionary(list(negative = neg.words,

positive = pos.words))

You need to insert your chosen sets of negative and positive words in ‘neg.words’ and ‘pos.words’. This dictionary can then be used with quanteda in exactly the same way as any of the existing built- in dictionaries.

Struggling with Estimating Constituency-Level Results from the EU Referendum Assignment? safe, fast, plag free solution. Order Now!

Universal Assignment (February 1, 2023) Estimating Constituency-Level Results from the EU Referendum. Retrieved from
"Estimating Constituency-Level Results from the EU Referendum." Universal Assignment - February 1, 2023,
Universal Assignment May 6, 2022 Estimating Constituency-Level Results from the EU Referendum., viewed February 1, 2023,<>
Universal Assignment - Estimating Constituency-Level Results from the EU Referendum. [Internet]. [Accessed February 1, 2023]. Available from:
"Estimating Constituency-Level Results from the EU Referendum." Universal Assignment - Accessed February 1, 2023.
"Estimating Constituency-Level Results from the EU Referendum." Universal Assignment [Online]. Available: [Accessed: February 1, 2023]

Please note along with our service, we will provide you with the following deliverables:

Please do not hesitate to put forward any queries regarding the service provision.

We look forward to having you on board with us.

Get 90%* Discount on Assignment Help

Most Frequent Questions & Answers

Universal Assignment Services is the best place to get help in your all kind of assignment help. We have 172+ experts available, who can help you to get HD+ grades. We also provide Free Plag report, Free Revisions,Best Price in the industry guaranteed.

We provide all kinds of assignmednt help, Report writing, Essay Writing, Dissertations, Thesis writing, Research Proposal, Research Report, Home work help, Question Answers help, Case studies, mathematical and Statistical tasks, Website development, Android application, Resume/CV writing, SOP(Statement of Purpose) Writing, Blog/Article, Poster making and so on.

We are available round the clock, 24X7, 365 days. You can appach us to our Whatsapp number +1 (613)778 8542 or email to . We provide Free revision policy, if you need and revisions to be done on the task, we will do the same for you as soon as possible.

We provide services mainly to all major institutes and Universities in Australia, Canada, China, Malaysia, India, South Africa, New Zealand, Singapore, the United Arab Emirates, the United Kingdom, and the United States.

We provide lucrative discounts from 28% to 70% as per the wordcount, Technicality, Deadline and the number of your previous assignments done with us.

After your assignment request our team will check and update you the best suitable service for you alongwith the charges for the task. After confirmation and payment team will start the work and provide the task as per the deadline.

Yes, we will provide Plagirism free task and a free turnitin report along with the task without any extra cost.

No, if the main requirement is same, you don’t have to pay any additional amount. But it there is a additional requirement, then you have to pay the balance amount in order to get the revised solution.

The Fees are as minimum as $10 per page(1 page=250 words) and in case of a big task, we provide huge discounts.

We accept all the major Credit and Debit Cards for the payment. We do accept Paypal also.

Popular Assignments

Question 10 – REPORTS

Complete the table below, by listing three types of financial reports that are produced in your workplace. Type of Report Content of Report Frequently of Report                  

Read More »


Work through the following table and indicate whether each record should be kept or destroyed. Detail the reason for your answer and how long the record should be kept (for example, legislation requirement – retain for five years). Record Keep – Yes or No Reasons Suppliers Invoices     Employee

Read More »


Using the following information, complete the Business Activity Statement, you may need to refer to the ATO website to help you complete. Download and complete the Business Activity Statement (BAS). It can be found separately on the course page.

Read More »


AVERAGE Activity 5.1 – Break-even Answers A. B.   Manage 8 Buildings Manage 10 Buildings Manage 15 Buildings Manage 20 Buildings Manage 25 Buildings Income           Less Variable Costs           Less Fixed Costs           Total Cost    

Read More »

Question 3 – Depreciation

You are the Licensee-In-Charge of Hope & Murphy Real Estate and wish to purchase computers for your new office in the CBD. Using the information below: Office fit out                      $120,000 Assets effective Life          4 years Purchase Date                  1st July STRAIGHT-LINE METHOD CALCULATION Years 1 to 4 – JOURNAL ENTRIES DEPRECIATION                                               

Read More »


Please note: Editing has been restricted in this document. From the information provided below, complete the following table: Account Name Classification Profit & Loss or Balance Sheet Amount Pay Superannuation Expense Profit & Loss $117,325 Pay Mobile Phone     $7,500 Pay Office Rent     $65,000 Land & Buildings

Read More »


Worlducation is a social startup that manufactures tablet computers for primary school students. They not only focus on the hardware, but they also have a competitive team creating software, content and activities to better engage and educate the students. Worlducation aims to change the way children learn at school by

Read More »

BSBOPS505 Manage Organisational Customer Service

BSBOPS505 MANAGE ORGANISATIONAL CUSTOMER SERVICE STUDENTASSESSMENT TASKS QIBA Pty Ltd | CRICOS Provider Code: 01515J | RTO Code: 5304 | ABN: 35 071 667 108  Student Assessment TasksBSBOPS505 Manage Organisational Customer Service     BSBOPS505 Contents Introduction  4 Assessment Task 1: Knowledge questions  5 Assessment Task 1: Checklist 9 Assessment Task 2:

Read More »


BSBOPS505 MANAGE ORGANISATIONAL CUSTOMER SERVICE STUDENT VERSION PROJECT PORTFOLIO Contents Student declaration. 3 Section 1: Establish customer service requirements. 4 Section 2: Deliver quality customer service. 9 Section 3: Monitor and assess customer service. 13 STUDENT PROJECT PORTFOLIO COVER SHEET Student declaration This declaration must be completed in full by

Read More »

GBL Final Take Home Exam

The Trans-Pacific Partnership (TPP) was meant to be a ground-breaking new agreement by placing 12 economies under a common set of economic norms and regulations. After the US withdrew from the TPP, the remaining 11 signatories continued talks and which led to the Comprehensive and Progressive Agreement for Trans Pacific

Read More »


You will be creating a Portfolio record specifically focused on mental health assessments and pharmacological interventions. This is designed to assist in the development of theoretical and clinical skills in mental health, with a direct connection to your clinical practice as a registered student nurse. The evidence record provides you with the opportunity to showcase your learning

Read More »

NRSG375 Clinical Leadership

Assessment Task 3: Written assignment (45%) Discuss and analyse in more detail 2 of the discussion posts that you submitted for assessment task (AT) 2 and use contemporary literature for support. For the 2 posts that you choose, you are to discuss and analyse professional leadership in nursing in further

Read More »

Portfolio record specifically focused on mental health assessments

PORTFOLIO ASSESSMENT 3 You will be creating a Portfolio record specifically focused on mental health assessments and pharmacological interventions. This is designed to assist in the development of theoretical and clinical skills in mental health, with a direct connection to your clinical practice as a registered student nurse. The evidence record provides you with the opportunity to

Read More »

The aetiology of mrs simpsons pain Assignment Help

Length: 1800 words Group Assessment: No Submission method options: EASTS (online) TASK back to top This assessment task requires you to analyse the case study provided below.  In the case study,  a patient is experiencing a range of health challenges. You are required to read the case study carefully and complete the following

Read More »

The Dangers of a Single Story Assignment Help

Narrative Essay Instructions Chimamanda Ngozi Adichie’s TED Talk titled “The Dangers of a Single Story” recounts instances where one perspective can lead to assumptions, conclusions, and/or decisions that may incomplete or lead to misunderstandings (e.g., think about the story of Fide or how Adichie’s roommate was shocked to learn how

Read More »

LAW1101 21F – Fundamentals of Law

LAW1101 21F – Fundamentals of Law Assignment 1:  Legislative interpretation Due date: Wednesday, November 10, 2021 at 3:00pm Instructions: You are to read two excerpts from legislation and then answer questions about each of them.  The questions are weighted differently and the marks for each question are included.  There are

Read More »

A Work Based Quality Improvement Project

Project Title: Impact of educational intervention on nurses knowledge of hand hygiene in aged care setting: A Work Based Quality Improvement Project Executive Summary: (100- 150 words) Background: Hand hygiene is one of the most important strategies for preventing infections in healthcare settings and healthcare-associated infections, which affect hundreds of

Read More »

Community Health and Development

Part A :  Assessment event 3(a) details Assessment Task 3(a): Apply a problem-solving approach to a social issue in your local community by using the Community Health and Development (2017b) 10-point process. Word count: 2000 Weighting: 35% It is recommended that you: Criteria Fail <17.5 Pass 18- Credit 20 – 22 Distinction 23– 25 High Distinction 

Read More »


In this assignment, you are asked to pick ONE of the following case studies and answer a series of questions about the particular health situation that is described. In each case study, you are asked to examine the significance of the issue for Australia, explore the condition from a very broad policy

Read More »


FINAL EXAM – SPRING SESSION 2021 School of Law EXAM INSTRUCTIONS Read all the information below and follow any instructions carefully before proceeding. Clearly indicate which question you are answering.   UNIT NAME: Building Law UNIT NUMBER: 200292 NUMBER OF QUESTIONS: 4 VALUE OF QUESTIONS: Question 1 (10 marks) Question

Read More »

MGMT8055 Brief Case Writeup Bauing Construction Holding Group

Why do you think Bauing Indonesia was so successful? Suggestions government, cost, and competitive Main proof-points The first factor behind this decision was increasing competition in the building and decoration industry in China. In 2016, most public companies in this industry in China experienced decreasing gross margins due to increased

Read More »

MGMT8055 Case Writeup Xiaomi

After recognising numerous global opportunities, Xiaomi in Beijing charted its overseas market strategy in 2013. However, opportunities came with challenges, and during the internationalization process, Xiaomi encountered many problems. After three years of hard work, Xiaomi had gained more experience than profits. Compared with Xiaomi’s domestic success, Xiaomi’s internationalization strategy

Read More »

LNG11120 Developing Intercultural Competence in the Workplace

Edinburgh Napier University Academic Year 2021-22 Trimester 1 Assessment Brief 1.  Module number   LNG11120 2.  Module title   Developing Intercultural Competence in the Workplace 3.  Module leader   4.  Assessment Coursework 1: Group report – an ‘intercultural training’ plan (see Section 10 below for more details) 5.  Weighting  

Read More »

Knowledge, Individual, and Society

Essay 1 Assignment To be submitted via Turnitin on LMS. Assignment: Write a 1,200 word (not including references or footnotes) essay answering ONE of the following questions: 1) What is the Gettier problem and can we solve it? Address this question by carefully explaining and evaluating 1-2 responses to the

Read More »

9014 NPD New Product Design

Summary In the 2000-word written report, students are required to develop some specific aspects of the initial three phases of a new product (service or idea) development process. Students are expected to apply the relevant design thinking tools and ideas in this assessment. Referencing is Australian Harvard (AGPS) and outlined

Read More »

Can't Find Your Assignment?

Open chat
Free Assistance
Universal Assignment
Hello 👋
How can we help you?