This function enables easy simulation of iid masked lifetime observations from a system or network.

1 | ```
simulateSystem(system, n, rdens, ...)
``` |

`system` |
may be: an |

`n` |
how many simulations to produce. |

`rdens` |
a user defined function which generates random realisations of the component lifetimes. |

`...` |
parameters passed to the user defined function |

When the system or network is specified by means of an `igraph`

object, each end of the system must be denoted by nodes named "s" and "t" which are taken to be perfectly reliable. It is easy to construct the appropriate graph representation using the function `graph.formula`

.

This function then generates iid realisations of masked lifetimes.

a numeric vector of length `n`

containing the masked lifetime data.

Please feel free to email aslett@stats.ox.ac.uk with any queries or if you encounter errors when running this function.

Louis J.M. Aslett aslett@stats.ox.ac.uk (http://www.louisaslett.com/)

1 2 3 4 5 6 7 | ```
# Simulate 20 masked lifetimes of a two component series system with Exponential(2)
# component lifetimes
# Using igraph object ...
simulateSystem(graph.formula(s -- 1 -- 2 -- t), 20, rexp, rate=2)
# ... and using signature
simulateSystem(c(1,0), 20, rexp, rate=2)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.