DoubleDataGen: Function that generates double-matched data matrices.

View source: R/Data_Generation.R

DoubleDataGenR Documentation

Function that generates double-matched data matrices.

Description

Function that generates double-matched data matrices.

Usage

DoubleDataGen(
  n = 20,
  p = 16,
  rank = c(4, 3),
  rc = 2,
  rr = 1,
  nrep = 1,
  std1 = 0.1,
  std2 = 0.1,
  lb = 0.5,
  ub = 1.5
)

Arguments

n

Number of rows of data matrix to be generated

p

Number of rows of data matrix to be generated

rank

The vector of total ranks of the two matrices to be generated

rc

The joint column rank

rr

The joint row rank

nrep

How many pairs of double-matched matrices that you want to generate?

std1

The standard deviation of the first Gaussian noise matrix

std2

The standard deviation of the second Gaussian noise matrix

lb

The lower bound for the singular values. Generated singular values are further scaled so that their sum of square equals to the total rank.

ub

The upper bound for the singular values. Generated singular values are further scaled so that their sum of square equals to the total rank.

Value

A list with the following elements:

X1

A list of generated first noisy data matrices, with length nrep

X2

A list of generated second noisy data matrices, with length nrep

A1

A list of generated first low-rank signal matrices, with length nrep

A2

A list of generated second low-rank signal matrices, with length nrep

M

A list of generated joint column basis matrices, with length nrep

N

A list of generated joint row basis matrices, with length nrep

R1

A list of generated first individual column basis matrices, with length nrep

R2

A list of generated second individual column basis matrices, with length nrep

S1

A list of generated first individual row basis matrices, with length nrep

S2

A list of generated second individual row basis matrices, with length nrep

Examples

data = DoubleDataGen()
head(data$X1[[1]])

justicesuker/DMMD_Package documentation built on Aug. 6, 2022, 12:34 p.m.