Question

Solve by using R program or any other statistical program(python,R)

2. Three types of ferilizer are to be tested to see which one yields more corn crop. Forty similar plots of land were availabTable 2: Corn Yield by Fertilizer Group Fertilizer 1 Fertilizer 2 Fertilizer 3 Control Group 27 27

0 0
Add a comment Improve this question Transcribed image text
Answer #1
  • The complete R snippet is as follows

    # read the data into R dataframe
    data.df<- read.csv("fertilizer.csv",header=TRUE)
    str(data.df)

    data.df$Fertilizer <- as.factor(data.df$Fertilizer)

    # perform anova analysis
    a<- aov(lm(Yield~ Fertilizer,data=data.df))

    #summarise the results
    summary(a)

    plot(a$residuals,pch=16,col="violetred2")


    colr<-c(
    "yellow3","palegreen1" ,"orangered" ,"magenta4" )
    # plots

    boxplot(Yield~ Fertilizer, data=data.df,ylab="Values",
    main="Boxplots of the Data",col=colr,horizontal=TRUE)

    # Plot Means with Error Bars
    library(gplots)
    attach(data.df)
    plotmeans(Yield~ Fertilizer,xlab="Types",
    ylab="Value", main="Mean Plot\nwith 95% CI")

  • The results are

    > summary(a)
    Df Sum Sq Mean Sq F value Pr(>F)   
    Fertilizer 3 362.6 120.87 5.144 0.0046 ** ## as the p value is less than 0.05 , hence the results are statistically significant
    Residuals 36 845.8 23.49
    ---
    Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

  • as the result is signficant , we can conduct Tukey HSD to perform the test in R

    ## Tukey

    t<- TukeyHSD(a)
    t
    t$Fertilizer[,4]

    plot(t,col = ifelse(t$Fertilizer[,4] < 0.05,"darkgreen","orange"))

  • Tukey multiple comparisons of means
    95% family-wise confidence level

    Fit: aov(formula = lm(Yield ~ Fertilizer, data = data.df))

    $Fertilizer
    diff lwr upr p adj
    2-1 -6.7 -12.5380872 -0.8619128 0.0191978
    3-1 -1.7 -7.5380872 4.1380872 0.8610988
    4-1 -6.8 -12.6380872 -0.9619128 0.0170864
    3-2 5.0 -0.8380872 10.8380872 0.1154045
    4-2 -0.1 -5.9380872 5.7380872 0.9999640
    4-3 -5.1 -10.9380872 0.7380872 0.1050237

    all the pairwise comparisons whose p value is less than 0.05 are significant

Add a comment
Know the answer?
Add Answer to:
Solve by using R program or any other statistical program(python,R) 2. Three types of ferilizer are...
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
  • use the R or by hand. 2. Three types of ferilizer are to be tested to...

    use the R or by hand. 2. Three types of ferilizer are to be tested to see which one yields more corn crop. Forty similar plots of land were available for testing purposes. The 40 plots are divided at random into four groups, 10 plots in Group 1. Similarly, Fertilizers 2 and 3 were applied to the plots in Group 2 and 3, respectively. The corn plants in Group 4 were not given any fertilizer; it will serve as the...

  • ​​​​​ 3. A botanist was testing fertilizers on 149 string bean plants. The researcher used random...

    ​​​​​ 3. A botanist was testing fertilizers on 149 string bean plants. The researcher used random assignment to create three groups, two with fertilizers (Grow Fast and Super Plant) and one control group (None). After 60 days, the height of each plant was measured. a. What is the response and what is the factor? How many levels? b. Create a box plot with groups of the heights of the plants by fertilizer type. Paste the graph here and observe if...

  • 2. Samples of each of three types of stopwatches were tested. 21 watches of type I, 16 watches of tyep II and 11 watches of type III were randomly selected. The cycles (on-off-restart) survied until...

    2. Samples of each of three types of stopwatches were tested. 21 watches of type I, 16 watches of tyep II and 11 watches of type III were randomly selected. The cycles (on-off-restart) survied until some part of the mechanism failed were measured. Below shows part of the R output from analyzing these data. Df --.754.4 Sum Sq Mean Sq F value type Residuals 56.7 (a) Complete the ANOVA table. (b) Write the formula for estimating σ2 (using our usual...

  • A researcher is interested in determining if a new intensive treatment program for high school st...

    A researcher is interested in determining if a new intensive treatment program for high school students with alcohol abuse problems is effective. In order to recruit participants for this study, flyers are mailed to all families of high school students in the Northwest Arkansas area.  Ninety-three families decide to participate in the study. To test the main research hypothesis, the families are randomly assigned to one of three groups, with the restriction that an equal number of families are in...

  • A researcher is interested in determining if a new intensive treatment program for high school students...

    A researcher is interested in determining if a new intensive treatment program for high school students with alcohol abuse problems is effective. In order to recruit participants for this study, flyers are mailed to all families of high school students in the Northwest Arkansas area. Ninetythree families decide to participate in the study. To test the main research hypothesis, the families are randomly assigned to one of three groups, with the restriction that an equal number of families are in...

  • 1. Three different metal alloys were tested for tensile strength. The strength of some examples of each alloy...

    1. Three different metal alloys were tested for tensile strength. The strength of some examples of each alloy measured (in hundreds of megapascals), as follows. was Alloy Tensile strength of some examples 19.8 12.4 1 15.2 14.8 2 8.9 11.6 10.0 11.9 3 10.5 13.8 12.1 Source: the data come from Berenson and Levine (1998), Business Statistics: A First Course, p. 449, Question 10.27, but shortened.) Taking the types of alloy one-way ANOVA. The following R commands were used: as...

  • Psy 248: STATISTICS- MARIA MIRANDA Computer Lab Assignment II, SP 2019 Comparing means using t-te...

    Psy 248: STATISTICS- MARIA MIRANDA Computer Lab Assignment II, SP 2019 Comparing means using t-tests This assignment will give you practice choosing the appropriate test statistic to use for different research designs that all involve comparing using t-tests. You will need to enter the data, use SPSS to test hypothesis, and write a conclusion for each problem stating weather or not the samples differed significantly. To run all 3 tests, use: ANALYZE, COMPARE MEANS, and then select the type of...

  • 12:30 LTE X R assignment - Chapter 11 Wenton Powersports produces dune buggies. They have three a...

    USING R 12:30 LTE X R assignment - Chapter 11 Wenton Powersports produces dune buggies. They have three assembly lines, Razo "Baze and Tracer,named ater the partioular dune buggy models produced on those ines. Each assembly line was originally designed using the same target production rate However, over the years, various changes have been made to the lines. Accondingly, management wishes to determine whether the assembly lines are soll operating at the same average houy production rae a Cick here...

  • The R code will help to answer the question. 8. DeGroot&Shervish (2002) consider an experiment to...

    The R code will help to answer the question. 8. DeGroot&Shervish (2002) consider an experiment to study the combined effects of taking a stimulant and a tranquilizer. In this experiment three types of stimulant and four types of tranquilizer are administered to a group of rabbits. Each rabbit received one of the stimulants, then 20 minutes later, one of the tranquilizers. One hour later their response time (in microseconds) to a stimulus was measured. The results were: Tranquilizer Stimulant 1...

  • Article Summary I Read the article below and provide feedback by writing a 2 page summary....

    Article Summary I Read the article below and provide feedback by writing a 2 page summary. Please write in essay format (you may include the questions but the response should be in essay format) Must include the following information Title of the article Author(s) of the article Reference list (include the article itself and any other reference material such as another article that is cited in your summary). Use the reference list in the article to get information about another...

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