Question: Use auto.dta ( saved in STATA memory ) Open the collegeadmision.dta dataset that is available with the question. Draw a twoway scatter graph of natural
Use auto.dta saved in STATA memory Open the "collegeadmision.dta" dataset that is available with the question.
Draw a twoway scatter graph of natural log of score dependent variable and
natural log of income independent on the same graph Make sure that the graph
has the following specifications:
the scatter marker shape will be hollow diamonds
The scatter marker color will be red
The scatter marker size is vsmall
Include titles for the horizontal and vertical intercepts & the whole chart
The horizontal axis title should be Log of Income
The vertical axis tile should be Log of Score
The title for the whole chart should be Relationship between Test Scores and
Income
The background of the graph should be white Continue from Question A
Superimpose the lfit graph of log of score and log of income
on the scatter between these two variables from Question
The superimposition should be done with a symbol as
done in class exercises. Retain the specifications for the
scatters from the previous question. Make sure you use the
specifications for the lfit
The line width is medium thick
The line color is blue
The Line pattern is dashed
Legend is off
i Define a local macro called characteristics which contains the
variables turn displacement rep & length
ii Call this local macro to find the descriptive statistics of this local
macro & regress price on this local macro for domestic cars and
for foreign cars separately.
iii. Write codes with a forvalues loop which will generate
variables x x x x which come from some random
normal distribution.
iv Write the code to find the descriptive statistics of these new
variables with output suppressed.
v Use a foreach loop to regress price on turn displacement rep
& length individually
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
