| lol.sims.mean_diff {lolR} | R Documentation | 
Mean Difference Simulation
Description
A function for simulating data in which a difference in the means is present only in a subset of dimensions, and equal covariance.
Usage
lol.sims.mean_diff(
  n,
  d,
  rotate = FALSE,
  priors = NULL,
  K = 2,
  md = 1,
  subset = c(1),
  offdiag = 0,
  s = 1
)
Arguments
| n | the number of samples of the simulated data. | 
| d | the dimensionality of the simulated data. | 
| rotate | whether to apply a random rotation to the mean and covariance. With random rotataion matrix  | 
| priors | the priors for each class. If  | 
| K | the number of classes. Defaults to  | 
| md | the magnitude of the difference in the means in the specified subset of dimensions. Ddefaults to  | 
| subset | the dimensions to have a difference in the means. Defaults to only the first dimension.  | 
| offdiag | the off-diagonal elements of the covariance matrix. Should be < 1.  | 
| s | the scaling parameter of the covariance matrix. S_ij = scaling*1 if i == j, or scaling*offdiag if i != j. 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.mean_diff(n=200, d=30)  # 200 examples of 30 dimensions
X <- data$X; Y <- data$Y