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

st: any way to speed up mkmat (or is there an alternative)?


From   Elizabeth Bruch <[email protected]>
To   [email protected]
Subject   st: any way to speed up mkmat (or is there an alternative)?
Date   Sat, 05 Feb 2005 17:45:09 -0800

Hi Stata list folks,

I'm writing a program that computes diagnostics (residuals, leverages, and cook's distance) for the clogit model. The program is working, but.. it's *really* slow. I've isolated the source of the slowness to the "mkmat" commands (for each observation in the data I construct 3 matrices, and each matrix takes about 5 seconds to create). I should add that the matrices I construct for each observation are small (two are 1x17 and the third is 6x6).

Is there any faster alternative to mkmat? Why is this command so slow? Is there any way I can speed it up?

Many thanks,
Elizabeth
____________________________________________________
Departments of Sociology and Statistics
University of California at Los Angeles
Los Angeles, CA
90095-1551
Phone: (310) 463-4829
Fax: (310) 206-9838
Web: http://www.stat.ucla.edu/~bruch/

*
* 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