nutterb / dbn

Simulation of Discrete-Time Dynamic Bayesian Networks
0 stars 0 forks source link

Plotting bug: adding dependencies to time [t-k], where k>=2 #11

Open nutterb opened 7 years ago

nutterb commented 7 years ago
g <- dbn(~ age[t]|age[t-1]
         + map[t]|age[t-1]*antihypertensives[t-1]*race*map[t-1]*map[t-2]*map[t-3]*map[t-4]
         + antihypertensives[t] | antihypertensives[t-1]*map[t-1]
         + hdl[t]|age[t-1]*statins[t-1]*race*hdl[t-1], 
         max_t = 5)
plot(g)
plot(g, expand=TRUE)

Observe the lines between map nodes below.

plot