Description Usage Arguments Examples
Function to draw data.
1 | rblockdata(n, mu, sigma, type = c("Eq", "NEq", "NEqbis"))
|
n |
number of rows and columns. |
mu |
symmetric matrix to the means. |
sigma |
variance of the variables. |
type |
represent the spacing between two change-point: " |
1 2 3 4 5 | ## model parameters
n <- 100
K <- 5
mu <- suppressWarnings(matrix(rep(c(1,0),ceiling(K**2/2)), K,K))
Y <- rblockdata(n,mu,sigma=.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.