EconPapers    
Economics at your fingertips  
 

MULTNORM: RATS module to generate a sample from a multivariate normal population

Eric Blankmeyer ()
Additional contact information
Eric Blankmeyer: Texas State University

Statistical Software Components from Boston College Department of Economics

Abstract: 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.

Language: RATS
Keywords: sampling; probability distributions; Monte Carlo (search for similar items in EconPapers)
Date: 1999-04-05
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/m/MULTNORM.SRC program code (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:r940501

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-30
Handle: RePEc:boc:bocode:r940501