I am trying to perform parameter estimation using an R package called "quickpsy." Using the code you will see below, I am calculating thresholds for each subject.
#import basic libraries
library(quickpsy)
library(tidyverse)
library(ggplot2)
library(extrafont)
loadfonts(device = "win")
# Deney 1 PSE analysis
Deney1_Ra_84$Motivasyon <- as.character(Deney1_Ra_84$Motivasyon)
Deney1_Ra_84$Motivasyonel_Yogunluk <- as.character(Deney1_Ra_84$Motivasyonel_Yogunluk)
# quickpsy to estimate psychometric thresholds 50%
Deney1_psy_fits_50 = quickpsy(Deney1_Ra_84, test_duration, correct, lapses = TRUE, prob = .5,
grouping = c("subject_nr","Motivasyon","Motivasyonel_Yogunluk"), fun = cum_normal_fun, bootstrap="none")
Deney1_psy_fits_50$thresholds
Afterwards, when I manually calculate the means of the variables "Motivasyon" and "Motivasyonel_Yoğunluk" in Excel, I obtain the averages of the thresholds for the interaction of motivasyon and motivasyonel_yoğunluk. However, when I use the following code in R (excluding the variable subject_nr) for the variables "Motivasyon" and "Motivasyonel_Yoğunluk," I obtain different averages.
# quickpsy to estimate psychometric thresholds 50%
Deney1_psy_fits_50 = quickpsy(Deney1_Ra_84, test_duration, correct, lapses = TRUE, prob = .5,
grouping = c("Motivasyon","Motivasyonel_Yogunluk"), fun = cum_normal_fun, bootstrap="none")
What could be the reason for this discrepancy?
I would be grateful for your assistance.
In summary,
I attempted to calculate the mean thresholds for each level of "motivasyon" and "motivasyonel_yoğunluk" both in Excel and R. However, I obtained different results in the two approaches.