Package: gRain 1.4.5

Søren Højsgaard

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.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://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

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

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

cpp

7.70 score 2 stars 8 packages 390 scripts 2.0k downloads 9 mentions 56 exports 30 dependencies

Last updated 2 months agofrom:5d5961dc07. Checks:OK: 1 WARNING: 1. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 17 2024
R-4.5-linux-x86_64WARNINGDec 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 Dec 17 2024.

Last update: 2024-09-23
Started: 2024-09-23

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