train_model.rsa_model | R Documentation |
This function trains an RSA (representational similarity analysis) model using the specified method and distance calculation.
## S3 method for class 'rsa_model'
train_model(
obj,
train_dat,
indices,
wts = NULL,
method = c("lm", "rfit", "pearson", "spearman"),
distmethod = c("pearson", "spearman"),
...
)
obj |
An object of class |
train_dat |
The training data. |
indices |
The indices of the training data. |
wts |
Optional, the weights for the model training. |
method |
The method used for model training. One of "lm" (linear regression), "rfit" (robust regression), "pearson" (Pearson correlation), or "spearman" (Spearman correlation). Default is "lm". |
distmethod |
The method used for distance calculation. One of "pearson" (Pearson correlation) or "spearman" (Spearman correlation). Default is "pearson". |
... |
Additional arguments passed to the training method. |
The trained model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.