Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 652281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:15:20+00:00 2026-05-13T22:15:20+00:00

The following script #!/usr/bin/Rscript –vanilla x <- c(4.5,6.4,7.2,6.7,8.8,7.8,9.6,7.0,5.9,6.8,5.7,5.2) fertilizer<- factor(c(‘A’,’A’,’A’,’A’,’B’,’B’,’B’,’B’,’C’,’C’,’C’,’C’)) crop <- factor(c(‘I’,’II’,’III’,’IV’,’I’,’II’,’III’,’IV’,’I’,’II’,’III’,’IV’)) av

  • 0

The following script

#!/usr/bin/Rscript --vanilla
x <- c(4.5,6.4,7.2,6.7,8.8,7.8,9.6,7.0,5.9,6.8,5.7,5.2)
fertilizer<- factor(c('A','A','A','A','B','B','B','B','C','C','C','C'))
crop <- factor(c('I','II','III','IV','I','II','III','IV','I','II','III','IV'))
av <- aov(x~fertilizer*crop)
summary(av)

yields

                Df  Sum Sq Mean Sq
fertilizer       2 13.6800  6.8400
crop             3  2.8200  0.9400
fertilizer:crop  6  6.5800  1.0967

For other data, aov usually gives the F-statistic and associated p-value. What is wrong/special about this data that causes R to omit the juicy parts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:15:20+00:00Added an answer on May 13, 2026 at 10:15 pm

    Should you using + instead of * in the formula?

    > summary(aov(x~fertilizer + crop))
                Df  Sum Sq Mean Sq F value  Pr(>F)  
    fertilizer   2 13.6800  6.8400  6.2371 0.03426 *
    crop         3  2.8200  0.9400  0.8571 0.51218  
    Residuals    6  6.5800  1.0967                  
    ---
    Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following script #!/usr/bin/Rscript print (shebang works) in a file called shebang.r.
I wrote the following script, which generates a SyntaxError : #!/usr/bin/python print Enter the
I have to maintain the following Perl script: #!/usr/bin/perl -w die Usage: $0 <file1>
I write the following script #!/usr/bin/perl system( awk -F= '{s[$1]++}{print $1s[$1],$2}' OFS== /var/tmp/file );
I have following script: #!/usr/bin/python while True: x = raw_input() print x[::-1] I am
I'm trying to execute the following script: #!/usr/bin/perl -w use strict; use DBI; my
The following python script works fine: #!/usr/bin/env python import httplib, urllib params = urllib.urlencode({'url':'xxx/xxx/0AAAUw7n6qPQ922.jpg',
I have following perl script #!/usr/bin/perl $userinput = <STDIN>; chomp ($userinput); while ( $userinput
I have a problem with the following ksh script: #! /usr/bin/ksh EXCLUDE+= --exclude '/bin/a*'
The following script works fine: #!/usr/bin/env perl use strict; use warnings; use Data::Dumper; use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.