Learn R Programming

Copy Link

Version

Install

install.packages('gRain')

Monthly Downloads

3,324

Version

1.4.6

License

GPL (>= 2)

Maintainer

Søren Højsgaard

Last Published

March 2nd, 2026

Functions in gRain (1.4.6)

old_replace_cpt

Replace CPTs in Bayesian network
repeatPattern

Create repeated patterns in Bayesian networks
simplify_query

Simplify output query to a Bayesian network
replace_cpt

Replace CPTs in Bayesian network
grain_predict

Make predictions from Bayesian network
querygrain

Query a Bayesian network
repeat_pattern

Create repeated patterns in Bayesian networks
components_gather

Compile conditional probability tables / cliques potentials.
generics

gRain generics
mendel

Mendelian segregation
compileCPT

Compile conditional probability tables / cliques potentials.
old_components_extract

Extract conditional probabilities and clique potentials from data.
components_extract

Extract conditional probabilities and clique potentials from data.
load-save-hugin

Load and save Hugin net files
finding

Set, retrieve, and retract finding in Bayesian network.
example_grass

Wet grass example
grain-main

Create Bayesian network
example_chest

Chest clinic example
grain-simulate

Simulate from Bayesian network
old_grain_evidence

Set, update and remove evidence.
cpt

Create conditional probability tables (CPTs)
grain_compile

Compile Bayesian network.
grain_propagate

Propagate in a Bayesian network
logical

Conditional probability tables based on logical dependencies
grain_evidence

Set, update and remove evidence.
internal-grain

Internal functions for the gRain package