Using the example data set auto2.dta saved in Stata’s memory (command: answer sysuse auto2.dta, clear), the following: What is the range of car prices in 1978? Syntax Answer What is the mean of cars in 1978? What is the median of cars? weight weight Syntax Answer How many domestic cars are in poor repair? Syntax Answer Create a histogram for the variable mpg. Syntax Perform a to compare the price of foreign and domestic cars. ttest Is the of foreign cars higher than the price of domestic cars? Syntax ttest Answer Perform a anova to compare the price of cars across differing conditions of repair. oneway Does the of car differ as a function of repair? Syntax oneway Answer Is price correlated with mpg? Syntax pwcorr Answer Perform a regression to determine if a car’s helps determine its mpg price. Is significant at = .05? mpg α Produce an appropriate scatter plot. Syntax regress Answer Syntax scatter
Using the example data set auto2.dta saved in Stata’s memory (command: sysuse auto2.dta, clear), answer the following: What is the range of car prices in 1978? Syntax Answer What is the mean weight of cars in 1978? What is the median weight of cars? Syntax Answer How many domestic cars are in poor repair? Syntax Answer Create a histogram for the variable mpg. Syntax Perform a ttest to compare the price of foreign and domestic cars. Is the of foreign cars higher than the price of domestic cars? ttest Syntax Answer Perform a oneway anova to compare the price of cars across differing conditions of repair. Does the of car differ as a function of repair? oneway Syntax Answer Is price correlated with mpg? pwcorr Syntax Answer Perform a regression to determine if a car’s mpg helps determine its price. Is mpg significant at α = .05? Produce an appropriate scatter plot. regress Syntax Answer scatter Syntax
Stata%20Statistical%20Workshop%20Exercise.docx