Announcement

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

  • SWEEP operator in Mata

    I have a project where I'm looking to adapt some SAS code to Stata. The SAS code includes a component that uses the SWEEP operator (Goodnight 1979). I see that Stata's matrix functions include a variant of the SWEEP operator that operates on 1 row/column at a time. I'm writing to see if anyone knows of a convenient way to call the SWEEP operator in Mata, especially a variant that operates on an entire matrix as is the case with the SWEEP operator in SAS.
Working...
X