SimData: Data simulated from the restricted 2HTM

Description Usage Format Details Examples

Description

Data set generated from a restricted Two-High Threshold model.

Usage

1

Format

A data frame with five variables:

subj

subjects number

group

group label of the subjects

tree

condition of the current trial

cat

observed response category

rt

observed response time in ms

Details

Fourty subjects with thirty trials per condition (Studied items, new Items) were simulated.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
###################################################################
# Detect-Guess variant of the restricted Two-High Threshold model.
###################################################################

head(SimData)

mdl_2HTM <- "
# targets
d+(1-d)*g     ; 0
(1-d)*(1-g)   ; 1

# lures
(1-d)*g       ; 0
d+(1-d)*(1-g) ; 1

# d: detect; g: guess
"

model <- to_rtmpt_model(mdl_file = mdl_2HTM)

data <- to_rtmpt_data(raw_data = SimData, model = model)

# this might take some time to run
rtmpt_out <- fit_rtmpt(model = model, data = data)

# convergence
## traceplot and summary of the first six parameters
plot(rtmpt_out$samples[,1:6])
summary(rtmpt_out)

rtmpt documentation built on Oct. 11, 2021, 9:09 a.m.