blrsim | R Documentation |
blrsim is a single realisation of data under the following scheme:
x contains 40 random, correlated gaussian predictors
(see mvrnorm
);
the binary outcome (y) is set to 1 if the sum of x1:x10 (+ error)
is positive, and zero otherwise. In effect variables 11-40 are not-relevant
to the outcome.
blrsim
list
40 Gaussian predictors. Training data, 50 observations
Class membership for x. Training data, 50 observations
20 Gaussian predictors. Test data, 1000 observations
Class membership for x. Test data, 1000 observations
Classification accuracy in the complete sample given the rule used to generate the data (see: raw-data/blrsim.R).
Note: calling this the bayes rate is a bit of a liberty as bayes rate is an error/loss while classification accuracy is the complement of such a error/loss.
The data is split into train and test sets. For reference, the classification accuracy of a model (using the generative rule) in the complete data is provided.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.