Recent Releases of tna
tna - 0.5.0
- The
permutation_test()function now properly checks that its argumentsxandycan 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.tna_centralities()andplot.group_tna_centralities()functions now plot the centralities in the same order as provided in themeasuresargument. - The
plot.tna()andplot_model()functions now use the median edge weight as the default value for thecutargument. - Fixed the
fromandtocolumns inbootstrap()output, which were inverted from the true edge direction. - A plot method has been added for the
bootstrap()output, which plots the corresponding network where non-significant edges have been pruned. - The function
permutation_test()is now a method for both ungrouped (build_model()) and grouped (group_model()) models. For grouped models, the function performs the test between every unique pair of groups. - A new argument
adjusthas been added forpermutation_test()to optionally adjust p-values usingp.adjust. By default, the p-values are not adjusted (adjust = "none"). - A new argument
groupwisehas been added forgroup_model(). WhenFALSE(the default), scaling methods listed inscalingare performed globally over the groups. WhenTRUE, the scaling is performed within each group instead (this was the default behavior in previous versions of the package). - Added a
simulate()method fortnaobjects. For models withtype = "relative", this function simulates sequence data based on the initial probabilities and transition probability matrix. - Added the function
plot_frequencies()that can be used to plot the state frequency distribution for bothtnaandgroup_tnaobjects. - Added the function
import_data()to read wide format sequence data into long format. - Fixed an issue with
prepare_data()that resulted in excessive console output. - Switched to
matrixas the internal data format used by TNA models for performance improvements across all functions. - Added a new dataset
group_regulation_long.
- R
Published by sonsoleslp 9 months ago
tna - 0.4.2
- The
plot_compare()function now supportsnegColandposColfor specifying the color of the positive and negative different 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.
- R
Published by sonsoleslp about 1 year ago
tna - 0.4.0
- 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 supportsorderwhen used together withtimeandactor. - The
prepare_data()function gains theunused_fnargument 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 comparetnamodels and weight matrices. This function produces an object of classtna_comparisonwhich 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.
- R
Published by sonsoleslp about 1 year ago