Enhancements
node()
and node_td()
now support character
vectors in the ‘name’ argument, allowing easy creation of multiple nodes
with the same definitionBug Fixes
node_time_to_event()
function
that lead to the immunity_duration
parameter being used
incorrectly. Since events were still recorded correctly, this was only
apparent when using save_states="all"
. Works correctly
now.dag2matrix()
if the dag object
contained only root nodes. In this case, a logical matrix was returned.
Now it returns the correct numeric matrix.New Features
sim_n_datasets()
function to generate
multiple datasets from a single dag object, possibly using multicore
processingDocumentation
General
simDAG
no longer lists data.table
under
“Depends” in the description file. It is instead listed under “Imports”
as recommended by the data.table
crewEnhancements
summary.DAG()
and summary.DAG.node()
overlap
argument to both
long2start_stop()
and sim2data()
to directly
create start-stop data with overlapping durations, as needed for some
statistical modelstarget_event
and keep_only_first
arguments to sim2data()
and related functions, to allow
direct transformation into model-ready datasetlong2start_stop()
function more
computationally efficientBug Fixes
node_time_to_event()
function, which printed an error when
not all arguments to prob_fun
were supplied, even when
these arguments had default valuesprint.DAG.node()
which occurred when a
time-to-event node with no parents was suppliedsim2data()
which lead to inconsistent
results when event_duration=0
was used in one or more nodes
of type “time_to_event” or “competing_events”. This made me realize that
event durations smaller than 1 make no sense. They are now no longer
allowed and the default of the node types has been changed
accordingly.formula
objects of child nodesNew Features
as.igraph.DAG()
method which extends the
generic function as.igraph()
to conveniently parse
DAG
objects to igraph
objectsas.data.table.simDT()
and
as.data.frame.simDT()
for user convenienceDocumentation
Enhancements
output
argument to the
rbernoulli()
function to allow different output
formats.sort_dag
in
sim_from_dag()
from TRUE
to
FALSE
.coerce2factor
and
coerce2numeric
arguments in rcategorical()
,
node_multinomial()
and node_binomial()
to the
output
argument for a more consistent syntax and easier
usage.type
argument in node()
and
node_td()
.layout
function in
plot.DAG()
is now supported.Bug Fixes
node_fill
argument of the plot.DAG()
function is no longer being ignored if mark_td_nodes
was
set to TRUE
.New Features
formula
argument. Standard
formulas (without betas and intercepts) are still supported, but no
longer mentioned in the documentation and will be deprecated in future
versions.Documentation
node()
function works.