Or so I thought.
I'm working on a cluster analysis project. There are multiple data sets, they are massive, and there are several variable subsets by which one could plausibly cluster the observations.
Agglomerative hierarchical clustering is the way to go when you don't have any notion of how many clusters there should be, but it is [...]
Archives for posts tagged ‘Mata’
My first useful Mata function
Tuesday, 28 July 2009
Putting your Mata functions to work
Tuesday, 10 March 2009
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. Mata needs this [...]
Finally dabbling in Mata
Monday, 9 March 2009
I'm taking a discrete math class at NC State and today I had a homework assignment due that had to do with matrix algebra. I didn't feel like doing it with paper and pencil, but the point of it was that I was supposed to understand how things like matrix multiplication worked, so I couldn't [...]