Simulation Model
varset.RdThree sets of variables are calculated: explanatory, intermediate and response variables.
Details
For each observation values of two explanatory variables \(x = (x_1, x_2)^{\top}\) and of two responses \(y = (y_1, y_2)^{\top}\) are simulated, following the formula:
$$
y = U*x+e = ({u_1^{\top} \atop u_2^{\top}})*x+e
$$
where x is the evaluation of as standard normal random variable and e is generated by a normal variable with standard deviation sigma. U is a 2*2 Matrix, where
$$
u_1 = ({u_{1, 1} \atop u_{1, 2}}),
u_2 = ({u_{2, 1} \atop u_{2, 2}}),
||u_1|| = ||u_2|| = 1,
$$
i.e. a matrix of two normalised vectors.
Value
A list containing the following arguments
- explanatory
N*2 matrix of 2 explanatory variables.
- intermediate
N*2 matrix of 2 intermediate variables.
- response
response vectors with values 0 or 1.
