Dear Listers;
I am trying to do something by using the recursive concepts, and I am
not sure if there is some build-in command in Stata to realize it,
since in R, the build-in command Recall can work for it.
e.g.
fact<-function(x) {
if (x<=1) x else x*Recall(x-1)
}
fact(6)
Any suggestions would be greatly appreciated. Thanks in advance.
Best,
Tony
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/