rsa_design | R Documentation |
This function constructs a design for an RSA model using the provided formula, data, and optional parameters.
rsa_design(
formula,
data,
block_var = NULL,
split_by = NULL,
keep_intra_run = FALSE
)
formula |
A formula expression specifying the dissimilarity-based regression function. |
data |
A named list containing the dissimilarity matrices and any other auxiliary variables. |
block_var |
An optional |
split_by |
An optional |
keep_intra_run |
A |
The function creates an RSA design based on the input parameters. It checks the validity of the input data and handles splitting conditions for evaluation of test performance. It also processes optional block structures and within-run comparisons.
A list containing the elements of the RSA design, with class attributes "rsa_design" and "list".
dismat <- dist(matrix(rnorm(100*100), 100, 100))
rdes <- rsa_design(~ dismat, list(dismat=dismat))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.