Last updated: 2022-01-19
Checks: 7 0
Knit directory: cogstruct/analysis/
This reproducible R Markdown analysis was created with workflowr (version 1.7.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.
Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.
Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.
The command set.seed(20220104)
was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.
Great job! Recording the operating system, R version, and package versions is critical for reproducibility.
Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.
Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
The results in this page were generated with repository version 433c01b. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.
Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish
or wflow_git_commit
). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:
Ignored files:
Ignored: .Rhistory
Ignored: .Rproj.user/
Ignored: _targets.yaml
Ignored: analysis/_targets.yaml
Ignored: bnu/_targets/meta/process
Ignored: bnu/_targets/meta/progress
Ignored: bnu/_targets/objects/
Ignored: bnu/_targets/user/
Ignored: bnu/archived/
Ignored: bnu/config/
Ignored: bnu/diagnose.Rmd
Ignored: bnu/images/
Unstaged changes:
Modified: archetypes/child_check_index.Rmd
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.
These are the previous versions of the repository in which changes were made to the R Markdown (analysis/test_checking.Rmd
) and HTML (docs/test_checking.html
) files. If you’ve configured a remote Git repository (see ?wflow_git_remote
), click on the hyperlinks in the table below to view the files as they were in that past version.
File | Version | Author | Date | Message |
---|---|---|---|---|
Rmd | 433c01b | Liang Zhang | 2022-01-19 | wflow_publish("analysis/*.Rmd") |
html | 655f04c | Liang Zhang | 2022-01-19 | Build site. |
Rmd | 5afb062 | Liang Zhang | 2022-01-19 | wflow_publish("analysis/*.Rmd") |
html | ddaae03 | Liang Zhang | 2022-01-19 | Build site. |
Rmd | ce3f503 | Liang Zhang | 2022-01-19 | wflow_publish("analysis/test_checking.Rmd") |
html | 22b9029 | Liang Zhang | 2022-01-19 | Build site. |
Rmd | 02fac49 | Liang Zhang | 2022-01-19 | wflow_publish("analysis/test_checking.Rmd") |
tests_keyboard <- read_lines(here::here("config/require_keybord.txt"))
validation <- tar_read(device_info) |>
mutate(valid_device = !(game_name %in% tests_keyboard & used_mouse)) |>
inner_join(tar_read(data_validation)) |>
filter(valid_device & valid_version) |>
group_by(user_id, game_name) |>
filter(
if_else(
str_detect(game_name_abbr, "[A|B]$"),
row_number(desc(game_time)) == 1,
row_number(desc(game_time)) <= 2
)
) |>
ungroup()
indices <- tar_read(indices) |>
semi_join(validation) |>
mutate(across(starts_with("game_name"), ~ str_remove(.x, "[A|B]$"))) |>
group_by(user_id, game_name_abbr, game_name, index_name) |>
mutate(occasion = recode(row_number(game_time), `1` = "test", `2` = "retest")) |>
ungroup() |>
pivot_wider(
id_cols = c(user_id, game_name, game_name_abbr, index_name),
names_from = occasion,
values_from = score
)
tests_included <- deframe(distinct(indices, game_name_abbr, game_name))
render_content <- function(file, ...) {
knitr::knit(
text = knitr::knit_expand(file, ...),
quiet = TRUE
)
}
purrr::imap_chr(
tests_included,
~ render_content(
file = here::here("archetypes/child_check_index.Rmd"),
game_name_abbr = .x,
game_name = .y
)
) |>
str_c(collapse = "\n\n") |>
cat()
data <- indices |>
filter(
game_name_abbr == "CRTPro",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "TOVAS",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "WxPred",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "NsymNCmp",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "Digit3back",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "Grid2back",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "Paint2back",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "Verbal3back",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "Nback3",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "StopSigPro",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "ColStrpPro",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "CardSortPro",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "BirdsPro",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "JLO",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "HOP",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "MOTPro",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "AttSrc",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "SSTMPro",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "LocMemStd",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "FWSPro",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "AscLanMd",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "LdnTwr",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "FPTPro",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "SCSpan",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "KeepTrack",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "SRTPro",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "DualTaskPro",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "ConRec",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "BPS",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "DRM",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "ProbRL",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "Seman",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "Tone",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "FlkrPro",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "FacesPro",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "FDSPro",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "NVR",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "DR",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "VR",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "MR3D",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "DD",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "TOJ",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "RP",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "CalcSpdMed",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "Dual2back",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "AntiSac",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "SchulteMed",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "AscMem",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "NLEMed",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "CalcMed",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "FR",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "RAT",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "OCSpan",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "RSpan",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "DirectSrc",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
data <- indices |>
filter(
game_name_abbr == "MSynWin",
across(contains("test"), ~ !is.infinite(.x)),
!(is.na(test) & is.na(retest))
)
n_indices <- n_distinct(data$index_name)
data |>
pivot_wider(
id_cols = user_id,
names_from = index_name,
values_from = test
) |>
select(-user_id) |>
GGally::ggpairs()
data_test_retest <- drop_na(data)
reliability <- data_test_retest |>
group_by(index_name) |>
group_modify(
~ tibble(
icc = .x |>
select(contains("test")) |>
psych::ICC() |>
pluck("results", "ICC", 3),
r = cor(.x$test, .x$retest)
)
) |>
ungroup()
data_test_retest |>
ggpubr::ggscatter("test", "retest") +
geom_text(
data = reliability,
aes(
x = -Inf, y = Inf,
label = str_glue("r = {round(r, 2)}\nicc = {round(icc, 2)}")
),
hjust = -0.1, vjust = 1.1
) +
facet_wrap(~ index_name, ncol = 1, scales = "free") +
theme(aspect.ratio = 1)
sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 10 x64 (build 22000)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936
[2] LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] targets_0.10.0 forcats_0.5.1 stringr_1.4.0 dplyr_1.0.7
[5] purrr_0.3.4 readr_2.1.1 tidyr_1.1.4.9000 tibble_3.1.6
[9] ggplot2_3.3.5 tidyverse_1.3.1 workflowr_1.7.0
loaded via a namespace (and not attached):
[1] minqa_1.2.4 colorspace_2.0-2 ggsignif_0.6.3
[4] ellipsis_0.3.2 rprojroot_2.0.2 fs_1.5.2
[7] rstudioapi_0.13 ggpubr_0.4.0 farver_2.1.0
[10] bit64_4.0.5 fansi_1.0.0 lubridate_1.8.0
[13] xml2_1.3.3 codetools_0.2-18 splines_4.1.2
[16] mnormt_2.0.2 knitr_1.37 jsonlite_1.7.2
[19] nloptr_1.2.2.3 broom_0.7.11 dbplyr_2.1.1
[22] compiler_4.1.2 httr_1.4.2 backports_1.4.1
[25] assertthat_0.2.1 Matrix_1.4-0 fastmap_1.1.0
[28] cli_3.1.0 later_1.3.0 htmltools_0.5.2
[31] tools_4.1.2 igraph_1.2.11 gtable_0.3.0
[34] glue_1.6.0 Rcpp_1.0.7 carData_3.0-5
[37] cellranger_1.1.0 jquerylib_0.1.4 vctrs_0.3.8
[40] nlme_3.1-153 psych_2.1.9 xfun_0.29
[43] ps_1.6.0 lme4_1.1-27.1 rvest_1.0.2
[46] lifecycle_1.0.1 rstatix_0.7.0 getPass_0.2-2
[49] MASS_7.3-54 scales_1.1.1 vroom_1.5.7
[52] hms_1.1.1 promises_1.2.0.1 parallel_4.1.2
[55] RColorBrewer_1.1-2 qs_0.25.2 yaml_2.2.1
[58] sass_0.4.0 reshape_0.8.8 stringi_1.7.6
[61] highr_0.9 boot_1.3-28 rlang_0.99.0.9001
[64] pkgconfig_2.0.3 evaluate_0.14 lattice_0.20-45
[67] labeling_0.4.2 bit_4.0.4 processx_3.5.2
[70] tidyselect_1.1.1 here_1.0.1 GGally_2.1.2
[73] plyr_1.8.6 magrittr_2.0.1 R6_2.5.1
[76] generics_0.1.1 base64url_1.4 DBI_1.1.2
[79] pillar_1.6.4 haven_2.4.3 whisker_0.4
[82] withr_2.4.3 abind_1.4-5 modelr_0.1.8
[85] crayon_1.4.2 car_3.0-12 utf8_1.2.2
[88] tmvnsim_1.0-2 RApiSerialize_0.1.0 tzdb_0.2.0
[91] rmarkdown_2.11 grid_4.1.2 readxl_1.3.1
[94] data.table_1.14.2 callr_3.7.0 git2r_0.29.0
[97] reprex_2.0.1 digest_0.6.29 httpuv_1.6.5
[100] RcppParallel_5.1.5 munsell_0.5.0 stringfish_0.15.5
[103] bslib_0.3.1