Package: gRain 1.4.5

gRain: Bayesian Networks

Probability propagation in Bayesian networks, also known as graphical independence networks. Documentation of the package is provided in vignettes included in the package and in the paper by Højsgaard (2012, <doi:10.18637/jss.v046.i10>). See 'citation("gRain")' for details.

Authors:Søren Højsgaard [aut, cre]

gRain_1.4.5.tar.gz
gRain_1.4.5.zip(r-4.5)gRain_1.4.5.zip(r-4.4)gRain_1.4.5.zip(r-4.3)
gRain_1.4.5.tgz(r-4.4-x86_64)gRain_1.4.5.tgz(r-4.4-arm64)gRain_1.4.5.tgz(r-4.3-x86_64)gRain_1.4.5.tgz(r-4.3-arm64)
gRain_1.4.5.tar.gz(r-4.5-noble)gRain_1.4.5.tar.gz(r-4.4-noble)
gRain_1.4.5.tgz(r-4.4-emscripten)gRain_1.4.5.tgz(r-4.3-emscripten)
gRain.pdf |gRain.html
gRain/json (API)
NEWS

# Install 'gRain' in R:
install.packages('gRain', repos = c('https://hojsgaard.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/hojsgaard/grain/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

9.31 score 2 stars 7 packages 337 scripts 3.2k downloads 9 mentions 56 exports 30 dependencies

Last updated 20 days agofrom:65f181eaa7. Checks:OK: 6 NOTE: 3. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 17 2024
R-4.5-win-x86_64OKOct 17 2024
R-4.5-linux-x86_64OKOct 17 2024
R-4.4-win-x86_64OKOct 17 2024
R-4.4-mac-x86_64OKOct 17 2024
R-4.4-mac-aarch64OKOct 17 2024
R-4.3-win-x86_64NOTEOct 17 2024
R-4.3-mac-x86_64NOTEOct 17 2024
R-4.3-mac-aarch64NOTEOct 17 2024

Exports:absorbEvidenceandtabandtablebooltabcompile_cptcompile_potcompileCPTcompilePOTcptcptableevidence_addevidence_dropevidence_getevidence_probextract_cptextract_margextract_potextractCPTextractMARGextractPOTgetEvidencegetFindinggetgingetgraingraingrain.CPTspecisCompiledisPropagatedloadHuginNetmarg2potmendelnodeNamesnodeStatesortabortableparse_cptpEvidencepFindingpot2margprintlistpropagateLSqgrainquerygrainrepeat_patternrepeatPatternreplace_cptreplaceCPTretractEvidenceretractFindingsaveHuginNetsetEvidencesetFindingsimplify_querysimulate.grainsplitVecuniverse

Dependencies:backportsbroomclicpp11dplyrfansigenericsgluegRbaseigraphlatticelifecyclemagrittrMatrixpillarpkgconfigpurrrR6RcppRcppArmadilloRcppEigenrlangstringistringrtibbletidyrtidyselectutf8vctrswithr

Graphical Independence Networks

Rendered fromgrain.rmdusingknitr::knitron Oct 17 2024.

Last update: 2024-09-20
Started: 2024-07-06

Readme and manuals

Help Manual

Help pageTopics
Compile conditional probability tables / cliques potentials.compileCPT compilePOT
Extract conditional probabilities and clique potentials from data.components_extract extract_cpt extract_marg extract_pot marg2pot pot2marg
Compile conditional probability tables / cliques potentials.compile_cpt compile_pot components_gather parse_cpt parse_cpt, parse_cpt.default parse_cpt.xtabs,
Create conditional probability tables (CPTs)cpt cptable
Chest clinic exampleexample_chest example_chest_cpt
Wet grass exampleexample_grass example_grass_cpt
Set, retrieve, and retract finding in Bayesian network.finding getFinding pFinding retractFinding setFinding
gRain genericsgenerics isCompiled isPropagated nodeNames nodeNames.grain nodeStates nodeStates.grain rip.grain universe universe.grain vpar.cpt_grain vpar.cpt_spec
Compile Bayesian network.compile.cpt_grain compile.grain compile.pot_grain grain_compile
Set, update and remove evidence.evidence_add evidence_drop evidence_get evidence_prob grain_evidence
Make predictions from Bayesian networkgrain_predict predict.grain
Propagate in a Bayesian networkgrain_propagate propagate.grain propagateLS propagateLS__
Create Bayesian networkgrain grain-main grain.CPTspec grain.cpt_spec grain.dModel grain.igraph grain.pot_spec
Simulate from Bayesian networkgrain-simulate simulate.grain
Load and save Hugin net filesload-save-hugin loadHuginNet saveHuginNet
Conditional probability tables based on logical dependenciesandtab andtable booltab logical ortab ortable
Mendelian segregationmendel
Extract conditional probabilities and clique potentials from data.extractCPT extractMARG extractPOT old_components_extract
Set, update and remove evidence.absorbEvidence getEvidence old_grain_evidence pEvidence retractEvidence setEvidence
Replace CPTs in Bayesian networkold_replace_cpt replaceCPT
Query a Bayesian networkask ask.grain qgrain querygrain querygrain.grain
Create repeated patterns in Bayesian networksrepeat_pattern
Create repeated patterns in Bayesian networksrepeatPattern
Replace CPTs in Bayesian networkreplace_cpt replace_cpt.cpt_grain
Simplify output query to a Bayesian networksimplify_query