print_spca: *Prints the sparse loadings from an spca object*

Description Usage Arguments Value See Also

View source: R/utilities.R

Description

Prints sparse loadings omitting the zero ones and giving the cumulative variance explained.

Usage

1
2
3
4
5
6
7
8
9
print_spca(
  obj,
  contributions = TRUE,
  only.nonzero = TRUE,
  digits = 1,
  threshold = 0.001,
  prn = TRUE,
  rtn = FALSE
)

Arguments

obj

An spca object.

contributions

Logical: should the loadings be standardised to unit L_1 norm (and printed as percentage contributions)?

only.nonzero

Logical: if = TRUE only the nonzero loadings are printed. otherwise all loadings are printed.

digits

Integer: number of decimal figures.

threshold

Value below which loadings are considered zero and not printed.

prn

Logical: should the table be printed?

rtn

Logical: should the formatted (text) table be returned?

Value

If rtn = TRUE, it returns a text table formatted as specified by the arguments.

See Also

Examples in lsspca.


merolagio/LSSPCA documentation built on April 29, 2021, 4:17 p.m.