MULTNORM: RATS module to generate a sample from a multivariate normal population
multnorm.src generates a sample from a multivariate normal population. the user specifies the number of variables (ncol), the sample size (nrow), and the correlation matrix (cormat). the user also designates the matrix (mn) where the sample is to be stored. both cormat and mn should be declared in the program that calls multnorm.src; for example: dec symm cormat(ncol,ncol) dec rect mn(nrow,ncol) since cormat is symmetric, only the elements on and below the main diagonal must be specified. a correlation matrix must be positive definite. before invoking multnorm.src, the user may want to verify that cormat is in fact positive definite by computing its eigenvalues with the RATS instruction eigen. the elements of mn are standard normal variables. after mn has been generated, the user can easily change the means and standard deviations.
In order to set up a list of libraries that you have access to,
you must first login
or sign up.
Then set up a personal list of libraries from your profile page by
clicking on your user name at the top right of any screen.