Tick data | Economics homework help


D8_1 <- read.table(“C:/Users/keith/Desktop/Data_Table_8.1.txt”,sep = “\t”,fill = TRUE, header=TRUE)

##Still NAs. Scrape all dorsal widths and throw into one vector via concatenate.




res.aov<-aov(Width~Host, data=Tick_data)

summary(res.aov) #1.a Answer

qf(.05, 3, 33, lower.tail=FALSE)

#1.b As our F-Statistic is greater than this critical value of 2.892, we reject the test’s null hypothesis and conclude that there is an association between host and width.


#1.c Via the pairwise T Test, it appears that Host 1 is statistically different from hosts 2 and 3, and none of the other pairwise relationships differ.


D5a <- D5a <- read.delim(“C:/Users/keith/Desktop/5a_Work_Income_and_economic_activity_aov.txt”)

D5a$Continent <- factor(D5a$Continent)

res.aov2<-aov(GDPpercapita~Continent, data=D5a)


##2.a As the p-value is less than 0.05, we reject the null hypothesis and conclude that there is a difference in GDP among continents.

pairwise.t.test(D5a$GDPpercapita, D5a$Continent)

##2.b The p-values are less than 0.05 for the following pairs: Africa-America; Africa-Eurasia; Americas-Eurasia; Eurasia-SEAsia. The differences are statistically significant between these pairs of continents.


res.aov3<-aov(EconActivity~Continent+Sex, data=D5a)


##2.c As the p-value for the sex term is less than 0.05, we reject the null hypothesis. Therefore, holding constant the continent, the effect of sex does have an impact on the Economic Activity in that continent.

Here is the second answer”