Description Usage Arguments Details Value Examples
Generates an array or matrix that includes k fully separated block-clusters.
1 2 3 |
n |
The number of observations in the array. |
dim |
The dimension of the array. |
k |
The number of clusters. 1 for no clusters. |
noise |
The proportion of noise among the observations. There are two choices for |
shuffle |
Whether or not to shuffle the original category orders randomly. |
v |
A variability parameter for the assignment of the observations to the block clusters. Small values lea |
minc |
The minimum number of categories each cluster must have in each variable. E.g. |
exp.prop |
Optional: expected proportions of the observations which fall into the block clusters. |
min.prop |
Minimum proportion of observations in each cluster. |
noise.type |
Either |
dimnames |
A list of 2: The first entry defines the variable labels (default: A,B,C,...) and the second entry defines the category labels (default 1:k). |
Not a very sophisticated way of generating random arrays but it serves for tests and illustrations of the other functions.
A simulated data array.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | A <- arsim(1000, c(12,12), 3, shuffle = FALSE)
fluctile(A)
A <- arsim(1000, c(12,12), 3, shuffle = FALSE, dimnames = list(NULL,letters))
dimnames(A)
A <- arsim(4000, c(11,7,5), 3, shuffle = TRUE, dimnames = list(0:2,letters))
dimnames(A)
## Not run:
A2<- arsim(1000, c(12,12,12), 3, shuffle = FALSE)
fluctile3d(A2, shape ="oct")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.