Question
In Stata, you have loaded a dataset with Disney prices in rows 1-5 and Weight Watchers prices in rows 6-10, For both companies, you want
In Stata, you have loaded a dataset with Disney prices in rows 1-5 and Weight Watchers prices in rows 6-10, For both companies, you want to take the lagged value of the closing price (close). Which of the following is the correct command to use? sort company date Agen close com lag close[n-1] sort date OB. by company: gen close com lagt close[n-1] sort company date OC by company: gen close com lagt close [n-1] sort company date ODgen close com lagt close(n-1) sort company date OE by company gen dose com lagt close(n-1)) sort date OF gen close com lagt close[n-1]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started