Description Usage Arguments Value Examples

Generates the adjacency matrix `adj`

of a SparseLPM by sampling both the data and model parameters from the posterior distribution.

1 |

`M` |
Number of rows of |

`N` |
Number of cols of |

`K` |
Number of latent dimensions of the SparseLPM. |

`hyper_pars` |
A list defining the hyperparameters of the model. If left as |

A list with components:

`adj` |
Generated adjacency matrix. |

`U` |
Generated latent positions for senders. |

`V` |
Generated latent positions for receivers. |

`lambda` |
Latent variables attached to each of the edges, selecting which dimension determines the edge probability. |

`gamma` |
Vector of the Gaussian precisions associated to the latent dimensions. |

1 2 |

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.