Description Usage Arguments Value Examples
...
1 | initiate_univ(y, k, init.method = c("Kmeans", "uniform"))
|
y |
data, as a vector |
k |
Number of groups in model |
init.method |
Method for choosing initial annotations, "Kmeans" fits a k component Kmeans to the data, while "uniform" spreads k groups evenly across the range of the data. |
List of values needed to start MCMC. The first element is a tibble containing mu0, sig0, and p0. The second, a vector of integers containing the allocations init.Z.
1 2 3 4 | y <- rnorm(10,1, 10)
initiate_univ(y, k=2, init.method="uniform")
initiate_univ(y, k=5, init.method="uniform")
initiate_univ(y, k=5, init.method="Kmeans")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.