R · Statistical analysis
Compare two group means
Work with the mini survey and compare your output with the expected result.
Mini exercises · Practice with data ↓
Try it in three steps
- Extract the mini exercise package below. Complete the cleaning task or use anket-temiz.csv. No extra R package is required.
- Work in the data folder and load the data: df <- read.csv("anket-temiz.csv", na.strings="")
- Run: aggregate(minutes ~ group, data=df, FUN=function(x) c(n=length(x), mean=mean(x), sd=sd(x)))
How to read the output
A: n=9, mean 56.67; B: n=9, mean 66.67. B−A=10.00 minutes.
Test your understanding.
True or false?
These synthetic data establish conclusions about a real population.
Related concepts
Official source
R · Documentation ↗Documentation checked: . Steps are based on official documentation and have not been tested in the application. Menu names may differ by version and interface language.