From the course: Advanced and Specialized Statistics with Stata

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: More on data management

Challenge: More on data management - Stata Tutorial

From the course: Advanced and Specialized Statistics with Stata

Start my 1-month free trial

Challenge: More on data management

(upbeat music) - [Instructor] Let's look at some data management challenges. This will help reinforce the knowledge you've already gained from the previous videos. The first challenge is to load the auto training data and compute the square root of the variance of weight. You'll need to use one of the return commands to do this. The next challenge is to run a regression of price against miles per gallon, rep78, and headroom for each weight quartile. You'll need to compute weight quartiles and then use a loop function over these quartiles. The final challenge is to amend your loop code and add a further loop code so that it loops over each weight quartile and over the variable foreign. You will need to create a double loop for this.

Contents