Create an object of class "bage_ssvd" to
hold results from a scaled Singular Value Decomposition
(SVD) with n_comp components.
Details
data has the following columns:
versionVintage of datatypeType of decomposition. Choices are "total", "joint", and "indep".labels_ageAge labels for individual rows of matrices withinmatrixand individual elements of vectors withinoffset.labels_sexgenderSex/gender labels for individual rows of matrices withinmatrixand individual elements of vectors withinoffset, orNULL.NULLwhensexgenderis"total", since in this case results average across sexes/genders.matrixList column of sparse matrices. Must have rownames. Must not have NAs. Whentypeis"total"or"joint", each matrix hasn_compcolumns. When"type"is"indep", each matrix has2 * n_compcolumns.offsetList column of vectors. Must have names, which are identical to the rownames of the corresponding element ofmatrix.
data would normally be constructed using functions
in package bssvd.
See also
Scaled SVDs Overview of scaled SVDs implemented in bage
SVD()Prior based on scaled SVD
Examples
ssvd(data_wmd)
#>
#> ------------------------------------------------------------
#> <Object of class "bage_ssvd">
#>
#> versions:
#> v2019
#>
#> sex/gender labels:
#> Female
#> Male
#>
#> age labels:
#> 15-19, 20-24, 25-29, ..., 40-44, 45-49
#> 15-19, 20-24, 25-29, ..., 45-49, 50-54
#> 15-19, 20-24, 25-29, ..., 50-54, 55-59
#> ------------------------------------------------------------