Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Joe Canner <jcanner1@jhmi.edu> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | st: 3D Surface Plot Interpolation |
Date | Wed, 24 Jul 2013 14:17:19 +0000 |
At the recent Stata Conference "wishes and grumbles" session, several of us expressed interest in 3D Surface plots. StataCorp did not give much reason for optimism in this area. There is currently a user-written module "surface" which does an OK job of 3D surface plots, but does not have a feature for interpolating and smoothing. In SAS, for example, there is PROC G3GRID, which provides a data set with interpolated/smoothed points which can then be plotted with PROC G3D. G3GRID uses, among other methods, an interpolation method by Akima (1978) which involves forming triangles with existing (x,y) points, fitting a quintic bivariate polynomial for the three vertices of the triangle, and using the resulting model to fill in additional interpolated points. There is a set of Fortran subroutines for this algorithm and I would like to try my hand at converting them to Mata, but before I spend a lot of time doing that, is anybody aware of existing Stata functions or commands (user-written or native) that are available for this? Thanks, Joe Canner Johns Hopkins University School of Medicine Department of Surgery * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/