rebastaba: Handling Bayesian networks

Creation and manipulation of general Bayesian networks [/bn]. Here "general" means with multivariate nodes and a great variaty of distributions, for continuous, integer or categoric variables. New /bn/ can be generated from existing /bn/. Data sets can be simulated from /bn/. Dags of /bn/ can be graphed... "rbsb" for "ReBaStaBa" which means "R'eseaux Bay'esiens pour la Statistique Bay'esienne", that is "Bayesian Networks for Bayesian Statistics".

AuthorJean-Baptiste Denis <>, Marie-Laure Delignette-Muller <> and Regis Pouillot <>
Date of publicationNone
MaintainerJean-Baptiste Denis <>
LicenseGPL (>= 2)

View on R-Forge

Man pages

alk2list: transforms a /alk/ object into a list

alkvar: returns the variable names of an /alk/

and4bn: adds a new node to a bn object

anode4bn: very simplified version of and4bn

bn2alk: gets an alk from a given bn

bn2bn: extracts a bn from a bn (way number 1)

bn2bugs: translates a bn into a bugs model

bn2dn: simulates data from a bn

bn2gn: creates a gn object from a bn object

bn2jagscript: constructs a Jags script from a bn

bn2list: transforms a /bn/ into a list

bn2model: expresses the model formulae

bn2nd: extracts and returns some traits of a node defined into a bn

bn2pam: gets the pam from a /bn/.

bn2pta: computes the probability table associated to a numcat/parcat...

categ3beta: compute a univariate categ distribution

categ3beta2: compute a bivariate categ distribution

categ3betap: compute a p-variable categ distribution

check8alk: checks an /alk/

children8bn: returns the direct children of a bn

code4bn: builds the code for the nk-th node of a /bn/.

complete8alk: completes an alk with respect to a given bn

connect8bgn: determines if a bn/gn is connected

cycle8bgn: detects if a cycle exists in a bn/gn object

df2bn: initializes a bn object from a data frame

dim8nd: computes the dimension of a node

Dirac4bn: introduce a Dirac distribution on one univariate node

dn2bstat: Computes the bivariate statistics for the variables of a /dn/

dn2csv: creates a csv file containing dn@df

dn2score: Computes the individual scores for a /dn/

dn2ustat: Computes the univariate statistics for the variables of a...

draw8Dirichlet: simulates random draws from a Dirichlet

draw8dist: returns the distances for the selection to be operated with...

draw8edcg: simulates random draws for a numcat distribution

draw8empidata: performs an empidata [multivariate] draw or prediction

draw8multinom: simulates random draw from a multinomial

draw8predg: returns the predicted individuals for an empidata node.

draw8predi: returns the predicted individual for an empidata node.

draw8sele: returns the candidate individuals for an empidata node.

easyp2code: transforms an easyp expression into an R/bugs block

easyp2code1: expands an easyp expression

easyp2code2: transforms an easyp expression into an R/bugs block

easyp2dim: returns the dimension of the variable defined in an easyp...

easyp3expanded: returns an expanded easyp from an easyp

easyp3trouve: checks the consistency of the result obtained after easyp3cut...

easyps2dim: returns the dimension of the variable defined with an easyp...

expr3bugs: returns the piece of Bugs code for standard distributions

expr3func: builds generating function from code

form3nd: symbolizes the kind of nodes

gn2bn: creates a bn object from a gn object

grappa4check: checks if the provided bn is Grappa-compatible

help8ltype: provides information about type of links

ind8bgn: returns the nodes between two nodes

isalkrepeatable: indicates if the link is a standard repeatable link

isndmulti: indicates if the node is a standard multidimensional node

list2alk: transforms a consistent list into a new alk

list2bn: transforms a consistent list into a new bn object

list2win: transforms a convenient list into a /win/

mnd4bn: modifies an existing node into a bn object

modify4bn: plot an object rbsb to interactively modify its graph

nbrep4alk: determines the number of repetitions of an alk

nd2bn: extracts the sub-bn comprising a node and its direct parents

new8alk: generates a new alk from user specification

new8audit: produced a bn of kind 'audit' from a /gn/

new8noralk: very simplified version of new8alk

normalize4pta: normalize pt

parents8alk: finds the parents at the variable level of an /alk/

parents8bn: returns the direct parents of a bn

parents8win: finds the parents at the variable level of a /win/

part8bgn: classifies a set of nodes according to a subset of them

plan0: generates values from one node of a bn

plan1: generates imposed values to start a simulation plan on a bn

plot8bn: plots an object bn

plot8dn: Plots the numeric or categoric variables of a dn object

plot8dnca: univariate plot for a categoric variable

plot8dncaca: bivariate plot for two categoric variables

plot8dnco: univariate plot for a continuous variable

plot8dncoca: bivariate plot for a continuous and a categoric variables

plot8dncoco: bivariate plot for two continuous variables

plot8gene: plots ancestry [descendants] of node(s) of a bn/gn

plot8path: plots separately all paths between two nodes

porder: finds a parentship order onto the nodes and more

print8alk: prints the node-variable names

print8alkcomp: prints an alk object supposed to be completed for a bn

print8alkuse: prints an alk object not supposed to be completed for a bn

print8bn: prints a bn object

print8dn: prints a /dn/

print8link: prints an interpretation of one link of a bn

print8links: prints the interpretation of some links of a bn

print8pt2: prints a pt object of dimension two

print8pta: prints the node-variable names

print8win: prints a /win/

range8node: returns the variable ranges of a given node

rcatbn: creates a pseudo-random numcat bn object

read8audit: produced an audit /bn/ from a text file

read8bn: produced a /bn/ from a text file

rebastaba: draws some Bayesian networks for illustration

rebastaba3k: assigns the rsba constants

repartition3dn: scans the repartition of the values of dn@df

rnd4bn: removes a series of nodes into a bn object

rnorbn: creates a pseudo-random normal bn object from a given bn

rsba.alk-class: Class "alk" to define *a*sked *l*in*k* by the user

rsba.pta-class: Class "pta" to store probability tables Class "win" to define a node from a data.frame Class for Bayesian Networks

rsdn.dn-class: Class for data sets associated to bn, most often simulated

score4dn: Completes a dn with its score

simulate8bn: simulates a /dn/ from a /bn/

study8nd: extracts sub-bn(s) with one parent one child from a bn

subn: finds independent sub-bn in a BN

uniform4bn: introduces a uniform distribution on one node

valid8alk: checks an /alk/

valid8bn: checks a /bn/

valid8dn: checks a /dn/

valid8pta: checks a /pta/

valid8win: checks a /win/

var4alk: finds the variable names for an alk.

variables8win: returns all variables involved in a /win/

win2list: transforms into a list a /win/

write8bn: writes a /bn/ to a file

zero2bn: starting an empty bn


alk2list Man page
alk-class Man page
alkvar Man page
and4bn Man page
anode4bn Man page
bn2alk Man page
bn2bn Man page
bn2bugs Man page
bn2dn Man page
bn2gn Man page
bn2jagscript Man page
bn2list Man page
bn2model Man page
bn2nd Man page
bn2pam Man page
bn2pta Man page
bn-class Man page
categ3beta Man page
categ3beta2 Man page
categ3betap Man page
check8alk Man page
children8bn Man page
code4bn Man page
complete8alk Man page
connect8bgn Man page
cycle8bgn Man page
df2bn Man page
dim8nd Man page
Dirac4bn Man page
dn2bstat Man page
dn2csv Man page
dn2score Man page
dn2ustat Man page
dn-class Man page
draw8Dirichlet Man page
draw8dist Man page
draw8edcg Man page
draw8empidata Man page
draw8multinom Man page
draw8predg Man page
draw8predi Man page
draw8sele Man page
easyp2code Man page
easyp2code1 Man page
easyp2code2 Man page
easyp2dim Man page
easyp3expanded Man page
easyp3trouve Man page
easyps2dim Man page
expr3bugs Man page
expr3func Man page
form3nd Man page
gn2bn Man page
grappa4check Man page
help8ltype Man page
ind8bgn Man page
isalkrepeatable Man page
isndmulti Man page
list2alk Man page
list2bn Man page
list2win Man page
mnd4bn Man page
modify4bn Man page
nbrep4alk Man page
nd2bn Man page
new8alk Man page
new8audit Man page
new8noralk Man page
normalize4pta Man page
parents8alk Man page
parents8bn Man page
parents8win Man page
part8bgn Man page
plan0 Man page
plan1 Man page
plot8bn Man page
plot8dn Man page
plot8dnca Man page
plot8dncaca Man page
plot8dnco Man page
plot8dncoca Man page
plot8dncoco Man page
plot8gene Man page
plot8path Man page
plot,bn-method Man page
plot,dn-method Man page
porder Man page
print8alk Man page
print8alkcomp Man page
print8alkuse Man page
print8bn Man page
print8dn Man page
print8link Man page
print8links Man page
print8pt2 Man page
print8pta Man page
print8win Man page
print,alk-method Man page
print,bn-method Man page
print,dn-method Man page
print,pta-method Man page
print,win-method Man page
pta-class Man page
range8node Man page
rcatbn Man page
read8audit Man page
read8bn Man page
rebastaba Man page
rebastaba3k Man page
repartition3dn Man page
rnd4bn Man page
rnorbn Man page
score4dn Man page
simulate8bn Man page
study8nd Man page
subn Man page
uniform4bn Man page
valid8alk Man page
valid8bn Man page
valid8dn Man page
valid8pta Man page
valid8win Man page
var4alk Man page
variables8win Man page
win2list Man page
win-class Man page
write8bn Man page
zero2bn Man page


rebastaba/man/study8nd.Rd rebastaba/man/df2bn.Rd rebastaba/man/bn2pam.Rd rebastaba/man/plot8bn.Rd rebastaba/man/parents8win.Rd rebastaba/man/rnorbn.Rd rebastaba/man/print8link.Rd rebastaba/man/complete8alk.Rd rebastaba/man/var4alk.Rd rebastaba/man/isndmulti.Rd rebastaba/man/bn2nd.Rd rebastaba/man/part8bgn.Rd rebastaba/man/help8ltype.Rd rebastaba/man/normalize4pta.Rd rebastaba/man/list2bn.Rd rebastaba/man/rcatbn.Rd rebastaba/man/valid8win.Rd rebastaba/man/write8bn.Rd rebastaba/man/read8audit.Rd rebastaba/man/valid8dn.Rd rebastaba/man/bn2model.Rd rebastaba/man/draw8dist.Rd rebastaba/man/plot8dncoca.Rd rebastaba/man/bn2bugs.Rd rebastaba/man/parents8alk.Rd rebastaba/man/bn2list.Rd rebastaba/man/porder.Rd rebastaba/man/bn2pta.Rd rebastaba/man/categ3beta.Rd rebastaba/man/plot8dn.Rd rebastaba/man/print8bn.Rd rebastaba/man/ind8bgn.Rd rebastaba/man/bn2bn.Rd rebastaba/man/list2alk.Rd rebastaba/man/children8bn.Rd rebastaba/man/categ3beta2.Rd rebastaba/man/range8node.Rd rebastaba/man/zero2bn.Rd rebastaba/man/bn2dn.Rd rebastaba/man/dn2csv.Rd rebastaba/man/rsba.alk-class.Rd rebastaba/man/easyps2dim.Rd rebastaba/man/bn2jagscript.Rd rebastaba/man/easyp2code1.Rd rebastaba/man/grappa4check.Rd rebastaba/man/rnd4bn.Rd rebastaba/man/form3nd.Rd rebastaba/man/read8bn.Rd rebastaba/man/mnd4bn.Rd rebastaba/man/new8audit.Rd rebastaba/man/nbrep4alk.Rd rebastaba/man/print8dn.Rd rebastaba/man/rsdn.dn-class.Rd rebastaba/man/new8alk.Rd rebastaba/man/print8alkcomp.Rd rebastaba/man/print8links.Rd rebastaba/man/print8alk.Rd rebastaba/man/plan1.Rd rebastaba/man/modify4bn.Rd rebastaba/man/expr3bugs.Rd rebastaba/man/dn2bstat.Rd rebastaba/man/rsba.pta-class.Rd rebastaba/man/alkvar.Rd rebastaba/man/draw8predg.Rd rebastaba/man/draw8multinom.Rd rebastaba/man/ rebastaba/man/ rebastaba/man/rebastaba3k.Rd rebastaba/man/check8alk.Rd rebastaba/man/bn2gn.Rd rebastaba/man/draw8Dirichlet.Rd rebastaba/man/parents8bn.Rd rebastaba/man/valid8pta.Rd rebastaba/man/dn2ustat.Rd rebastaba/man/and4bn.Rd rebastaba/man/cycle8bgn.Rd rebastaba/man/draw8edcg.Rd rebastaba/man/plot8dncaca.Rd rebastaba/man/valid8bn.Rd rebastaba/man/easyp3trouve.Rd rebastaba/man/plot8gene.Rd rebastaba/man/gn2bn.Rd rebastaba/man/easyp3expanded.Rd rebastaba/man/Dirac4bn.Rd rebastaba/man/print8pt2.Rd rebastaba/man/bn2alk.Rd rebastaba/man/draw8empidata.Rd rebastaba/man/easyp2code.Rd rebastaba/man/repartition3dn.Rd rebastaba/man/print8win.Rd rebastaba/man/print8alkuse.Rd rebastaba/man/variables8win.Rd rebastaba/man/nd2bn.Rd rebastaba/man/dim8nd.Rd rebastaba/man/plot8path.Rd rebastaba/man/draw8predi.Rd rebastaba/man/isalkrepeatable.Rd rebastaba/man/subn.Rd rebastaba/man/easyp2dim.Rd rebastaba/man/draw8sele.Rd rebastaba/man/expr3func.Rd rebastaba/man/new8noralk.Rd rebastaba/man/print8pta.Rd rebastaba/man/list2win.Rd rebastaba/man/dn2score.Rd rebastaba/man/rebastaba.Rd rebastaba/man/code4bn.Rd rebastaba/man/alk2list.Rd rebastaba/man/score4dn.Rd rebastaba/man/categ3betap.Rd rebastaba/man/uniform4bn.Rd rebastaba/man/valid8alk.Rd rebastaba/man/easyp2code2.Rd rebastaba/man/plot8dncoco.Rd rebastaba/man/simulate8bn.Rd rebastaba/man/plot8dnca.Rd rebastaba/man/anode4bn.Rd rebastaba/man/win2list.Rd rebastaba/man/plot8dnco.Rd rebastaba/man/connect8bgn.Rd rebastaba/man/plan0.Rd

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.