SchaakeShuffleMultiRef | R Documentation |
Match the rank structure of X with them of Y by reordering X.
Can keep multiple features to keep the structure of X.
cond_cols
[vector of integer] The conditioning columns
lag_search
[integer] Number of lag to take into account
lag_keep
[integer] Number of lag to keep
Y0
[matrix] Reference data
new()
Create a new ShaakeShuffleMultiRef object.
SchaakeShuffleMultiRef$new(lag_search, lag_keep, cond_cols = base::c(1))
lag_search
[integer] Number of lag to take into account
lag_keep
[integer] Number of lag to keep
cond_cols
[vector of integer] The conditioning columns
A new 'ShaaleShuffleMultiRef' object.
fit()
Fit the model
SchaakeShuffleMultiRef$fit(Y0)
Y0
[vector] The reference vector
NULL
predict()
Fit the model
SchaakeShuffleMultiRef$predict(X0)
X0
[vector] The vector to apply shuffle
Z0 [vector] data shuffled
clone()
The objects of this class are cloneable with this method.
SchaakeShuffleMultiRef$clone(deep = FALSE)
deep
Whether to make a deep clone.
X0 = matrix( stats::runif(50) , ncol = 2 )
Y0 = matrix( stats::runif(50) , ncol = 2 )
ssmr = SchaakeShuffleMultiRef$new( lag_search = 3 , lag_keep = 1 , cond_cols = 1 )
ssmr$fit(Y0)
Z0 = ssmr$predict(X0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.