| mc | R Documentation |
Creates ‘mc’ objects from mcnode or ‘mc’ objects.
mc(..., name = NULL, devname = FALSE)
... |
‘mcnode’ and/or ‘mc’ object(s) to be gathered in a ‘mc’ object, separated by a comma. |
name |
vector of characters of the same length as the final ‘mc’ object. If ‘NULL’, names are taken from the names of the elements. |
devname |
develop the name from the name of the ‘mc’ objects, if any. |
A ‘mc’ object is a list of mcnode objects.
‘mcnode’ objects must be of coherent dimensions.
If one of the arguments is a ‘mc’ object, the names of its elements are used. ‘devname = TRUE’ develops the name using the name of the ‘mc’ object as prefix. The names of the ‘mcnode’ arguments are made unique; the names of the elements of ‘mc’ arguments are kept as they are (they may duplicate other names, unless ‘devname = TRUE’ is used).
An unnamed argument that is not a variable name (e.g. ‘a + b’ or a call to
mcstoc) gets an empty name. Name such arguments (e.g.
‘mc(a, b, out = a + b)’): functions that select nodes by name,
such as tornadounc, may fail otherwise.
An object of class ‘mc’.
mcnode, the basic element of a ‘mc’ object.
To evaluate ‘mc’ objects: mcmodel, evalmcmod,
evalmccut.
To study ‘mc’ objects: print.mc, summary.mc,
plot.mc, converg, hist.mc,
tornado, tornadounc.
x <- mcstoc(runif)
y <- mcdata(3, type = "0")
z <- x * y
(m <- mc(x, y, z, name = c('n1', 'n2', 'n3')))
mc(m, x, devname = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.