General InstructionsIWrite the answers for each part of each exercise in a worddocument.IUpload your Lab Assignment 2 word document on Angel.Lab Assignment 2Exercise 1The data in the websitehttp://sites.stat.psu.edu/∼mga/401/Data/AdLocNews.txtcontain the number of inquiries regarding ads placed in a localnewspaper. The ads are categorized according to the day andsection of the newspaper they appeared.The data in the websitehttp://sites.stat.psu.edu/ mga/401/Data/SpruceMothTrap.txtcontain counts of moths captured in traps placed on spruce trees.The traps are categorized according to the location they wereplaced and the lure they used.Choose one of these two data sets and import it into R withdata=read.table(”website”, header=T)(continuation in next page)Lab Assignment 2Then use the commands similar to those given in Lab 2 to:1. compute the cell means,2. compute the main effects for each of the two factors,3. compute the interaction effects,4. make an interaction plot and state which is the trace factor,5. make an interaction plot using the other factor as trace factor.Lab Assignment
View Full Document