Simulation of Multivariate Linear Model Data
msim( p = 15, q = c(5, 4, 3), m = 5, relpos = list(c(1, 2), c(3, 4, 6), c(5, 7)), gamma = 0.6, R2 = c(0.8, 0.7, 0.8), eta = 0, muX = NULL, muY = NULL, ypos = list(c(1), c(3, 4), c(2, 5)) )
p | Number of variables |
---|---|
q | Vector containing the number of relevant predictor variables for each relevant response components |
m | Number of response variables |
relpos | A list of position of relevant component for predictor variables. The list contains vectors of position index, one vector or each relevant response components |
gamma | A declining (decaying) factor of eigen value of predictors (X). Higher the value of |
R2 | Vector of coefficient of determination (proportion of variation explained by predictor variable) for each relevant response components |
eta | A declining (decaying) factor of eigenvalues of response (Y). Higher the value of |
muX | Vector of average (mean) for each predictor variable |
muY | Vector of average (mean) for each response variable |
ypos | List of position of relevant response components that are combined to generate response variable during orthogonal rotation |
A simrel object with all the input arguments along with following additional items
Simulated predictors
Simulated responses
Simulated predictor components
Simulated response components
True regression coefficients
True regression intercept
Position of relevant predictors
Test Predictors
Test Response
Test predictor components
Test response components
Minimum model error
Rotation matrix of predictor (R)
Rotation matrix of response (Q)
Type of simrel object univariate or multivariate
Eigenvalues of predictors
Variance-Covariance matrix of components of response and predictors
Covariance matrix of response components and predictors
Covariance matrix of response and predictor components
Variance-Covariance matrix of response and predictors
Coefficient of determination corresponding to response components
Coefficient of determination corresponding to response variables
Sæbø, S., Almøy, T., & Helland, I. S. (2015). simrel—A versatile tool for linear model data simulation based on the concept of a relevant subspace and relevant predictors. Chemometrics and Intelligent Laboratory Systems, 146, 128-135.
Almøy, T. (1996). A simulation study on comparison of prediction methods when only a few components are relevant. Computational statistics & data analysis, 21(1), 87-107.