- The
permutation_test()
function now properly checks that its argumentsx
andy
can be compared. - The p-value calculations of
permutation_test()
andbootstrap()
have been adjusted by adding 1 to both the number of permutations/bootstrap samples and the number of extreme events so that these estimates are never zero. The documentation has also been clarified regarding p-values emphasizing that these are estimates only.
- The
plot_compare()
function now supportsnegCol
andposCol
for specifying the color of the positive and negative differences in transition and initial probabilities. - The
plot_mosaic()
function now plots the x-axis on the top and rotates the labels 90 degrees only when there are more than three groups.
- The
detailed
argument ofestimate_centrality_stability()
has been removed. Previously this argument had no effect on the output of the function. - Removed several duplicated entries in the documentation.
- The
prepare_data()
function now produces an object of classtna_data
, which can be directly used as an argument tobuild_model()
and other methods. - The
prepare_data()
function now supportsorder
when used together withtime
andactor
. - The
prepare_data()
function gains theunused_fn
argument oftidyr::pivot_wider()
to process any extra columns. The default is to keep all columns and use the first value. - Added the function
compare()
to comparetna
models and weight matrices. This function produces an object of classtna_comparison
which hasprint()
andplot()
methods. - Added the function
plot_mosaic()
which can be used to produce mosaic plots of transition counts for frequency-based transition network models and to contrast the state counts between groups. - Fixed an issue with
plot.tna_communities()
which now checks for the availability of a particular community detection method before plotting. - Made several arguments in the plot methods of the package accessible to the user.
event2sequence()
has been renamed toprepare_data()
. The function is now also more general and can process more date formats.- Added a
method
argument tobootstrap()
. The new default option"stability"
implements a bootstrapping scheme where the edge weights are compared against a range of "consistent" weights (see the documentation for details). The old functionality can be accessed withmethod = "threshold"
. - Fixed an issue with
permutatation_test()
whenx
andy
had a differing number of columns. - Community detection methods can now be selected using the
methods
argument incommunities()
. - The
build_model()
function has gained the argumentcols
which can be used to subset the columns of the data forstslist
anddata.frame
inputs. - Removed all
verbose
arguments in favor ofoptions(rlib_message_verbosity = "quiet").
andoptions(rlib_warning_verbosity = "quiet")
.
- Fixed an issue when checking the validity of
character
type arguments. - Improved the
bootstrap()
function to determine edge significance based on deviation from the observed value, rather than a fixed threshold. - Added a helper function
event2sequence()
to parse event data into sequence data.
- Added support for grouped sequence data (clusters).
- Added bootstrapping, permutation test, and centrality stability functionalities.
- Initial version.