subject

Please answer the following questions which are based on the dataset (Cars). You can only use Stata class materials or online sources. 1. What percent of sampled cars were foreign in 1978?
a. Syntax:
2. What is the mean weight of cars in 1978?
a. Syntax:
3. Compute the average prices for mpg greater than 20
a. Syntax:
4. Create a histogram for the variable mpg.
a. Syntax:
5. What are the four most expensive cars in 1978?
a. sort Syntax:
b. list Syntax:
6. Perform a regression to determine if a car’s mpg helps determine its price.
Produce an appropriate scatter plot.
a. regress Syntax:
b. scatter Syntax:
7. What happens if we add weight as an independent variable to our analysis?
a. Syntax:
8. Create a new variable efficiency that groups different levels of mpg efficiency. Assume the following: a car that gets less than 15 mpg is “inefficient”, between 15 and 30 mpg is “moderately efficient”, and above 30 mpg is “efficient”.
How many are considered “efficient”?
a. recode, gen() Syntax:
b. label variable Syntax:
c. tabulate Syntax:

just need Syntax not in prgram
just the code by STATA language

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet.what cloud model is linda using
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Describir textbook icon_person mira los dibujos y describe lo que estĂĄ pasando. usa los verbos de la lista.
Answers: 1
question
Computers and Technology, 23.06.2019 10:20
Suppose there is a relation r(a, b, c) with a b+-tree index with search keys (a, b).1. what is the worst-case cost of finding records satisfying 10 < a < 50 using this index, in terms of the number of records n1, retrieved and the height h of the tree? 2. what is the worst-case cost of finding records satisfying 10 < a < 50 and 5 < b < 10 using this index, in terms of the number of records n2 that satisfy this selection, as well as n1 and h defined above? 3. under what conditions on n1 and n2, would the index be an efficient way of finding records satisfying the condition from part (2)?
Answers: 1
question
Computers and Technology, 23.06.2019 21:20
For positive constants a and b, the force between two atoms in a molecule is given f(r) = −a r2 + b r3 , where r > 0 is the distance between the atoms. note: a and b are upper case letters. (a) find f '(r) = (b) find the critical point for f(r). r = (c) find f ''(r) = (d) find the value of r so that f ''(r) = 0.
Answers: 1
You know the right answer?
Please answer the following questions which are based on the dataset (Cars). You can only use Stata...
Questions
question
Mathematics, 15.12.2020 22:40
question
Mathematics, 15.12.2020 22:40
question
Mathematics, 15.12.2020 22:40
question
Mathematics, 15.12.2020 22:40
question
Chemistry, 15.12.2020 22:40