generate_bern_data: Simulate test data for bernoulli PCA

Description Usage Arguments

Description

Simulate test data for bernoulli PCA

Usage

1
generate_bern_data(k = 4, n = 100, d = 10, p = 0.5, eps = 0.05)

Arguments

k

The number of latent binary classes.

n

The number of samples to generate.

d

The dimension of the samples.

p

The probability of a 1 in each coordinate of each latent class.

eps

The probability of flipping the sign in the observed data.


krisrs1128/expPCA documentation built on May 20, 2019, 1:26 p.m.