correlation using names within a condition

Hi I am new to R and am trying to create 3 correlations:
MarsIB vs. Vocoded performance
MarsIB vs. speech in noise performance
Vocoded performance vs. speech in noise performance

I also don't know if I have the correct packages loaded.
Here is the code showing condition

TaskGroupedSummary <- task_autoscored_full %>%
  dplyr::group_by(Participant, Condition) %>%
  dplyr::summarise(Avg.Intell = mean(Propcorrect)) %>%
  pivot_wider(names_from = Condition, values_from = Avg.Intell)

And here is the Mars Score add in

setwd("/Users/lilyisakoff/Desktop/HonorsData/MaRs-IB_Score/results")
AvgScores <- read.csv("Honors_MaRs-IB_participant_scores.csv")
SpeechTask_MaRs <- left_join(TaskGroupedSummary,AvgScores, by = "Participant")
setwd(output.dir)
write.table(SpeechTask_MaRs, file="SpeechTask_MaRs.csv",append= FALSE, sep = ",", row.names = FALSE, col.names = TRUE)
DT:: datatable(SpeechTask_MaRs)

Thanks!

Hi, can you provide a reproducible example of your datasets? We don't have access to them.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.