Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
The following table gives prices and cumulative production of color television sets in the US for 16
consecutive years.
1. Enter the data into Stata. Name the variables PRICE and CUMPR.
2. Start a Stata log file to keep track of the commands you issue and the Stata’s responses.
3. Use the Stata “label” command to label the data “TV price and cumulative production for 16 years.”
Use the “label” command to attach definitions to the variables.
4. Use the “describe” command to list the names and definitions of the variables.
5. List the data. Make sure the data in Stata are the same as the data in the foregoing table.
6. Use the “summarize” command to find the means and standard deviations of the two variables.
7. Generate two new variables, one the natural logarithm of PRICE and the other the natural logarithm of
CUMPR. Name these variables LNPRICE and LNCUMPR.
8. Plot LNPRICE on the vertical axis vs LNCUMPR on the horizontal axis. Print the graph.
9. Find the correlation coefficient of LNPRICE and LNCUMPR. Is the value of the correlation
coefficient consistent with the graph you made in part h? Explain you answer in a Stata comment.