You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/groupBMS.R
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@
48
48
#' It therefore aggregates the available subject-level model evidences
49
49
#' according to a random effects model, which assumes that model probabilities
50
50
#' are distributed in the population according to a Dirichlet distribution.
51
-
#' The parameters of the Dirichelet distribution are determined using a variational Bayes algorithm.
51
+
#' The parameters of the Dirichlet distribution are determined using a variational Bayes algorithm.
52
52
#' `groupBMS` provides three statistics associated with the random effects model:
53
53
#' * estimated model frequencies in the population,
54
54
#' * The exceedance probability represents the probability that a specific
@@ -64,7 +64,7 @@
64
64
#' @references Stephan, K. E., Penny, W. D., Daunizeau, J., Moran, R. J., & Friston, K. J. (2009). Bayesian model selection for group studies. Neuroimage, 46(4), 1004-1017.
65
65
66
66
#' @author
67
-
#' Sebastian Hellmann, \email{sebastian.hellmann@@ku.de}\cr
67
+
#' Sebastian Hellmann, \email{sebastian.hellmann@tum.de}\cr
Copy file name to clipboardExpand all lines: statConfR.Rcheck/00_pkg_src/statConfR/R/fitConf.R
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -170,7 +170,7 @@
170
170
#' addition to the set of shared parameters.
171
171
172
172
#' @author Sebastian Hellmann, \email{sebastian.hellmann@tum.de}\cr
173
-
#' Manuel Rausch, \email{manuel.rausch@hochschule-rhein-waal.de}
173
+
#' Manuel Rausch, \email{manuel.rausch@ku.de}
174
174
175
175
# unlike for the other tags, the references are formatted more nicely if each reference is tagged seperately
176
176
#' @references Akaike, H. (1974). A New Look at the Statistical Model Identification. IEEE Transactions on Automatic Control, AC-19(6), 716–723.doi: 10.1007/978-1-4612-1694-0_16\cr
@@ -186,6 +186,7 @@
186
186
#' @references Schwarz, G. (1978). Estimating the dimension of a model. The Annals of Statistics, 6(2), 461–464. doi: 10.1214/aos/1176344136\cr
187
187
#' @references Shekhar, M., & Rahnev, D. (2021). The Nature of Metacognitive Inefficiency in Perceptual Decision Making. Psychological Review, 128(1), 45–70. doi: 10.1037/rev0000249\cr
188
188
#' @references Shekhar, M., & Rahnev, D. (2023). How Do Humans Give Confidence? A Comprehensive Comparison of Process Models of Perceptual Metacognition. Journal of Experimental Psychology: General. doi:10.1037/xge0001524\cr
189
+
#' @references Peters, M. A. K., Thesen, T., Ko, Y. D., Maniscalco, B., Carlson, C., Davidson, M., Doyle, W., Kuzniecky, R., Devinsky, O., Halgren, E., & Lau, H. (2017). Perceptual confidence neglects decision-incongruent evidence in the brain. Nature Human Behaviour, 1(0139), 1–21. doi:10.1038/s41562-017-0139
189
190
190
191
#' @examples
191
192
#' # 1. Select one subject from the masked orientation discrimination experiment
@@ -264,7 +265,9 @@ fitConf <- function(data, model = "SDT",
264
265
fitting_fct<-fitLognorm
265
266
} elseif (model=="logWEV"){
266
267
fitting_fct<-fitLogWEV
267
-
} else stop(paste0("Model: ", model, " not implemented!\nChoose one of: 'WEV', 'SDT', 'IG', 'ITGc', 'ITGcm, 'GN', 'logN', 'logWEV', or 'PDA'"))
268
+
} elseif (model=="RCE"){
269
+
fitting_fct<-fitRCE
270
+
} else stop(paste0("Model: ", model, " not implemented!\nChoose one of: 'WEV', 'SDT', 'IG', 'ITGc', 'ITGcm, 'GN', 'logN', 'logWEV', 'RCE', or 'PDA'"))
#' 'ITGcm', 'logN', and 'logWEV'. Alternatively, if `model="all"` (default),
35
35
#' all implemented models will be fit.
36
36
#' @param nInits `integer`. Number of initial values used for maximum likelihood optimization.
@@ -193,10 +193,25 @@
193
193
#' The parameter \eqn{w} represents the weight that is put on the choice-irrelevant
194
194
#' features in the confidence judgment. \eqn{w} and \eqn{\sigma} are fitted in
195
195
#' addition to the set of shared parameters.
196
+
#'
197
+
#' ### \strong{Response-congruent evidence model (RCE)}
198
+
#' The response-congruent evidence model represents the idea that observers use
199
+
#' all available sensory information to make the discrimination decision, but for confidence judgements,
200
+
#' they only consider evidence consistent with the selected decision and ignore evidence against the decision (Peters et al., 2017).
201
+
#' The model assumes two separate samples of sensory evidence collected in each trial,
202
+
#' each belonging to one possible identity of the stimulus.
203
+
#' Both samples of sensory evidence \eqn{x_{-1}} and
204
+
#' \eqn{x_1} are sampled from Gaussian distributions with a standard deviations of \eqn{\sqrt{1/2}}.
205
+
#' The mean of \eqn{x_{-1}} is given by \eqn{(1 − S) \times 0.25 \times d}; the mean
206
+
#' of \eqn{x_1} is given by \eqn{(1 + S) \times 0.25 \times d}. The sensory evidence
207
+
#' used for the discrimination choice is \eqn{x = x_2 - x_1},
208
+
#' which implies that the discrimination decision is equivalent to standard SDT.
209
+
#' The confidence decision variable y is \eqn{y = - x_1} if the response R is -1 and \eqn{y = x_2} otherwise.
210
+
196
211
197
212
#' @author
198
213
#' Sebastian Hellmann, \email{sebastian.hellmann@tum.de}\cr
199
-
#' Manuel Rausch, \email{manuel.rausch@hochschule-rhein-waal.de}
214
+
#' Manuel Rausch, \email{manuel.rausch@ku.de}
200
215
201
216
# unlike for the other tags, the references are formatted more nicely if each reference is tagged seperately
202
217
#' @references Akaike, H. (1974). A New Look at the Statistical Model Identification. IEEE Transactions on Automatic Control, AC-19(6), 716–723.doi: 10.1007/978-1-4612-1694-0_16\cr
@@ -212,6 +227,8 @@
212
227
#' @references Schwarz, G. (1978). Estimating the dimension of a model. The Annals of Statistics, 6(2), 461–464. doi: 10.1214/aos/1176344136\cr
213
228
#' @references Shekhar, M., & Rahnev, D. (2021). The Nature of Metacognitive Inefficiency in Perceptual Decision Making. Psychological Review, 128(1), 45–70. doi: 10.1037/rev0000249\cr
214
229
#' @references Shekhar, M., & Rahnev, D. (2023). How Do Humans Give Confidence? A Comprehensive Comparison of Process Models of Perceptual Metacognition. Journal of Experimental Psychology: General. doi:10.1037/xge0001524\cr
230
+
#' @references Peters, M. A. K., Thesen, T., Ko, Y. D., Maniscalco, B., Carlson, C., Davidson, M., Doyle, W., Kuzniecky, R., Devinsky, O., Halgren, E., & Lau, H. (2017). Perceptual confidence neglects decision-incongruent evidence in the brain. Nature Human Behaviour, 1(0139), 1–21. doi:10.1038/s41562-017-0139
231
+
215
232
216
233
#' @examples
217
234
#' # 1. Select two subjects from the masked orientation discrimination experiment
0 commit comments