stagedtrees2.3.0 package

Staged Event Trees

as_adj_matrix

Convert to an adjacency matrix

as_bn

Convert to a bnlearn object

as_parentslist

Obtain the equivalent DAG as list of parents

as_sevt

Coerce to sevt

barplot.sevt

Bar plots of stage probabilities

ceg

Chain event graph (CEG)

check_sevt

Check sevt objects

ci_matrices

Conditional independences matrices of stages

cid

Context specific interventional discrepancy

compare_stages

Compare two staged event tree

confint.sevt

Confidence intervals for staged event tree parameters

depsubtree

Extract dependency subtree

distance_mat_stages

Compute the distance matrix

edge

Plot an edge

erase_fit

Erase the sevt fit

expand_prob

Expand probabilities of a staged event tree

find_stage

Find the stage of the path

full_indep

Full and independent staged event tree

generate_linear_dataset

Generate a random binary dataset for classification

generate_random_dataset

Generate a random binary dataset

generate_xor_dataset

Generate a xor dataset

get_stage

Get stage or path

igraph-conversion

igraph conversion

inclusions_stages

Inclusions of stages

join_positions

join positions in a staged tree model

join_stages

Join stages

join_unobserved

Join situations with no observations

logLik.sevt

Log-Likelihood of a staged event tree

lr_test

Likelihood Ratio Test for staged trees models

make_ctables

Distribute counts along tree

new_label

New label

node

Plot a node

noisy_xor

noisy xor function

path_probability

Compute probability of a path from root

plot.ceg

igraph's plotting for CEG

plot.sevt

Plot method for staged event trees

predict.sevt

Predict method for staged event tree

print.parentslist

Print a parentslist object

print.sevt

Print a staged event tree

prob

Probabilities for a staged event tree

probdist

Distances between probabilities

random_parentslist

Generate a random parentslist object (DAG)

random_sevt

Generate a random (fitted) sevt

rename_stage

Rename stage(s) in staged event tree

sample_from

Sample from a staged event tree

search_best

Optimal Order Search

search_greedy

Greedy Order Search

sevt

Staged event tree (sevt) class

sevt_add

Add a variable to a staged event tree

sevt_df

Number of parameters of a staged event tree

sevt_fit

Fit a staged event tree

sevt_nvar

Number of variables

sevt_simplify

Simplify a staged tree model

sevt_varnames

Variable names

split_stage_random

Split randomly a stage

stagedtrees

Staged event trees.

stages

The stages of a staged event tree

stages_bhc

Backward hill-climbing

stages_bhcr

Backward random hill-climbing

stages_bj

Backward joining of stages

stages_csbhc

Context-specific Backward hill-climbing

stages_fbhc

Fast backward hill-climbing

stages_hc

Hill-climbing

stages_hclust

Learn a staged tree with hierarchical clustering

stages_kmeans

Learn a staged tree with k-means clustering

stages_simplebhc

Backward hill-climbing for simple staged trees

stndnaming

Standard renaming of stages

subtree

Extract subtree

summary.sevt

Summarizing staged event trees

text.sevt

Add text to a staged event tree plot

tree_idx

return path index

tree_string

Tree string

uni_idx

Unique id from named list

which_class

Find maximum value

write_tikz

Export the staged tree or CEG graph to tikz

Creates and fits staged event tree probability models, which are probabilistic graphical models capable of representing asymmetric conditional independence statements for categorical variables. Includes functions to create, plot and fit staged event trees from data, as well as many efficient structure learning algorithms. References: Carli F, Leonelli M, Riccomagno E, Varando G (2022). <doi: 10.18637/jss.v102.i06>. Collazo R. A., Görgen C. and Smith J. Q. (2018, ISBN:9781498729604). Görgen C., Bigatti A., Riccomagno E. and Smith J. Q. (2018) <arXiv:1705.09457>. Thwaites P. A., Smith, J. Q. (2017) <arXiv:1510.00186>. Barclay L. M., Hutton J. L. and Smith J. Q. (2013) <doi:10.1016/j.ijar.2013.05.006>. Smith J. Q. and Anderson P. E. (2008) <doi:10.1016/j.artint.2007.05.004>.

  • Maintainer: Gherardo Varando
  • License: MIT + file LICENSE
  • Last published: 2024-02-14