The new version of the R-package stagedtrees is available on CRAN.

This new version implements some bug fixes and two new functions: get_stage and get_path.

The new functions can be used to obtain the stage associated to a given path or viceversa, the paths relative to a given stage.

model <- PhDArticles[,1:3] %>% full %>% bhc.sevt

get_stage(model, c(Articles = "1-2",Gender = "male"))
## [1] "5"
get_path(model, "Kids", 5)
##   Articles Gender
## 1        0   male
## 3      1-2   male
## 5       >2   male

News