Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In R, there is a package called lme4 that holds the function lmer, which is used to fit random effects model. The attached data set

In R, there is a package called "lme4" that holds the function "lmer," which is used to fit random effects model. The attached data set has four movie critics rating the same four movies. We are not interested in the particular differences between the individual critics, but rather how the variable "critic" affects the score of the movie in general. That means we will treat the variable "critic" as a random effect and not a fixed one.

1. Import the attached movie critic data. In R, to add a random effect x, use the syntax (1|x). So a line of R code may look something like:

model = lmer(score ~ (critic|1), data = data)

Use a model of this sort to fit the critic data, thinking of "critic" as a random effect. Repeat this model fitting using "critic" as a fixed effect. What is the major theoretical difference?

If you worked at Rotten Tomatoes and had access to other data besides critic score, what other data would you be interested in testing with this method?

Submit your code and any output of the code to include tables and graphs as indicated. Submission of R code can be accomplished by creating a markdown document in RStudio and saving this as a .txt file. Submission of mathematical proofs can be accomplished using Microsoft Word's equation creator, LaTeX, or neatly written work that has been scanned into PDF format. For questions that require a written response, use no fewer than three complete sentences or 50 words.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Algebra And Trigonometry

Authors: Cynthia Y Young

3rd Edition

1118475755, 9781118475751

More Books

Students also viewed these Mathematics questions