m1 <- model.dmc(
p.map = list(a="1",v="F",z="1",d="1",sz="1",sv="F",t0="1",st0="1"),
match.map = list(M=list(s1="r1", s2="r2")),
factors = list(S=c("s1","s2"), F=c("f1","f2")),
constants = c(st0=0,d=0),
responses = c("r1","r2"),
type = "rd")
# Parameter vector names are: ( see attr(,"p.vector") )
# [1] "a" "v.f1" "v.f2" "z" "sz" "sv.f1" "sv.f2" "t0"
#
# Constants are (see attr(,"constants") ):
# st0 d
# 0 0
#
# Model type = rd
attr(m1,"p.vector")
# a v.f1 v.f2 z sz sv.f1 sv.f2 t0
# NA NA NA NA NA NA NA NA
pVec <- c(1,1,1,1, 1,1,1,1)
names(pVec) <- names(attr(m1, "p.vector"))
accMat1 <- getAccumulatorMatrix(pVec, "s1.f1.r2", m1, FALSE)
## col_names
##row_names a v z d sz sv t0 st0
## r1 1 1 0 0 1 1 1 0
## r2 1 1 0 0 1 1 1 0
accMat2 <- getAccumulatorMatrix(pVec, "s1.f1.r2", m1, TRUE)
Run the code above in your browser using DataLab