simDAG 0.3.0
New Features
- Support for random effects and random slopes (mixed model syntax) has been added to the
formulainterface ofnode()andnode_td()when using nodes of type"gaussian","binomial"or"poisson". - Added seven new node types:
node_aftreg(),node_ahreg(),node_poreg(),node_ypreg(),node_ehreg(),node_zeroinfl()andnode_mixture().
Enhancements
- Added the
referenceargument torbernoulli()andrcategorical()to make it easier to specify the reference category when coding the output as a factor variable. +.DAGnow checks whether theDAGwould become cyclic when adding anode()and returns an error if it does.- Added the
include_td_nodesandinclude_root_nodesarguments toas.igraph.DAG(). - Changed the default of
n_coresin thesim_n_datasets()function to 1 fromparallel::detectCores() - Function input to the
cens_distargument in thenode_cox()function is now allowed. - The argument
as_two_colswas added to thenode_cox()function to allow users to return only the time-to-event as a single column if no censoring is applied.
Bug Fixes
- Fixed a bug that occurred when a user-specified root node function returned a
data.frame-like object with more than one column. - Fixed a bug when printing the structural equation of a poisson node, in which the
exp()call did not show up when the node was defined using theformulaargument.
Documentation
- Added new "cookbook" vignette to showcase more possible use cases of the package.
- Visual update of the DAGs shown in the vignette figures.