EconPapers    
Economics at your fingertips  
 

bipolate: A Stata Command for Bivariate Interpolation with Particular Application to 3D Graphing

Joseph Canner (), : Xuan Hui and Eric Schneider
Additional contact information
Joseph Canner: Johns Hopkins University School of Medicine
: Xuan Hui: Johns Hopkins University School of Medicine
Eric Schneider: Johns Hopkins University School of Medicine

2014 Stata Conference from Stata Users Group

Abstract: Stata has a variety of flexible commands for graphing in two dimensions; however, it has few options for graphing in three dimensions. The user-written surface command by Adrian Mander, available from SSC, attempts to fill this gap, providing both 3D wire-frame plots and dropline plots. However, when some (x,y) combinations do not have a corresponding z-value, the graphs produced by surface are often unintelligible. SAS addresses this problem with PROC G3GRID, which creates a data set of interpolated values, providing a smooth surface plot when used as input for PROC G3D. The default method of interpolation used by PROC G3GRID was proposed by Hiroshi Akima in 1978. To reproduce this functionality in Stata, we used a publicly-available Fortran implementation of Akima’s method. We converted these Fortran subroutines into Mata and created the Stata command bipolate to interface with these subroutines. The bipolate command contains options for interpolating z-values at all possible combinations of the specified x- and y-values and for specifying specific (x,y) combinations at which to interpolate. There is also an option for handling multiple z-values for a given (x,y). Examples will be provided to illustrate the use of surface, with and without bipolate, and to illustrate various bipolate options.

Date: 2014-08-02
References: Add references at CitEc
Citations:

Downloads: (external link)
http://repec.org/bos2014/boston14_canner.pptx (application/x-ms-powerpoint)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:scon14:16

Access Statistics for this paper

More papers in 2014 Stata Conference from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-19
Handle: RePEc:boc:scon14:16