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).

PARTII

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)

Hereissomeadviceforpartii):

  • 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 (August 31, 2025) Estimating Constituency-Level Results from the EU Referendum. Retrieved from https://universalassignment.com/estimating-constituency-level-results-from-the-eu-referendum/.
"Estimating Constituency-Level Results from the EU Referendum." Universal Assignment - August 31, 2025, https://universalassignment.com/estimating-constituency-level-results-from-the-eu-referendum/
Universal Assignment May 6, 2022 Estimating Constituency-Level Results from the EU Referendum., viewed August 31, 2025,<https://universalassignment.com/estimating-constituency-level-results-from-the-eu-referendum/>
Universal Assignment - Estimating Constituency-Level Results from the EU Referendum. [Internet]. [Accessed August 31, 2025]. Available from: https://universalassignment.com/estimating-constituency-level-results-from-the-eu-referendum/
"Estimating Constituency-Level Results from the EU Referendum." Universal Assignment - Accessed August 31, 2025. https://universalassignment.com/estimating-constituency-level-results-from-the-eu-referendum/
"Estimating Constituency-Level Results from the EU Referendum." Universal Assignment [Online]. Available: https://universalassignment.com/estimating-constituency-level-results-from-the-eu-referendum/. [Accessed: August 31, 2025]

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.

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 info@universalassignment.com . 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

Assignment Help in Rowville, Melbourne

Introduction Rowville is a well-established suburb located around 27 km south-east of Melbourne’s CBD. Known for its family-friendly vibe, spacious parks like Stud Park Reserve, and excellent community facilities, Rowville offers students a balanced mix of suburban comfort and easy access to education hubs. With major roads such as the

Read More »

Assignment Help in Rosanna, Melbourne

Introduction Rosanna is a leafy and family-friendly suburb located about 12 km north-east of Melbourne’s CBD. Known for its green streets, Rosanna Parklands, and strong community atmosphere, it provides students with a calm environment while staying close to the city. The suburb is well connected by Rosanna Station and major

Read More »

Assignment Help in Ripponlea, Melbourne

Introduction Ripponlea is a charming inner-city suburb located just 8 km south-east of Melbourne’s CBD. Famous for the heritage-listed Rippon Lea Estate and its leafy residential streets, Ripponlea offers students a mix of cultural richness and convenient city living. With easy tram and train connections, students can travel effortlessly to

Read More »

Assignment Help in Ringwood North, Melbourne

Introduction Ringwood North is a leafy and family-friendly suburb located about 28 km east of Melbourne’s CBD. Known for its green streets, parks, and welcoming community, Ringwood North offers a peaceful residential lifestyle while remaining close to Melbourne’s educational and business hubs. With strong transport connections via nearby Ringwood Station

Read More »

Assignment Help in Ringwood East, Melbourne

Introduction Ringwood East is a peaceful residential suburb located around 25 km east of Melbourne’s CBD. Known for its leafy streets, friendly community, and excellent access to parks and schools, Ringwood East is ideal for students seeking a quieter lifestyle while still being close to Melbourne’s educational hubs. With its

Read More »

Assignment Help in Ringwood, Melbourne

Introduction Ringwood is a bustling suburb located around 25 km east of Melbourne’s CBD. Known for its leafy residential streets, modern shopping centres like Eastland, and easy access to the scenic Dandenong Ranges, Ringwood offers a great lifestyle for students and professionals. The suburb is well connected via Ringwood Station

Read More »

Assignment Help in Richmond, Melbourne

Introduction Richmond is one of Melbourne’s most iconic inner-city suburbs, located just 3 km east of the CBD. Famous for its lively café culture, bustling shopping streets like Bridge Road, and its thriving arts and sports scene, Richmond blends lifestyle and convenience perfectly. With excellent tram and train connections, students

Read More »

Assignment Help in Reservoir, Melbourne

Assignment Help in Reservoir, MelbourneIntroductionReservoir is a thriving suburb located just 12 kilometres north of Melbourne’s CBD. Known for its multicultural community, leafy parks, and welcoming neighbourhoods, Reservoir strikes the perfect balance between suburban comfort and city convenience. It is well-connected through trains, buses, and trams, making travel easy for

Read More »

Assignment Help in Parkville – Universal Assignment

Parkville, located just 3 km north of Melbourne CBD, is one of Melbourne’s most prestigious academic hubs. It is home to The University of Melbourne, Monash University (Pharmacy campus), and major research institutes like the Walter and Eliza Hall Institute and the Royal Melbourne Hospital precinct. With such a concentration

Read More »

Assignment Help in Oakleigh East – Universal Assignment

Oakleigh East, located about 17 km south-east of Melbourne CBD, is a peaceful and residential suburb in the City of Monash, known for its family-friendly environment and convenient access to shopping and educational facilities. With nearby institutions like Monash University, Holmesglen Institute, and TAFE Victoria, many students living in Oakleigh

Read More »

Assignment Help in Preston – Universal Assignment

Preston, located about 9 km north of Melbourne’s CBD, is a thriving multicultural suburb that attracts many university and TAFE students. With the presence of Melbourne Polytechnic (Preston Campus) and close proximity to La Trobe University (Bundoora campus) and RMIT University, Preston has a large student population. While the suburb

Read More »

Assignment Help in Point Cook – Universal Assignment

Point Cook, located around 25 km southwest of Melbourne’s CBD, is a fast-growing residential suburb in the City of Wyndham. Known for its modern housing estates, coastal beauty, and cultural diversity, Point Cook is also home to many university and TAFE students. With Victoria University, RMIT, Deakin University, and the

Read More »

Assignment Help in Pascoe Vale South – Universal Assignment

Pascoe Vale South, situated about 9 km north of Melbourne’s CBD, is a quiet, family-friendly suburb within the City of Merri-bek. Known for its leafy streets, community parks, and excellent schools, the suburb is also home to many university students due to its proximity to RMIT University, La Trobe University,

Read More »

Assignment Help in Pascoe Vale – Universal Assignment

Pascoe Vale, located just 10 km north of Melbourne’s CBD, is a thriving suburb in the City of Merri-bek. It is a popular residential area for students due to its proximity to leading universities such as RMIT University, La Trobe University, and the University of Melbourne. With excellent transport links

Read More »

Assignment Help in Prahran – Universal Assignment

Prahran, located just 5 km southeast of Melbourne’s CBD, is one of the city’s most vibrant inner suburbs. Known for its trendy cafes, boutique shopping on Chapel Street, and buzzing nightlife, Prahran also has a large student population. Its close proximity to Monash University (Caulfield campus), Swinburne University of Technology,

Read More »

Assignment Help in Parkdale – Universal Assignment

Parkdale, located around 23 km south-east of Melbourne CBD, is a beautiful beachside suburb in the City of Kingston. Known for its relaxed lifestyle, coastal charm, and proximity to Monash University, Holmesglen Institute, and Deakin University, Parkdale is home to many students balancing academic studies with personal and professional commitments.

Read More »

Assignment Help in Oakleigh South – Universal Assignment

Oakleigh South, located about 20 km south-east of Melbourne CBD, is a suburban area in the City of Kingston, known for its family-friendly environment, parks, and convenient access to educational facilities. With nearby institutions like Monash University, Holmesglen Institute, and TAFE campuses, students in Oakleigh South often require professional assignment

Read More »

Assignment Help in Ormond – Universal Assignment

Ormond, located about 12 km south-east of Melbourne CBD, is a well-connected residential suburb in the City of Glen Eira. Known for its proximity to Monash University Caulfield Campus, Holmesglen Institute, and local schools, Ormond attracts both local and international students. With increasing academic demands, many students search for assignment

Read More »

Assignment Help in Oakleigh – Universal Assignment

Oakleigh, located about 14 km south-east of Melbourne CBD, is a lively suburb in the City of Monash, known for its multicultural community, shopping precincts, and proximity to educational institutions. With access to Monash University, Holmesglen Institute, and nearby TAFE campuses, many students in Oakleigh seek professional assignment help in

Read More »

Assignment Help in Oak Park – Universal Assignment

Oak Park, located about 12 km north of Melbourne CBD, is a suburban area in the City of Moreland, known for its peaceful residential streets, schools, and local amenities. With access to nearby institutions such as RMIT University, University of Melbourne, and TAFE campuses, many students in Oak Park seek

Read More »

Assignment Help in Nunawading – Universal Assignment

Nunawading, located about 20 km east of Melbourne CBD, is a thriving suburb in the City of Whitehorse, known for its leafy streets, shopping centres, and proximity to educational institutions. With access to Deakin University, Box Hill Institute, and nearby TAFE campuses, students in Nunawading often seek professional assignment help

Read More »

Assignment Help in Notting Hill – Universal Assignment

Notting Hill, located about 22 km south-east of Melbourne CBD, is a residential suburb in the City of Monash, known for its peaceful environment and proximity to shopping centres, schools, and educational institutes. With access to nearby campuses like Monash University, Holmesglen Institute, and TAFE Victoria, many students in Notting

Read More »

Assignment Help in Northcote – Universal Assignment

Northcote, located about 7 km north-east of Melbourne CBD, is a vibrant suburb known for its multicultural community, trendy cafes, and lively student population. With easy access to RMIT University, University of Melbourne, and nearby TAFE institutes, Northcote has become a popular area for students pursuing higher education. Many students

Read More »

Assignment Help in North Melbourne – Universal Assignment

North Melbourne, located just 2 km north-west of Melbourne CBD, is a bustling inner-city suburb known for its historic architecture, multicultural community, and proximity to major educational institutions. With easy access to RMIT University, University of Melbourne, and nearby TAFE campuses, students in North Melbourne often require professional assignment help

Read More »

Assignment Help in Noble Park – Universal Assignment

Noble Park, located about 25 km south-east of Melbourne CBD, is a thriving suburb in the City of Greater Dandenong. Known for its multicultural community, shopping centres, and schools, Noble Park is home to a growing student population. With access to nearby institutions like Monash University, Chisholm Institute, and TAFE

Read More »

Assignment Help in Niddrie – Universal Assignment

Niddrie, located about 10 km north-west of Melbourne CBD, is a bustling suburb known for its residential communities, shopping centres, and schools. With easy access to Victoria University, RMIT, and nearby TAFE institutes, Niddrie is home to many students who often seek assignment help in Niddrie to manage academic workloads

Read More »

Assignment Help in Narre Warren South – Universal Assignment

Narre Warren South, located 38 km south-east of Melbourne CBD, is a growing suburb in the City of Casey. Known for its residential communities, schools, and green spaces, Narre Warren South is home to many students who pursue higher education at nearby institutions such as Monash University Clayton Campus, Federation

Read More »

Assignment Help in Narre Warren North – Universal Assignment

Narre Warren North, located about 36 km south-east of Melbourne CBD, is a fast-growing suburb in the City of Casey. Known for its family-friendly community, excellent schools, and green spaces, the suburb also attracts students pursuing higher education in Melbourne. With access to nearby institutions like Monash University Clayton Campus,

Read More »

Assignment Help in Narre Warren – Universal Assignment

Narre Warren, located about 38 km south-east of Melbourne CBD, is one of the fastest-growing suburbs in the City of Casey. Known for Fountain Gate Shopping Centre, family-friendly communities, and excellent schools, Narre Warren also attracts a large number of students pursuing higher education in Melbourne and surrounding areas. With

Read More »

Assignment Help in Mulgrave – Universal Assignment

Mulgrave, located 21 km south-east of Melbourne CBD, is a vibrant suburb with a mix of residential, business, and educational opportunities. With close access to Monash University Clayton Campus, Holmesglen Institute, and nearby TAFE colleges, Mulgrave attracts a large number of students. Many students here face challenges with assignments and

Read More »

Can't Find Your Assignment?