Description Usage Arguments Details Value Examples
Creates a new sscs S3 object based on data matrix X and variable groupings js.
1 | new_sscs(X, js)
|
X |
Numeric matrix where rows are observations and columns are variates. |
js |
Integer vector with length equal to the number of columns of X, identifying multi-variate groupings of X's columns. |
Currently only permits hard clustering; a soft clustering implementation will be made available in a future release.
Returns a new sscs S3 object to be used with e.g. run(...).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# combine measurements
X <- cbind(US_state_temperature, US_state_precipitation)
# describe how columns of X are grouped into
# multi-variate variables.
nstates <- ncol(US_state_temperature)
js <- rep(1:nstates, 2)
# create a new sscs object to be used with e.g. run(sscs, ...)
sscs <- new_sscs(X, js)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.