Statalist


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

Re: st: RE: Mata Display Matrix


From   "Ben Jann" <ben.jann@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Mata Display Matrix
Date   Thu, 30 Aug 2007 00:06:47 +0200

Marcello, I did some more improvements. mm_matlist() now features four
different border styles and there is a new function called
mm_smatlist() that returns the output in a string vector rather than
displaying it.

Download the new files from:

 http://www.sociolab.ethz.ch/people/jannb/mm_matlist.zip

Here is a small example of what is possible now:

: mm_matlist(X)
               1           2
    +-------------------------+
  1 |   61.00573    .0884898  |
  2 |   4.244257    .2894747  |
    +-------------------------+

: mm_matlist(X,("%9.0g","%8.4f"), 3, ("weight", "mpg"),
("Coef.","p-value"), "price")
--------------------------------
   price |      Coef.    p-value
---------+----------------------
  weight |   61.00573     0.0885
     mpg |   4.244257     0.2895
--------------------------------

ben

On 8/29/07, Ben Jann <ben.jann@gmail.com> wrote:
> As it happens I decided to include the function in the -moremata-
> package and did some more work on it today morning on the train.
> Wrapping is implemented and, in addition, it is possible to assign
> different formats to different parts of the matrix and row and column
> labels can be defined. What I did not take care of (yet) is options to
> change borders. Code and a brief help file can be found at:
>
>  http://www.sociolab.ethz.ch/people/jannb/mm_matlist.zip
>
> Download, extract, and then type
>
>  . do mm_matlist.mata
>
> and
>
>  . help mf_mm_matlist
>
> Best,
> ben
>
>
> On 8/29/07, Marcello Pagano <pagano@hsph.harvard.edu> wrote:
> > Thank you very much, Ben,
> >
> > I hate to sound like an ingrate, but yes, I do have large matrices and
> > the wrap around is important.
> >
> > m.p.
> >
> > Ben Jann wrote:
> > > Marcello, here you go:
> > >
> > >
> > >
> > *
> > *   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/
> >
>
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index