Description Usage Arguments Details Value Examples
sample_toy_data
samples the two block distribution from AJIVE figure 2.
1 2 | sample_toy_data(n = 200, dx = 100, dy = 500, sigma = 0.5,
only_observations = TRUE)
|
n |
Integer. Number of observations. Must be divisible by 20. |
dx |
Integer. Dimension of X block. Must be divisible by 2. |
dy |
Integer. Dimension of Y block. Must be divisible by 10. |
sigma |
Float. Noise strength. |
only_observations |
Boolean. Whether or not to include the true decomposition. |
Note AJIVE figure 2 uses n=100, dx=100 and dy=10000 and sigma=1.
A list of length 2 with the sampled data. Each list contains: obs, joint, individual, and noise.
1 2 | blocks <- sample_toy_data()
X1 = blocks[[1]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.