Description Usage Arguments Details Value Examples

View source: R/f02.chain.code.r

[randomly] generates a /chain/ /nbn/.

1 2 | ```
generate8chain(rnn=c(3, 7), proo=0.5, rcor=c(-1, 1), rmu=c(0, 0), rsig=c(0, 1),
nona=r.form3names(max(rnn)))
``` |

`rnn` |
Range of the number of nodes. |

`proo` |
Probabilit[y |

`rcor` |
Range of the correlations between neighbour nodes. |

`rmu` |
Range of the expectations. |

`rsig` |
Range of the standard deviations. |

`nona` |
Proposed names for the maximum number of nodes, only the necessary first ones will be used. |

Proposed ranges can be a unique value, implying no randomness in the
value.

Roots are placed according to `proo`

probabilities,
then collider are placed in between with uniform probability on the
possibles nodes.

A /chain/ coding list is returned.

1 2 3 4 5 | ```
set.seed(1234);
print8chain(generate8chain());
print8chain(generate8chain());
print8chain(generate8chain(rnn=10, rcor=0.5));
print8chain(generate8chain(rnn=10, rcor=0.5));
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.