lol.sims.rev_rtrunk {lolR} | R Documentation |
Reverse Random Trunk
Description
A simulation for the reversed random trunk experiment, in which the maximal covariant directions are the same as the directions with the maximal mean difference.
Usage
lol.sims.rev_rtrunk(
n,
d,
robust = FALSE,
rotate = FALSE,
priors = NULL,
b = 4,
K = 2,
maxvar = b^3,
maxvar.outlier = maxvar^3
)
Arguments
n |
the number of samples of the simulated data. |
d |
the dimensionality of the simulated data. |
robust |
the number of outlier points to add, where outliers have opposite covariance of inliers. Defaults to |
rotate |
whether to apply a random rotation to the mean and covariance. With random rotataion matrix |
priors |
the priors for each class. If |
b |
scalar for mu scaling. Default to |
K |
number of classes, should be <4. Defaults to |
maxvar |
the maximum covariance between the two classes. Defaults to |
maxvar.outlier |
the maximum covariance for the outlier points. 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. |
robust |
If robust is not false, a list containing |
Details
For more details see the help vignette:
vignette("sims", package = "lolR")
Author(s)
Eric Bridgeford
Examples
library(lolR)
data <- lol.sims.rtrunk(n=200, d=30) # 200 examples of 30 dimensions
X <- data$X; Y <- data$Y