Statalist The Stata Listserver


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

st: Novice Mata question


From   Adrian Mander <[email protected]>
To   [email protected]
Subject   st: Novice Mata question
Date   Thu, 19 Apr 2007 09:24:55 +0100

I wanted to write a function in Mata that deletes rows in a column vector (or matrix) that contain 0.


The simplest sort of solution ( in English ) would be
matrix temp = matrix temp taking out one row

but this assignment obviously can't be done because of conformability errors.

Do I need to use pointers to do this?

Or alternatively how can I delete a matrix in Mata so that I can create an intermediate matrix?

cheers
Ade

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