Question: How do I create a new Stata command (meaning define a program) that will execute each of the items below. I am trying to create

How do I create a new Stata command (meaning define a program) that will execute each of the items below. I am trying to create a new program in stata to do this.

* a. Allow user to specify name of log file to be opened and open that log file when your command is run.

* b. Allow user to specify name of data file to be used and open that data file from the online data site when run.

* c. Finally once data is loaded, have Stata display the total sample size of the data file. For example, if the

* bais.dta is loaded, the output should read: "The current data file has a total sample size of 2000"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!