by moderator » Thu Aug 04, 2011 12:29 pm
The problem is probably with this line in the procedure
compute betadraw=betaols+betau
The error message suggests the dimensions of the two arrays (betaols and betau) don't match. Did you change the earlier line that computes betau, or that defines the FSIGMAD matrix used in that computation?
If so, that's probably not what you wanted to do. Change that code back to the way it was originally.
Instead, if you want to use your own factorization (such as one estimated using CVMODEL), the section of code you want to change is the following:
* The next line is where a particular factorization of sigmad is
* input into the calculation. This does the Choleski factorization in
* standard order, which is what is used above in drawing the
* coefficients.
*
compute factor=fsigmad
You can replace that COMPUTE with whatever code you need to compute the appropriate FACTOR matrix (for example, defining FACTOR as the output from the CVMODEL).
Regards,
Tom Maycock