View source: R/f07.normal.code.r
simulate8gmn | R Documentation |
returns a matrix of simulated values with the variable in columns and the simulations in rows.
simulate8gmn(loi, cova, nbs, tol=1e-7)
loi |
list defining the distribution of the initial vector with
|
cova |
Values to give to the covariables. Must be a matrix with
|
nbs |
number of simulations to return. |
tol |
tolerance value to be transmitted to |
Just a call to the function simulate8mn
, adding the terms to
the expectation due to the regression...
A matrix of size : nbs x length(loi$mu)
loi <- list(mu=c(D=2, E=4),
rho=matrix(1:6, 2, dimnames=list(LETTERS[4:5],
LETTERS[1:3])),
gamma=matrix(c(1, 1, 1, 2), 2));
cova <- matrix(runif(36), 12, dimnames=list(NULL, LETTERS[1:3]));
print(simulate8gmn(loi, cova, 12));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.