Announcement

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

  • st_matrix for a row

    Hello everybody,

    I am a complete beginner to Mata.. I want to take the means from each column of matrix A and move them into matrix B. If I have only one matrix the following works for me.
    mata : st_matrix("B", mean(st_matrix("A")))
    However, I would like to do this with a couple of matrices and then put the means in a new row. Does anybody know what command I can use there?

    Thanks
    Felix

  • #2
    You'll need to be more detailed here: "Put the means in a new row" Do you want these in sequence in the same row, or as two new rows in another matrix, or what? Can you tell us what you don't know how to do, since it's clear you do know how to put the means for a single matrix in a single row.

    Comment

    Working...
    X