Archives for the Date March 10th, 2009

Putting your Mata functions to work

Yesterday I showed you how to write Mata functions. Today we will look at how they work with Stata. In interactive mode, a Mata function like mymulti() is called simply asĀ  mata: mymulti(st_matrix("first"),st_matrix("second")) This assumes that the two matrices are Stata matrices previously declared and currently in memory. Mata and Stata matrices are different things. [...]