Description Usage Arguments Value Foo functions Examples
View source: R/ajive_decomposition.R
The ajive package provides functions to do: foo, bar and baz.
Computes the JIVE decomposition.
1 2 |
blocks |
List. A list of the data matrices. |
initial_signal_ranks |
Vector. The initial signal rank estimates. |
full |
Boolean. Whether or not to store the full J, I, E matrices or just their SVDs (set to FALSE to save memory). |
n_wedin_samples |
Integer. Number of wedin bound samples to draw for each data matrix. |
n_rand_dir_samples |
Integer. Number of random direction bound samples to draw. |
joint_rank |
Integer or NA. User specified joint_rank. If NA will be estimated from data. |
The JIVE decomposition.
The foo functions ...
1 2 3 4 5 6 7 8 | blocks <- sample_toy_data(n=200, dx=100, dy=500)
initial_signal_ranks <- c(2, 2)
jive_decomp <- ajive(blocks, initial_signal_ranks)
joint_scores <- jive_decomp[['joint_scores']]
J_1 <- jive_decomp[[1]][['joint']][['full']]
U_individual_2 <- jive_decomp[[2]][['individual']][['u']]
individual_rank_2 <- jive_decomp[[2]][['individual']][['rank']]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.