Description Usage Arguments Value See Also

View source: R/network_distributions.R

Call `igraph::sample_smallworld`

and convert the output to `simcausal`

network matrix.
The parameters are the same as those of `igraph::sample_smallworld`

.
The loop edges aren't allowed (`loops = FALSE`

) and the multiple edges aren't allowed either `multiple = FALSE`

.

1 | ```
rnet.SmWorld(n, dim, nei, p)
``` |

`n` |
Size of the network graph (the number of nodes). |

`dim` |
Same as in |

`nei` |
Same as in |

`p` |
Same as in |

A matrix with n rows, each row lists the indices of friends connected to that particular observation.

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.