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 6902995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:52:09+00:00 2026-05-27T07:52:09+00:00

Trying to learn R. A question from an old stats text want’s to know

  • 0

Trying to learn R. A question from an old stats text want’s to know if there is a difference in break times at different construction sites. Trouble is, the text decided that each site employs a different number of workers. So, I am stuck and looking for help using ANOVA with unequal sample sizes.

site1 <- c(34,25,27,31,26,34,21)
site2 <- c(33,35,31,31,42,33)
site3 <- c(17,30,30,26,32,28,26,29)
site4 <- c(28,33,31,27,32,33,40)
  • 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-27T07:52:10+00:00Added an answer on May 27, 2026 at 7:52 am

    Try this one

    site1 <- c(34,25,27,31,26,34,21)
    site2 <- c(33,35,31,31,42,33)
    site3 <- c(17,30,30,26,32,28,26,29)
    site4 <- c(28,33,31,27,32,33,40)
    
    Data <- data.frame(
           Y=c(site1, site2, site3, site4),
           Site =factor(rep(c("site1", "site2", "site3", "site4"), times=c(length(site1), length(site2), length(site3), length(site4))))
           )
    

    Data

      Y  Site
     34 site1
     25 site1
     27 site1
     31 site1
     26 site1
     34 site1
     21 site1
     33 site2
     35 site2
     31 site2
     31 site2
     42 site2
     33 site2
     17 site3
     30 site3
     30 site3
     26 site3
     32 site3
     28 site3
     26 site3
     29 site3
     28 site4
     33 site4
     31 site4
     27 site4
     32 site4
     33 site4
     40 site4
    

    ANOVA

    fm1 <- aov(Y~Site, data=Data)
    anova(fm1)
    

    Output

    Analysis of Variance Table
    
    Response: Y
              Df Sum Sq Mean Sq F value  Pr(>F)  
    Site       3 212.35  70.782  3.4971 0.03098 *
    Residuals 24 485.76  20.240                  
    ---
    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 know this is a basic PHP question, and I'm trying to learn the
UPDATED FROM ORIGINAL QUESTION I am trying to learn what a javascript object 'looks
I'm trying to learn C++ so forgive me if this question demonstrates a lack
So I'm trying to learn more about lambda expressions. I read this question on
I'm trying to learn WPF, so here's a simple question, I hope: I have
Trying to learn a bit of CSS and I want a horizontal navbar and
Trying to learn MVP pattern with C#... Does anyone know of any particularly good
I´m trying to learn C#, coming from a Python/PHP background, and I´m trying to
I'm in the process of trying to 'learn more of' and 'learn lessons from'
I have a question about Clojure: I am trying to learn the language by

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.