if(!require(haven)){
install.packages("haven", dependencies = TRUE)
library(haven)}Loading required package: haven
if(!require(haven)){
install.packages("haven", dependencies = TRUE)
library(haven)}Loading required package: haven
if(!require(tidyverse)){
install.packages("tidyverse", dependencies = TRUE)
library(tidyverse)}Loading required package: tidyverse
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.2 ✔ readr 2.1.4
✔ forcats 1.0.0 ✔ stringr 1.5.0
✔ ggplot2 3.4.2 ✔ tibble 3.2.1
✔ lubridate 1.9.2 ✔ tidyr 1.3.0
✔ purrr 1.0.1
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
if(!require(afex)){
install.packages("afex", dependencies = TRUE)
library(afex)}Loading required package: afex
Loading required package: lme4
Loading required package: Matrix
Attaching package: 'Matrix'
The following objects are masked from 'package:tidyr':
expand, pack, unpack
************
Welcome to afex. For support visit: http://afex.singmann.science/
- Functions for ANOVAs: aov_car(), aov_ez(), and aov_4()
- Methods for calculating p-values with mixed(): 'S', 'KR', 'LRT', and 'PB'
- 'afex_aov' and 'mixed' objects can be passed to emmeans() for follow-up tests
- Get and set global package options with: afex_options()
- Set sum-to-zero contrasts globally: set_sum_contrasts()
- For example analyses see: browseVignettes("afex")
************
Attaching package: 'afex'
The following object is masked from 'package:lme4':
lmer
if(!require(summarytools)){
install.packages("summarytools", dependencies = TRUE)
library(summarytools)}Loading required package: summarytools
Warning in fun(libname, pkgname): couldn't connect to display ":0"
system might not have X11 capabilities; in case of errors when using dfSummary(), set st_options(use.x11 = FALSE)
Attaching package: 'summarytools'
The following object is masked from 'package:tibble':
view
if(!require(psych)){
install.packages("psych", dependencies = TRUE)
library(psych)}Loading required package: psych
Attaching package: 'psych'
The following objects are masked from 'package:ggplot2':
%+%, alpha
dataset <- read_sav("Group6mood.sav")(dataset %>%
filter(Duration__in_seconds_>= 120) %>%
mutate(age_as_a_number = as.numeric(Age)) -> dataset.clean)# A tibble: 24 × 38
StartDate EndDate Status IPAddress Progress
<dttm> <dttm> <dbl+lbl> <chr> <dbl>
1 2023-07-24 17:06:19 2023-07-24 17:10:30 0 [IP Address] 73.193.50.147 100
2 2023-07-24 20:28:17 2023-07-24 20:33:07 0 [IP Address] 97.104.170.1… 100
3 2023-07-24 21:59:02 2023-07-24 22:05:46 0 [IP Address] 71.199.246.2… 100
4 2023-07-25 10:20:29 2023-07-25 10:26:27 0 [IP Address] 47.203.128.1… 100
5 2023-07-25 16:06:45 2023-07-25 16:10:39 0 [IP Address] 73.35.117.177 100
6 2023-07-25 21:44:40 2023-07-25 21:52:33 0 [IP Address] 99.166.166.1… 100
7 2023-07-27 22:20:13 2023-07-27 22:22:45 0 [IP Address] 70.171.22.8 100
8 2023-07-28 18:49:34 2023-07-28 18:51:40 0 [IP Address] 73.152.15.149 100
9 2023-07-28 23:13:22 2023-07-28 23:21:28 0 [IP Address] 172.56.105.1… 100
10 2023-07-28 23:55:15 2023-07-29 00:04:22 0 [IP Address] 173.185.87.2… 100
# ℹ 14 more rows
# ℹ 33 more variables: Duration__in_seconds_ <dbl>, Finished <dbl+lbl>,
# RecordedDate <dttm>, ResponseId <chr>, RecipientLastName <chr>,
# RecipientFirstName <chr>, RecipientEmail <chr>, ExternalReference <chr>,
# LocationLatitude <chr>, LocationLongitude <chr>, DistributionChannel <chr>,
# UserLanguage <chr>, Informed_Consent <dbl+lbl>, Water <dbl+lbl>,
# Exercise <dbl+lbl>, Exercise.0 <dbl+lbl>, Water.0 <dbl+lbl>, …
print(dfSummary(dataset.clean,graph.magnif = .75), method = 'render')Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
Warning in png(png_loc <- tempfile(fileext = ".png"), width = 150 *
graph.magnif, : unable to open connection to X11 display ''
| No | Variable | Label | Stats / Values | Freqs (% of Valid) | Graph | Valid | Missing | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | StartDate [POSIXct, POSIXt] | Start Date |
|
24 distinct values | 24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | EndDate [POSIXct, POSIXt] | End Date |
|
24 distinct values | 24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | Status [haven_labelled, vctrs_vctr, double] | Response Type | 1 distinct value |
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | IPAddress [character] | IP Address |
|
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | Progress [numeric] | Progress | 1 distinct value |
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | Duration__in_seconds_ [numeric] | Duration (in seconds) |
|
23 distinct values | 24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | Finished [haven_labelled, vctrs_vctr, double] | Finished | 1 distinct value |
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | RecordedDate [POSIXct, POSIXt] | Recorded Date |
|
24 distinct values | 24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | ResponseId [character] | Response ID |
|
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | RecipientLastName [character] | Recipient Last Name |
|
24 (100.0%) | 0 (0.0%) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | RecipientFirstName [character] | Recipient First Name |
|
24 (100.0%) | 0 (0.0%) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | RecipientEmail [character] | Recipient Email |
|
24 (100.0%) | 0 (0.0%) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | ExternalReference [character] | External Data Reference |
|
24 (100.0%) | 0 (0.0%) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | LocationLatitude [character] | Location Latitude |
|
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | LocationLongitude [character] | Location Longitude |
|
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | DistributionChannel [character] | Distribution Channel | 1. anonymous |
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | UserLanguage [character] | User Language | 1. EN |
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | Informed_Consent [haven_labelled, vctrs_vctr, double] | Informed Consent University of North Florida Department of Psychological Sciences Purpose of Research and Specific procedures to be used: In this study, you will be asked to participate in exercise and you will take a short survey on mood. It should take approximately 5 minutes to complete. All answers will remain anonymous. Please answer the questions to the best of your ability. There are no right or wrong answers. Duration of Participation: Your participation should take 5 minutes. Benefits to the Individual: Your participation in this research will contribute to the body of psychological knowledge about mood. You will have the opportunity to gain a deeper understanding of psychological research. In addition, you will receive information about mood at the end of this study. Risks to the Individual: This study poses no risks greater than those encountered in daily social interactions. Anonymity: Strict anonymity of all data will be upheld. Your responses will remain anonymous and will n | 1 distinct value |
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | Water [haven_labelled, vctrs_vctr, double] | Did you drink 8oz of water? | 1 distinct value |
|
4 (16.7%) | 20 (83.3%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | Exercise [haven_labelled, vctrs_vctr, double] | Did you complete 1 minute of exercise? | 1 distinct value |
|
4 (16.7%) | 20 (83.3%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | Exercise.0 [haven_labelled, vctrs_vctr, double] | Did you complete 1 minute of exercise? | 1 distinct value |
|
8 (33.3%) | 16 (66.7%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | Water.0 [haven_labelled, vctrs_vctr, double] | Did you drink 8oz of water? | 1 distinct value |
|
5 (20.8%) | 19 (79.2%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | Exercise.1 [haven_labelled, vctrs_vctr, double] | Did you complete 30 seconds of exercise? |
|
|
5 (20.8%) | 19 (79.2%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | Exercise.2 [haven_labelled, vctrs_vctr, double] | Did you complete 30 seconds of exercise? |
|
|
7 (29.2%) | 17 (70.8%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | Mood_1 [haven_labelled, vctrs_vctr, double] | How would you describe your current mood? |
|
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | Mood_2 [haven_labelled, vctrs_vctr, double] | Do you feel more refreshed and energized?” |
|
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | Mood_3 [haven_labelled, vctrs_vctr, double] | How prepared are you to handle the rest of your day? |
|
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | Mood_4 [haven_labelled, vctrs_vctr, double] | How would you describe your current feelings of sadness or low mood? |
|
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | Mood_5 [haven_labelled, vctrs_vctr, double] | How would you describe your current feelings of fatigue? |
|
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | Gender [character] | How do you identify your gender? |
|
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | Race [character] | What is your race/ethnicity? |
|
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | Age [character] | What is your age (give a number, must be 18+)? |
|
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | Exit_question [character] | What do you think the hypothesis of the experiment was? |
|
|
24 (100.0%) | 0 (0.0%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | FL_10_DO_1minuteofexerciseandwater [numeric] | FL_10 - Block Randomizer - Display Order 1minuteofexerciseandwater | 1 distinct value |
|
4 (16.7%) | 20 (83.3%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | FL_10_DO_1minuteofexerciseandnowater [numeric] | FL_10 - Block Randomizer - Display Order 1minuteofexerciseandnowater | 1 distinct value |
|
8 (33.3%) | 16 (66.7%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | FL_10_DO_30secondsofexerciseandwater [numeric] | FL_10 - Block Randomizer - Display Order 30secondsofexerciseandwater | 1 distinct value |
|
5 (20.8%) | 19 (79.2%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | FL_10_DO_30secondsofexerciseandnowater [numeric] | FL_10 - Block Randomizer - Display Order 30secondsofexerciseandnowater | 1 distinct value |
|
7 (29.2%) | 17 (70.8%) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | age_as_a_number [numeric] |
|
17 distinct values | 24 (100.0%) | 0 (0.0%) |
Generated by summarytools 1.0.1 (R version 4.3.0)
2023-08-02
(dataset.clean %>%
mutate(ExerciseDurationIV = case_when(FL_10_DO_1minuteofexerciseandwater == 1 ~ "1 minute",
FL_10_DO_1minuteofexerciseandnowater == 1 ~ "1 minute",
FL_10_DO_30secondsofexerciseandwater == 1 ~ "30 seconds",
FL_10_DO_30secondsofexerciseandnowater == 1 ~ "30 seconds")) -> dataset.clean)# A tibble: 24 × 39
StartDate EndDate Status IPAddress Progress
<dttm> <dttm> <dbl+lbl> <chr> <dbl>
1 2023-07-24 17:06:19 2023-07-24 17:10:30 0 [IP Address] 73.193.50.147 100
2 2023-07-24 20:28:17 2023-07-24 20:33:07 0 [IP Address] 97.104.170.1… 100
3 2023-07-24 21:59:02 2023-07-24 22:05:46 0 [IP Address] 71.199.246.2… 100
4 2023-07-25 10:20:29 2023-07-25 10:26:27 0 [IP Address] 47.203.128.1… 100
5 2023-07-25 16:06:45 2023-07-25 16:10:39 0 [IP Address] 73.35.117.177 100
6 2023-07-25 21:44:40 2023-07-25 21:52:33 0 [IP Address] 99.166.166.1… 100
7 2023-07-27 22:20:13 2023-07-27 22:22:45 0 [IP Address] 70.171.22.8 100
8 2023-07-28 18:49:34 2023-07-28 18:51:40 0 [IP Address] 73.152.15.149 100
9 2023-07-28 23:13:22 2023-07-28 23:21:28 0 [IP Address] 172.56.105.1… 100
10 2023-07-28 23:55:15 2023-07-29 00:04:22 0 [IP Address] 173.185.87.2… 100
# ℹ 14 more rows
# ℹ 34 more variables: Duration__in_seconds_ <dbl>, Finished <dbl+lbl>,
# RecordedDate <dttm>, ResponseId <chr>, RecipientLastName <chr>,
# RecipientFirstName <chr>, RecipientEmail <chr>, ExternalReference <chr>,
# LocationLatitude <chr>, LocationLongitude <chr>, DistributionChannel <chr>,
# UserLanguage <chr>, Informed_Consent <dbl+lbl>, Water <dbl+lbl>,
# Exercise <dbl+lbl>, Exercise.0 <dbl+lbl>, Water.0 <dbl+lbl>, …
(dataset.clean %>%
mutate(WaterIV = case_when(FL_10_DO_1minuteofexerciseandwater == 1 ~ "water",
FL_10_DO_1minuteofexerciseandnowater == 1 ~ "no water",
FL_10_DO_30secondsofexerciseandwater == 1 ~ "water",
FL_10_DO_30secondsofexerciseandnowater == 1 ~ "no water")) -> dataset.clean)# A tibble: 24 × 40
StartDate EndDate Status IPAddress Progress
<dttm> <dttm> <dbl+lbl> <chr> <dbl>
1 2023-07-24 17:06:19 2023-07-24 17:10:30 0 [IP Address] 73.193.50.147 100
2 2023-07-24 20:28:17 2023-07-24 20:33:07 0 [IP Address] 97.104.170.1… 100
3 2023-07-24 21:59:02 2023-07-24 22:05:46 0 [IP Address] 71.199.246.2… 100
4 2023-07-25 10:20:29 2023-07-25 10:26:27 0 [IP Address] 47.203.128.1… 100
5 2023-07-25 16:06:45 2023-07-25 16:10:39 0 [IP Address] 73.35.117.177 100
6 2023-07-25 21:44:40 2023-07-25 21:52:33 0 [IP Address] 99.166.166.1… 100
7 2023-07-27 22:20:13 2023-07-27 22:22:45 0 [IP Address] 70.171.22.8 100
8 2023-07-28 18:49:34 2023-07-28 18:51:40 0 [IP Address] 73.152.15.149 100
9 2023-07-28 23:13:22 2023-07-28 23:21:28 0 [IP Address] 172.56.105.1… 100
10 2023-07-28 23:55:15 2023-07-29 00:04:22 0 [IP Address] 173.185.87.2… 100
# ℹ 14 more rows
# ℹ 35 more variables: Duration__in_seconds_ <dbl>, Finished <dbl+lbl>,
# RecordedDate <dttm>, ResponseId <chr>, RecipientLastName <chr>,
# RecipientFirstName <chr>, RecipientEmail <chr>, ExternalReference <chr>,
# LocationLatitude <chr>, LocationLongitude <chr>, DistributionChannel <chr>,
# UserLanguage <chr>, Informed_Consent <dbl+lbl>, Water <dbl+lbl>,
# Exercise <dbl+lbl>, Exercise.0 <dbl+lbl>, Water.0 <dbl+lbl>, …
#create dataframe with only relevant variables to work with
Mood <- data.frame (dataset.clean$Mood_1, dataset.clean$Mood_2, dataset.clean$Mood_3, dataset.clean$Mood_4, dataset.clean$Mood_5)
#create list of 'keys'. The numbers just refer to the order of the question in the data.frame() you just made. The most important thing is to mark the questions that should be reversed scored with a '-'.
Mood.keys <- make.keys(Mood, list(Mood=c(1,2,3,4,5)))
#score the scale
Mood.scales <- scoreItems (Mood.keys, Mood)
#save the scores
Mood.scores <- Mood.scales$scores
#save the scores back in 'dataset'
dataset.clean$Mood <- Mood.scores[,]
#print the cronbach alpha
Mood.scales$alpha Mood
alpha 0.9170831
aov_ez(id = "ResponseId",
dv = "Mood",
data = dataset.clean,
between=c("ExerciseDurationIV", "WaterIV"),
anova_table = list(es = "pes"))Converting to factor: ExerciseDurationIV, WaterIV
Contrasts set to contr.sum for the following variables: ExerciseDurationIV, WaterIV
Anova Table (Type 3 tests)
Response: Mood
Effect df MSE F pes p.value
1 ExerciseDurationIV 1, 20 0.71 3.33 + .143 .083
2 WaterIV 1, 20 0.71 0.62 .030 .442
3 ExerciseDurationIV:WaterIV 1, 20 0.71 2.57 .114 .124
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '+' 0.1 ' ' 1
dataset.clean %>%
group_by(ExerciseDurationIV) %>%
summarise(mean = mean(Mood),
sd = sd(Mood))# A tibble: 2 × 3
ExerciseDurationIV mean sd
<chr> <dbl> <dbl>
1 1 minute 3.07 1.10
2 30 seconds 3.55 0.527
dataset.clean %>%
group_by(WaterIV) %>%
summarise(mean = mean(Mood),
sd = sd(Mood))# A tibble: 2 × 3
WaterIV mean sd
<chr> <dbl> <dbl>
1 no water 3.39 0.867
2 water 3.18 0.930
dataset.clean %>%
group_by(ExerciseDurationIV, WaterIV) %>%
summarise(mean = mean(Mood),
sd = sd(Mood))`summarise()` has grouped output by 'ExerciseDurationIV'. You can override
using the `.groups` argument.
# A tibble: 4 × 4
# Groups: ExerciseDurationIV [2]
ExerciseDurationIV WaterIV mean sd
<chr> <chr> <dbl> <dbl>
1 1 minute no water 3.35 1.10
2 1 minute water 2.5 0.959
3 30 seconds no water 3.43 0.571
4 30 seconds water 3.72 0.460