# A -> B
# Where B is a categorical variable with 4 levels.
categorical_bugs(nodename = "b",
nodesCatIdx = c(2, 3, 4),
parentnames = "a",
nodesintercepts = c(2.188650, 3.133928, 3.138531),
parentcoefs = list("a"=c(a=1.686432, a=3.134161, a=5.052104)))
Run the code above in your browser using DataLab