Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • New package matrixtools at the ssc

    Thanks to Kit Baum a new package matrixtools is present at ssc.

    At present there are two tools to build, present and style Stata matrices:
    1. -matprint- presents Stata matrices in the log. It has a simple but powerfull way of setting decimals cellwise. -matprint- can export Stata matrices in styles smcl, csv, latex, html and markdown. This way output from can be integrated into documents generated by -log2markup-. Use ssc or findit to install -log2markup-.
    2. -sumat- generates a summary matrix based in part on the command -sumarize-. All statistics from -summarize- can be reported as well as eg confidence intervals, prediction interval, inter quartile intervals, unique values and missing values. The resulting matrix are saved for futher use. -sumat- is using -matprint- for the output.
    Enjoy
    Kind regards

    nhb

  • #2
    An update
    Thanks to Kit Baum there is an update of matrixtools at ssc.
    New commands are added.
    So accessible commands are now:
    1. -crossmat- is wrapper for tabulate. All tables possible from -tabulate- are accessible as Stata matrices.
    2. -matprint- presents Stata matrices in the log. It has a simple but powerfull way of setting decimals cellwise. -matprint- can export Stata matrices in styles smcl, csv, latex, html and markdown. This way output from can be integrated into documents generated by -log2markup-. Use ssc or findit to install -log2markup-.
    3. -matrix2stata- converts a matrix into variables. The key difference to -mkmat- is that roweq and rownames becomes categorized variables, ie integervalued with a value label. The purpose is to ease graphing matrix content.
    4. -metadata- is a mesh-up of -describe- and -codebook-. It can be used on the current file in the data window, and using the using modifier on can specify a non-opened dataset or a path to get a description of the contents of all datasets there. The metadata can be saved into a dataset or styled in latex, html markdown, csv, or smcl and saved as such. This way output from can be integrated into documents generated by -log2markup-. Use ssc or findit to install -log2markup-.
    5. -strofnum- transform a numeric variable to a string variable using the value label if it exists. Otherwise the format is used.
    6. -strtonum- replaces a string variable with a categorical numeric variable with a value label.
    7. -sumat- generates a summary matrix based in part on the command sumarize. Statistics like eg unique values and missing values are added. The resulting matrix are saved for futher use. sumat is using -matprint- for the output.
    8. lmatrixtools is the back bone of this package. It is written in Mata. For the curious the source code is also in the package.
    Enjoy
    Kind regards

    nhb

    Comment


    • #3
      Thanks for this. May I suggest that you add a wrapper help file that provides information about the constituent components? ("matrixtools.sthlp"?) I can remember "matrixtools" easily enough, but I can't remember the names of the component modules. (Currently you have help files for those.)

      Comment


      • #4
        Hi Stephen
        Thank you for your suggestion.
        I'll do it asap
        Kind regards

        nhb

        Comment


        • #5
          asap sometimes takes a while. Now the package is updated with an extra helpfile
          Kind regards

          nhb

          Comment


          • #6
            Thanks to Kit Baum is there a new update of matrixtools. There are only minor changes.

            Matrixtools now uses the same mata library as my other package basetable. This way they both have become more integrated with log2markup

            This means that if both packages are installed then they must be installed with
            Code:
            ssc install packagename, replace
            and it would be
            an good idea to update both at the same time.

            What's also new is that in time more and more examples will appear on my homepage for Stata.
            The homepage is mainly generated by markdown commented do files transformed by log2markup and then MkDocs

            Enjoy
            Kind regards

            nhb

            Comment


            • #7
              Thanks to Kit Baum is there a new update of matrixtools.
              Features are described at my homepage in:
              Kind regards

              nhb

              Comment


              • #8
                Thanks to Kit Baum is there a new update of matrixtools.
                Kind regards

                nhb

                Comment


                • #9
                  Thanks to Kit Baum is there a new update of matrixtools at the SSC...
                  E.g. a new table generator for regressions: http://www.bruunisejs.dk/StataHacks/...t/regmat_demo/
                  More details at http://www.bruunisejs.dk/StataHacks/
                  Kind regards

                  nhb

                  Comment


                  • #10
                    There were a bug in the command sumat.
                    Thanks to Kit Baum an update fixing this is present at the SSC
                    Kind regards

                    nhb

                    Comment


                    • #11
                      Thanks to Kit Baum there is a new update of matrixtools.
                      Kind regards

                      nhb

                      Comment


                      • #12
                        Thanks to Kit Baum there is a new update of emc.
                        Kind regards

                        nhb

                        Comment


                        • #13
                          Thanks to Kit Baum there is a new update of log2markup.
                          Kind regards

                          nhb

                          Comment


                          • #14
                            Thanks to Kit Baum there is a new update of matrixtools.
                            New commands are
                            • -mat2xl- Convert a Stata matrix into a Mata string matrix with decimal control. The Mata string matrix is exported to MS Excel
                            • -dummynizer- Using Mata matrix code to generate dummy variables for design matrices in Stata
                            • -which_edit- If you want to look into the ado-file (eg -which_edit regress-) or help-file (eg -which_edit regress, help-) for command, that file is send to the do-file editor. Do not edit!! Just look!
                            Kind regards

                            nhb

                            Comment


                            • #15
                              -which_edit- looks useful -- thank you!

                              Comment

                              Working...
                              X