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

st: RE: returning value from a program


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: returning value from a program
Date   Tue, 20 Dec 2005 21:46:33 -0000

You can't write a program with exactly 
this syntax. You could write an -egen- 
function. 

If you want a new variable as output, 
why this question? 

I could start speculating on what you might mean, 
but better that you should tell us much more. 

Indeed, please show us your program. 

Nick 
[email protected] 

Patrick McElduff
 
> I want to write a  program that has two arguements and 
> returns a value so that I can use it in the form:
> 
> generate temp = program(var1 var2)
> 
> I have written the guts of the program to do the work but I 
> don't know how to get the input and output in the form I want.
> 
> Could you please tell me where I should start looking.

*
*   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/



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