EconPapers    
Economics at your fingertips  
 

RPNFCN: Stata module to provide a Mata generic function evaluator based on Reverse Polish Notation

Henrik Stovring ()
Additional contact information
Henrik Stovring: Research Unit of General Practice, University of Southern Denmark

Statistical Software Components from Boston College Department of Economics

Abstract: mf_rpnfcn(cmd) returns the result of sequentially evaluating the commands given in the rows of matrix A. The fundamental commands allowed in A fall in the following categories: Stack manipulation--Commands that enter matrices into the stack, copy and interchange stack elements; Binary operators--The four basic arithmetic operations of addition, subtraction, multiplication, and division; Single element functions-- Distribution functions which are executed on the current top element of the stack and replace it with the result; and Numerical integration functions-- used for numerical integration based on Monte Carlo with stratified, antithetic sampling.

Language: Stata
Requires: Stata version 9.0
Keywords: Mata; reverse Polish notation; RPN; stack; numerical integration (search for similar items in EconPapers)
Date: 2006-11-05
Note: This module may be installed from within Stata by typing "ssc install rpnfcn". Windows users should not attempt to download these files with a web browser.

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/r/rpnfcn.mata program code (text/plain)
http://fmwww.bc.edu/repec/bocode/r/rpnint.mata program code (text/plain)
http://fmwww.bc.edu/repec/bocode/r/rpndist.mata program code (text/plain)
http://fmwww.bc.edu/repec/bocode/r/rpnbinop.mata program code (text/plain)
http://fmwww.bc.edu/repec/bocode/r/rpnstackfcn.mata program code (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lrpn.mlib object library (application/x-stata)
http://fmwww.bc.edu/repec/bocode/m/mf_rpnbinop.hlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/m/mf_rpndist.hlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/m/mf_rpnfcn.hlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/m/mf_rpnint.hlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/m/mf_rpnstackfcn.hlp help file (text/plain)

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: http://EconPapers.repec.org/RePEc:boc:bocode:s456887

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics
Address: Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA
Contact information at EDIRC.
Series data maintained by Christopher F Baum ().

 
Page updated 2009-11-23
Handle: RePEc:boc:bocode:s456887