data(asia)
asia
data set contains the following variables:
D
(dyspnoea), a two-level factor with levels yes
and no
.
T
(tuberculosis), a two-level factor with levels
yes
and no
.
L
(lung cancer), a two-level factor with levels
yes
and no
.
B
(bronchitis), a two-level factor with levels
yes
and no
.
A
(visit to Asia), a two-level factor with levels
yes
and no
.
S
(smoking), a two-level factor with levels yes
and no
.
X
(chest X-ray), a two-level factor with levels
yes
and no
.
E
(tuberculosis versus lung cancer/bronchitis), a
two-level factor with levels yes
and no
. # load the data and build the correct network from the model string.
data(asia)
res = empty.graph(names(asia))
modelstring(res) = "[A][S][T|A][L|S][B|S][D|B:E][E|T:L][X|E]"
plot(res)
Run the code above in your browser using DataLab