NEWS
simcausal 0.5.4 (2017-10-08)
- Updating the package for new CRAN release
simcausal 0.5.3 (2016-12-20)
- Fixing a bug in that was identified due to changes to data.table (eval.MSM() was incorrectly checking for NA outcomes)
- Fixing a CRAN error in test on R devel.
simcausal 0.5.1 (2016-05-25)
- More consistent control over non-standard evaluation. Can wrap any R expression supplied as the node argument in .() or eval() to skip all of simcausal non-standard evaluation and checks, this will evaluate the expression in the environment of the data + user calling environment. The default R subsetting operators for '[...]' and '[[...]]' will be applied to all expressions wrapped in .() and hence the simcausal operators for time-varying nodes and networks will not longer be applied. See a separate section in ?node and examples 7,8 for details. One can apply the operator .() to only part of the expression, to avoid simcausal parsing on that specific part as shown in Example 8 with '.(coefAi[t]) * A[t-1]'.
- Switching to new naming convention for categorical distributions (rcat.b0, rcat.b1 and rcat.factor). Old rcategor.int and rcategor are still available and are deprecated.
simcausal 0.5.0 (2016-02-20)
- Major changes since last version 0.4.0.
- Added support for time-varying nodes over network: can index friend nodes with syntactic sugar expressions like Node[[F_indx]], even when this Node is a time-varying random variable. For such nodes, start by using the syntactic indexing by t, i.e., Node[t], then add friend indexing with expressions like Node[t][[F_indx]]. See the forthcoming vignette on networks for examples.
- Added support for latent variables, set.DAG has a new argument v.latent, any node names specified to this argument will be hidden from the simulated data. This allows one to explicitly define errors (U’s) for each node. This will be also plotted differently by plotDAG.
- set.DAG has a new argument n.test, used for changing the default sample size of the simulation test performed by set.DAG (default n.test=100). Set n.test=0 to skip the DAG object test completely.
- Node argument EFU can be a logical expression (any function of previously defined node names), which must evaluate to TRUE/FALSE. Right-censoring for a specific observation then occurs only if: 1) The node value evaluated to 1 & 2) EFU evaluates to TRUE
- Added support for multivariate nodes, such as multivariate normal, copulas, etc. See a separate section on multivariate distributions in ?node.
- A specially reserved variable name "Nsamp" can be used in any node expression, always evaluates to the currently simulated sample size (a column of constant values). Works similarly to the network-specific reserved variables "Kmax" and "nF" (see ?network).
- Changed the format of plotDAG output. The internal (endogenous) nodes are no longer surrounded by circles. All latent nodes are surrounded by circles, all children of latent nodes are shown with dashed arrow.
- Switched internal storage of simulated data to data.table. The output is always a data.frame.
simcausal 0.4.0 (2015-09-22)
- New CRAN version release.
- Fixing a warning on v.0.3.0 for generic "melt" being exported by data.table and reshape2;
- Minor updates to the vignette;
- Fixing an issue with NetIndClass not calling self$make.nF() when outside network matrix is assigned;
- Making nF (vector of the number of friends across observations) available as a special variable that can be used inside node expressions (as distributional parameters);
simcausal 0.3.0 (2015-08-24)
- New CRAN version release.
- Major updates:
- Addition of network() function that allows simulating networks;
- Support for network-based sampling of dependent data. New syntax Variable[[netindx]] allows one to to index Variable values of friends (connections) (assuming a network has been already generated with the network() function);
- User calling environment is now captured by each call to node() function; this is used as an enclosing environment when evaluating node() function arguments;
- Moving to R6 class node call parser;
- Minor updates:
- Adding global option options(simcausal.verbose) that can be set to FALSE to suppress message printing; default is TRUE;
- Adding network simulation example to /tests/Runit/gen.net.example.R, simulating networks using igraph package; Examples for simulating networks based on igraph ER model;
- Adding conversion utility function to/from sparse adjacency network matrix to simcausal internet network storage;
- Switching from warning to message when replacing/modifying existing DAG node object;
simcausal 0.2.0 (2015-06-13)
- New CRAN version release.
- Adding vignette; improved documentation for ?simcausal; changing the documentation for sim, simobs and simfull functions; updated documentation add.nodes/+node and add.action/+action syntax; for node.depr is removed from the user access.
simcausal 0.1.9
- Development version update.
- Added vignette; the node.depr function is no longer supported; updated the documentation for ?simcausal, doLTCF, sim, simobs and simfull, add.action, add.nodes functions; changed examples for node and set.DAG; added .onAttach message;
simcausal 0.1 (2015-05-16)
- Initial version release to CRAN