Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Installation of univar

From   Tony YANG <[email protected]>
To   [email protected]
Subject   Re: st: Installation of univar
Date   Mon, 31 Jan 2005 16:40:50 -0500

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.

fact<-function(x) {
    if (x<=1) x else x*Recall(x-1)

Any suggestions would be greatly appreciated. Thanks in advance.

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index