Question

Using program R, please help solve:
(if answered by Tuesday 6/11 evening, I will rate)

3.32 The data set UScereal (MASS) contains information about cereals on a shelf of a United States grocery store. Make a tabl

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANSWER:

Given that,

we can fit a one way anova to see whats going on , the complete r snippet is as follows

library("MASS")

data.df <- data.frame(UScereal)


fit <- aov(lm(shelf~ mfr,data=data.df))
summary(fit)

table(data.df$mfr,data.df$shelf)

# plots

boxplot(data.df$shelf~data.df$mfr, data=data.df,
ylab="Values", main="Boxplots of the Data",col=c(3:9))

###################

The results are

> summary(fit)
Df Sum Sq Mean Sq F value Pr(>F)
mfr 5 4.97 0.9946 1.461 0.216
Residuals 59 40.17 0.6808   
> table(data.df$mfr,data.df$shelf)

1 2 3
G 6 7 9
K 4 7 10
N 2 0 1
P 2 1 6
Q 0 3 2
R 4 0 1

Boxplots of the Data G K P R Z 0Z Values

as can be seen from the table and the boxpolt , manfucturer G and K get the largest share of the shelves.

Add a comment
Know the answer?
Add Answer to:
Using program R, please help solve: (if answered by Tuesday 6/11 evening, I will rate) 3.32 The data set UScereal (M...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Using program R, please help solve: (if answered by Tuesday 6/11 evening, I will rate) 3.31 The data set coins (Usin...

    Using program R, please help solve: (if answered by Tuesday 6/11 evening, I will rate) 3.31 The data set coins (UsingR) contains the number of coins in a change bin and the years they were minted. Do the following: 1. How much money is in the change bin? 2. Make a barplot of the years. Is there a trend? 3. Use cut to construct a barplot by decade. 4. Make a contingency table of the year and the value. Does...

  • Using program R, please help solve: Data set is given in program R and can be seen by putting in code: state.x77 x77<...

    Using program R, please help solve: Data set is given in program R and can be seen by putting in code: state.x77 x77<-data.frame(state.x77) (if answered by Tuesday 6/11 evening, I will rate) 3.17 The state.x77 data set contains various information for each of the fifty United States. We wish to explore possible relationships among the variables. First, we make the data set easier to work with by turning it into a data frame. x77data.frame(state.x77) ; Now, make scatter plots of...

  • Using program R, please help solve: Data set is in the program R. Can be found by inputing code: require(UsingR) homedat...

    Using program R, please help solve: Data set is in the program R. Can be found by inputing code: require(UsingR) homedata (if answered by Tuesday 6/11 evening, I will rate) 3.13 For the homedat a (UsingR) data set, make a histogram and density es- timate of the multiplicative change in values (the variable y2000/y 1970). De- scribe the shape, and explain why it is shaped thus. (Hint: There are two sides to the tracks.) 3.13 For the homedat a (UsingR)...

  • Please write an 1. executive overview of the above case study. 2. in detail, what is...

    Please write an 1. executive overview of the above case study. 2. in detail, what is the critical issue or problem in the above case study. 3. please provide a detailed analysis of the cause of the issue or problem in the above case study. 國connect VIDEO CASE 1 Chobani: Making Greek Yogurt a Household Name Everybody should be able to enjoy a pure, simple cup of yogurt. And that's what Chobani is," says The very first cup for sale...

  • SYNOPSIS The product manager for coffee development at Kraft Canada must decide whether to introduce the...

    SYNOPSIS The product manager for coffee development at Kraft Canada must decide whether to introduce the company's new line of single-serve coffee pods or to await results from the product's launch in the United States. Key strategic decisions include choosing the target market to focus on and determining the value proposition to emphasize. Important questions are also raised in regard to how the new product should be branded, the flavors to offer, whether Kraft should use traditional distribution channels or...

  • Please read the article and answer about questions. You and the Law Business and law are...

    Please read the article and answer about questions. You and the Law Business and law are inseparable. For B-Money, the two predictably merged when he was negotiat- ing a deal for his tracks. At other times, the merger is unpredictable, like when your business faces an unexpected auto accident, product recall, or government regulation change. In either type of situation, when business owners know the law, they can better protect themselves and sometimes even avoid the problems completely. This chapter...

  • Hi there! I need to compare two essay into 1 essay, and make it interesting and...

    Hi there! I need to compare two essay into 1 essay, and make it interesting and choose couple topics which im going to talk about in my essay FIRST ESSAY “Teaching New Worlds/New Words” bell hooks Like desire, language disrupts, refuses to be contained within boundaries. It speaks itself against our will, in words and thoughts that intrude, even violate the most private spaces of mind and body. It was in my first year of college that I read Adrienne...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT