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

st: Extracting a scalar from a matrix

From   "Olivier Paradis-Beland" <[email protected]>
To   <[email protected]>
Subject   st: Extracting a scalar from a matrix
Date   Thu, 27 Nov 2003 09:33:05 -0500

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.
Does anyone can help ?

*   For searches and help try:

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