-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specifying tau value for superblock in rgcca_cv() #86
Comments
Hi Jean-Charles, I am a bit confused about your matrix Regarding the choice of tau in rgcca_cv(), you can set I hope it helps. Best, |
Hi Fabien, Thank you for your answer.
Then my question is how are we suppose to use Best, |
Hi Jean-Charles, As a matter of fact, rgcca_cv() is not supposed to be used with a superblock. In the multiblock litterature, a superblock analysis is more unsupervised, while an analysis with a response block (like rgcca_cv()) is more supervised. However, you can indeed do as you suggest, but it will give you different results from a proper superblock analysis if you have more than one component (deflation logics are different). I hope it helps, don't hesitate to elaborate on the type of analysis you want to conduct if it does not meet your needs. |
Hi Fabien, |
Dear Rgcca team,
I would like, as CPCA(n) methods, to set tau = 1 for all blocks and tau =0 for a superblock in rgcca_cv().
Is there an option in rgcca_cv which can do it or is it necessary to adapt the source code?
Here is the code I used for now:
`
C <- matrix(c(0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0),
4, 4, byrow=T)
Trying to reproduce cpca-1
ncomp <- rgcca_cv(
blocks = data_train, # list of 4 dataframes
response=4,
scheme="horst",
connection = C,
tau=c(1,1,1,1),
superblock=TRUE,
scale=TRUE,
scale_block='inertia',
init='svd',
bias=TRUE,
tol=1e-08,
NA_method='na.ignore',
comp_orth=TRUE,
par_type = "ncomp",
prediction_model = "lm",
validation = 'kfold',
k=5,
n_run=10,
n_cores = n_cores)`
Thanks a lot!
Best,
Jean-Charles
The text was updated successfully, but these errors were encountered: