[SOLVED] 程序代写代做代考 Homework 2

30 $

File Name: 程序代写代做代考_Homework_2.zip
File Size: 329.7 KB

SKU: 5084536736 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


Homework 2

DebatingwithQuanteda

Inthesecondproblemset,youwillstudytheUSpresidentialdebatesusingthe
quantedapackage.SinceRisacollaborativesoftware,youwillstartwithafew
snippetsofcodetocleanthedebatefragments,donebylastquarterQTA
students.

1) Installthequantedapackageifyouhavenotdoneso.
[Aquickintroductionintoquantedaisprovidedhere:https://cran.r-
project.org/web/packages/quanteda/vignettes/quickstart.html]

2) Usethestartingcodetoreadthepresidentialdebateobject.

3) AtextfragmentintheDEBATEScorpusobjectisaresponsetoaquestion
orarebuttalandcanbethoughtofasaself-containeddocument.Explore
towhatextenttheHeap’slawappliesforTrumpvsClinton.Isitstronger
orweakerforeitherspeaker?(tip:seethecodeusedinclass).

4) Analyzetheevolutionoflexicaldiversityacrossthecandidatesbeforeand
aftertheybecametheirparties’respectivecandidates?[tip:theRscript
providedhasaprimaryindicatorvariableforidentifyingthefragments
thatcamefromnon-primarydebates]

5) Afterexploring4),doyouhaveahypothesiswhypatternsmaybemore
orlesspronouncedbetweenTrumpvsClinton?Howcouldyoutestthis?

6) Removestopwordsfromthecorpus.

7) Usingthetokenizefunction,constructseparatebi-gramsfortheHilary
Clinton/DonaldTrumppartsofthecorpus.Tabulatethetenmost
frequentbigramsbyspeaker.Aretheseinformative?Whyorwhynot?

8) Usingthecollocationfunctioninquanteda(whichtakesatokenizeobject
asargument),constructcollocationsbasedonChi2testforeachspeaker.
OrderbyChi2teststatistic.Whatdoyounoticeorwhatisstrange?Can
youprovideaformalreasoningrelatingtotheChi2teststatisticformula?

9) Usingthecodeprovidedinthelectures,identifycollocationsthatare
distincttoTrumpvsClinton.Basedonyourperceptionofeachcandidate,
dotheresultsofthisanalysismakesense?Provideabriefanswerwhere
yousummarizethemostimportantresultsandyourexplanations.

SendyourPDFversionoftheMarkdowndocumentto

[email protected]

Pleaseusethefollowingnamingconvention:HW1_Surname_FirstName.pdf
Deadline:byFriday28thApril,2017.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] 程序代写代做代考 Homework 2
30 $