lol.sims.cross {lolR} | R Documentation |
Cross
Description
A simulation for the cross experiment, in which the two classes have orthogonal covariant dimensions and the same means.
Usage
lol.sims.cross(n, d, rotate = FALSE, priors = NULL, a = 1, b = 0.25, K = 2)
Arguments
n |
the number of samples of simulated data. |
d |
the dimensionality of the simulated data. |
rotate |
With random rotataion matrix |
priors |
the priors for each class. If |
a |
scalar for the magnitude of the variance that is high within the particular class. Defaults to |
b |
scalar for the magnitude of the varaince that is not high within the particular class. Defaults to |
K |
the number of classes. Defaults to |
Value
A list of class simulation
with the following:
X |
|
Y |
|
mus |
|
Sigmas |
|
priors |
|
simtype |
The name of the simulation. |
params |
Any extraneous parameters the simulation was created with. |
Details
For more details see the help vignette:
vignette("sims", package = "lolR")
Author(s)
Eric Bridgeford
Examples
library(lolR)
data <- lol.sims.cross(n=200, d=30) # 200 examples of 30 dimensions
X <- data$X; Y <- data$Y