flash_get_ldf: Get LDF from a flash object

View source: R/get_functions.R

flash_get_ldfR Documentation

Get LDF from a flash object

Description

Returns standardized loadings, factors, and weights from a flash object.

Usage

flash_get_ldf(f, kset = NULL, drop_zero_factors = TRUE)

Arguments

f

A flash fit object.

kset

Indices of loadings/factors to be returned.

drop_zero_factors

If TRUE, then any factor/loadings that are zero will be removed.

Value

A list with the following elements. These are analogous to the u, d and v returned by svd, but the columns of l and f are not orthogonal.

l

A matrix whose columns contain the standardized loadings (i.e., with norm 1).

d

A vector of weights (analogous to the singular values in an SVD).

f

A matrix whose columns contain the standardized factors (i.e., with norm 1).


stephenslab/flashr documentation built on Jan. 31, 2024, 2:07 a.m.