A major update of stagedtrees (v2.0.0) is available on CRAN.
The update will almost surely break any code written with v1.0.2. Functions naming and functions parameters have been updated to simplify user experience. Check the complete changelog for details.
2.0.0
This version introduces major changes, in functions capabilities
and in functions naming.
These changes are almost surely breaking any previous code
using older versions of the package.
In particular, all functions named *.sevt but class methods are now
called differently.
Moreover, various improvements and functionalities are added
to better deal with unobserved situations and to improve
computations.
Additional model selection methods based on clustering are
now available.
COMPLETE CHANGELOG:
- DESCRIPTION updated.
- documentation updated.
- improve code comments.
- reduced exported functions.
- removed the
fitparameter fromfull,indep. Nowfullandindepalways fit the model whilesevtis just the basic constructor of thesevtclass. - in
fullandindepby default unobserved situations are joined usingjoin_unobserved, and probabilities are fitted only after the unobserved situations are joined, improving speed. Moreover, the name of the unobserved stages are stored asname_unobservedin the staged tree object. - update internal function
new_labelto improve speed. plot.sevtallows now to set edges color withcol_edges.- In
plot.sevtandbarplot.sevtit is possible to specify stages that should be ignored and not plotted via theignoreargument, by default thename_unobservedstages are ignored. plot.sevtadds variables names by default (var_namesargument).- fix in
compare_stages: because of changes inplot.sevtwe need to specify that the root is always considered identical. - internal function
stndnamingaccepts nowuniq,prefixand
ignorearguments, which control how stage names are generated and
if some stage names should be left untouched (default: thename_unobservedstages). - in
stages_bj(previouslybj.sevt) distance is now passed with a character and no longer as a function. - two new model selection function:
stages_hclustandstages_kmeans, to learn stage structure using hierarchical or
k-means clustering. - all model selection functions accept
scopeandignore
parameters that allow to specify among which variables run the algorithm and which stages should be left untouched (default: thename_unobservedstages). - replace
1:length(x)with the suggestedseq_alongin all code. - distance names in
stages_bjandstages_hclustare compatibles. - fixed bug in some probability distance functions when 0 probabilities.
- Conversion generic function
as.sevt, only implemented one method forbn.fitclass from bnlearn package - fix
inclusions_stagesand provide better output.