Description Usage Arguments Value Examples

Initialises the variational parameters of a SparseLPM.

1 |

`X` |
Rectangular adjacency matrix with non-negative entries. |

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

`method` |
The variational parameters are initialised at random. However, if |

`threshold` |
A small number added to each of the entries of |

`stdev` |
Standard deviation of the Gaussian used to generate the random latent positions. |

Returns a list of variational parameters that can be used as input for slpm_nga or slpm_elbo.

1 2 3 4 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.