simDAG 0.4.0
New Features
- Added the
network(),network_td()andnet()functions to allow simulations with network based dependencies among individuals. This includes static and dynamic networks in regularDAGs and discrete-time simulations.
Enhancements
- Added the
kindargument tonode_identity()to allow different kinds of input to theformulaargument. - Added the
include_networksargument todag2matrix()andas.igraph(), due to the new networks-based simulation features. - Added the
unifargument tonode_time_to_event()to allow users to generate multiple time-to-event nodes at once that are basically using the same "seed" value for the random number generator.
Bug Fixes
- Fixed a minor bug that occurred when using
node + DAG(in this order). - Fixed a faulty error message produced when using
formulawith just one predictor in nodes that do not need an intercept. - Fixed a faulty error message when using a string of a
formulawithnode_identity()insim_discrete_time().
Documentation
- Added a new vignette to describe the new networks-based simulation features.
- Updated existing documentation pages to include networks-based simulation features.