test_dataSimu_element: Test data simulation only with element-wise sparse pattern

Description Usage Arguments Value Examples

Description

This function will test if the simulated data sets have the proper properties, such as correct data types, orghogonal score matrix, score matrix has 0 column means, element-wise sparsity, with correct SNRs.

Usage

1
test_dataSimu_element(n, ds, R, dataTypes)

Arguments

n

the number of objects

ds

a vector for the number of variables in each data set

R

number of simulated PCs

dataTypes

a string indicates the data type of each data set, possible options include 'G': Gaussian, 'B': Bernoulli.

Value

This function returns a list contains all the test results

Examples

1
2
3
4
5
6
7
## Not run: 
test_results_GGG <- test_dataSimu_element(n=n, ds=ds,R=3
                                dataTypes = 'GGG')
test_results_BBB <- test_dataSimu_element(n=n, ds=ds,R=3
                                dataTypes = 'BBB')

## End(Not run)

YipengUva/RpESCA documentation built on July 2, 2019, 6:41 p.m.