Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72767

how can I use the results of one program in another program

$
0
0
Hi all:

I am a new user of Stata programming and I met some difficulty in ado file programming.

I have written an ado-file, which I want to use repetitively in later programming process. I return some of the values in this ado file but I have no idea how to retrieve this value in another program. For example,
program prog1

return p75 = r(p75)
return p25 = r(p25)
end
Then how can I use the scalar p75 in another program?
For example,
program prog2

scalar a = p75 + p25

end

Thank you so much!!!

Viewing all articles
Browse latest Browse all 72767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>