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

program define

$
0
0
Dear Statalisters,

I saw another programmer's stata do file that has :
Code:
set more 1
capture log close
capture program drop _all
clear

program define Reg01
My first question is about the line
Code:
program define Reg01

My guess is it defines this do file and name it Reg01, what is the purpose of defining this? is it for future use -such as calling Reg01 in another do file?

My next question is about the line
Code:
capture program drop _all
is this used in conjunction with
Code:
program define Reg01

Best,
Rochelle

Viewing all articles
Browse latest Browse all 72764

Trending Articles



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