Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Matrix question - square roots of matrix elements


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Matrix question - square roots of matrix elements
Date   Thu, 25 Jan 2007 00:41:03 -0000

Elementwise square roots: see this posting from 5 January 

http://www.stata.com/statalist/archive/2007-01/msg00121.html

Otherwise, this is much, much easier in Mata. I 
am pretty sure that almost exactly this stuff
is reproduced somewhere in the Mata manual, but
I have my coat on to go home so you will have 
to look yourself or hope that someone else will 
tell you where. 

Nick 
[email protected] 

Amy Dunbar
 
> How can I get the square roots of the diagonal elements in the covhat
> matrix in the do file below? I am teaching a seminar that includes a
> section on stata, and I am trying to replicate an example from a
> textbook using stata.  I am also struggling with the language 
> to compute
> R2.  I apologize for these elementary questions; I did search for an
> example, but if there was one, I didn't find it.  

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