The new version of the R-package stagedtrees is available on CRAN.
This new version implements some bug fixes and two new functions:
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"))
##  "5"
get_path(model, "Kids", 5)
## Articles Gender ## 1 0 male ## 3 1-2 male ## 5 >2 male
- fix #73; naive.sevt not passing distance arg
indep, probabilities should not be of class table (it was triggering a bug in summary)
subtree, now removing unused probabilities (it was triggering a bug in summary)
- fixing testing without long double
- fixing some errors in testing
- update some tests with unquoted expression
- new functions
get_pathand relative tests