assignments: Gets cluster assignments.

Description Usage Arguments Value

View source: R/sscs.R

Description

Returns an integer vector of cluster assignments.

Usage

1
  assignment(sscs)

Arguments

sscs

Object of class 'sscs' created by new_sscs(...).

Value

Returns an integer vector of cluster assignments. For an uninitialized sscs object (one just created by new_sscs(...)) this will simply be a vector of 1's; by default nclusters=1 and all variables belong to that cluster. For an initialized or clustered sscs object (returned by init(sscs, ...) or e.g. run(sscs, ...), respectively) the integers in this vector will vary between 1 and nclusters (sscs$njhat).


crtwomey/sscs documentation built on Dec. 25, 2019, 8:03 a.m.