dGNG <- design(Rlevels = c("left","right"),
factors=list(subjects=1,S=c("left","right")),
functions=list(
TIMEOUT=function(d)rep(2.5,nrow(d)),
# no go response level
Rnogo=function(d)factor(rep("left",nrow(d)),levels=c("left","right")),
# go response level
Rgo=function(d)factor(rep("right",nrow(d)),levels=c("left","right"))),
formula=list(v~S,a~1, Z~1, t0~1),
model=DDMGNG)
p_vector <- sampled_pars(dGNG)
Run the code above in your browser using DataLab