From | "Nick Cox" <n.j.cox@durham.ac.uk> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | st: RE: Extracting a scalar from a matrix |
Date | Thu, 27 Nov 2003 15:20:05 -0000 |
scalar alpha = beta[1,1] Nick n.j.cox@durham.ac.uk Olivier Paradis-Beland > I have a matrix (vector) of which I want to extract the > first element as a scalar. > > What I did is : matrix alpha = beta[1,1] > > The problem is that I need to use the extracted element > (alpha) as a scalar rather than as a matrix. * * 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–2023 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |