simcausal icon indicating copy to clipboard operation
simcausal copied to clipboard

using as.integer() in node formulas prints to the terminal:

Open osofr opened this issue 10 years ago • 0 comments

using as.integer() in node formulas prints it to the terminal:

library(simcausal)
D <- DAG.empty()
D <- D +
         node("Trexp", distr = "rexp", rate = 1) +
         node("Cweib", distr = "rweibull", shape = 0.5, scale = 1) +
         node("T", distr = "rconst", const = as.integer(Trexp*100))
setD <- set.DAG(D)
dat <- sim(setD, n=100)

osofr avatar Sep 09 '15 20:09 osofr