Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Including a matrix in a monte carlo simulation


From   "Nevo, Dorit" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: Including a matrix in a monte carlo simulation
Date   Wed, 16 Oct 2002 12:24:07 -0700

Hi,

I'm trying to calculate the determinant of a matrix within a Monte Carlo
simulation program. The matrix takes variables that are calculated in
previous steps in the program.

The specific command I included is:
	matrix H = (0,Fc,Fk,Fl\Fc,Fcc,Fck,Fcl\Fk,Fck,Fkk,Fkl\Fl,Fcl,Fkl,Fll)
	gen detH = det(H)

Fc, Fk, etc are calculated earlier in the program file.

However - I get an error message "Fc not found"

Can anybody help?

Sincerely,

Dorit Nevo
PhD Candidate, MIS
Faculty of Commerce, University of British Columbia

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index