Question

In: Statistics and Probability

data year state realbeertax mwdef pc_perinc pop1620 ur1620_r ANYBAC26 NOBAC26 NOBAC1620 ANYBAC1620 1998 1 0.639528 6.21428...

data

year state realbeertax mwdef pc_perinc pop1620 ur1620_r ANYBAC26 NOBAC26 NOBAC1620 ANYBAC1620
1998 1 0.639528 6.21428 22025 330397 13.46843 260.8 402.2 117.2 42.8
1999 1 0.630308 6.124692 22722 329695 14.9065 258.6 420.4 119.9 41.1
2000 1 0.617784 6.002995 23767 327992 16.51312 255.5 359.5 114.4 38.6
2001 1 0.603291 5.862171 24740 321840 17.4932 222 389 113.1 36.9
2002 1 0.592925 5.761446 25461 315225 16.43963 231.4 402.6 98.7 40.3

Use R Studio. (you just need to write R code)

year = year state = A code identifying the relevant U.S. state realbeertax = the state tax per gallon of beer sold pc_perinc = personal income per person pop1620 = population ages 16-20 ur1620_r = unemployment rate among people age 16-20 (in percent) ANYBAC26 = number of fatal accidents involving alcohol among people age 26 and up ANYBAC1620 = number of fatal accidents involving alcohol among people age 16-20 NOBAC26 = number of fatal accidents not involving alcohol among people age 26 and up NOBAC1620 = number of fatal accidents not involving alcohol among people age 16-20 mwdef = minimum wage (in 2006 dollars)

1, Create a new variable that is equal to the log of personal income per person (pc_perinc).

2,Note that this dataset includes observations from all states and from all years between 1998 and 2002. For simplicity, let’s focus on one year: 2001. Create a new object consisting of the data only for 2001

3,We now have a cross-sectional dataset that includes several quantitative variables. One question we might ask is, what is the relationship between (the log of) personal income per capita and a state’s minimum wage? Create a graph that would let you evaluate this relationship visually


4, Use R to calculate the correlation between the two variables you plotted in question 5.

Solutions

Expert Solution


Related Solutions

A newspaper conducted a statewide survey concerning the 1998 race for state senator. The newspaper took...
A newspaper conducted a statewide survey concerning the 1998 race for state senator. The newspaper took a SRS of n=1400 registered voters and found that 720 would vote for the Republican candidate. Let p represent the proportion of registered voters in the state who would vote for the Republican candidate. We test H0:p=0.50 H0:p=0.50 (a) What is the z-statistic for this test? (b) What is the P-value of the test?
A newspaper conducted a statewide survey concerning the 1998 race for state senator. The newspaper took...
A newspaper conducted a statewide survey concerning the 1998 race for state senator. The newspaper took a SRS of n=500 registered voters and found that 175 would vote for the Republican candidate. Let p represent the proportion of registered voters in the state who would vote for the Republican candidate. We test H0:p=.04 Ha:p>.04 What is the z-statistic for this test? What is the P-value of the test? A random sample of 1000 car owners in a particular city found...
A newspaper conducted a statewide survey concerning the 1998 race for state senator. The newspaper took...
A newspaper conducted a statewide survey concerning the 1998 race for state senator. The newspaper took a SRS of ?=1000 registered voters and found that 520 would vote for the Republican candidate. Let ? represent the proportion of registered voters in the state who would vote for the Republican candidate. We test ?0:?=.50 ??:?>.50 (a) The test statistic is ? = (b) P-value =
Groups of dolphins were observed off the coast of Iceland near Keflavik in 1998. The data...
Groups of dolphins were observed off the coast of Iceland near Keflavik in 1998. The data in the file dolphin_dat on the course website give the time of the day and the main activity of the group, whether travelling quickly, feeding, or socializing. The dolphin groups varied in size. Usually feeding or socializing groups were larger than travelling groups. (Sec. 8.2) Source of data: Marianne Rasmussen, Department of Biology, University of Southern Denmark, Odense, Denmark. Activity Period Groups Travel Morning...
Groups of dolphins were observed off the coast of Iceland near Keflavik in 1998. The data...
Groups of dolphins were observed off the coast of Iceland near Keflavik in 1998. The data in the file dolphin_dat on the course website give the time of the day and the main activity of the group, whether travelling quickly, feeding, or socializing. The dolphin groups varied in size. Usually feeding or socializing groups were larger than travelling groups. Source of data: Marianne Rasmussen, Department of Biology, University of Southern Denmark, Odense, Denmark. Activity Period Groups Travel Morning 6 Feed...
Kenneth, a Malaysian citizen was operating a restaurant in Japan since 1998. During the period 1998...
Kenneth, a Malaysian citizen was operating a restaurant in Japan since 1998. During the period 1998 to 2006, Kenneth was never in Malaysia. Since 2007, Kenneth have been returning to Malaysia frequently to attend to some family affairs and it was established that Kenneth was a Malaysian tax resident for the basis years 2007 to 2009. In 2014, Kenneth sold his restaurant in Japan. He was recruited into the Malaysian Civil Service at the Ministry of Foreign Affairs from 01...
Distributions from a S Corporation: Dart Company, a calendar year corporation was formed in 1998 and...
Distributions from a S Corporation: Dart Company, a calendar year corporation was formed in 1998 and made a proper S election in 2010 that is valid today. Its books and records for 2018 reflect the following information: Accumulated adjustments account at 1-1-18 $30,000 Ordinary income for 2018 $120,000 Accumulated earnings profits at 1-1-18 $60,000 Dart is solely owned by Robert, who basis in his Dart stock was $80,000 on 1-1-18. Answer the following independent questions: 1. If Dart distributed $20,000...
1. Find an example of data analytics project that has published its data publicly and state...
1. Find an example of data analytics project that has published its data publicly and state the source. 2. Explain about the project and why it is interesting to you? 3. Identify and explain the objective of the data analytics. 4. Identify and explain the data types.   5. Explain the data mining techniques involved 6. State the insights discovered in the project.
1) The following data shows the yearly production data collected from firms in XYZ state and...
1) The following data shows the yearly production data collected from firms in XYZ state and ABC state. Yearly production in tons Number of Firms in XYZ Number of Firms in ABC 50 - 150 9 35 150 - 250 10 40 250 - 350 11 56 350 - 450 40 62 450 - 550 56 78 550 - 650 68 55 650 - 750 110 53 750 - 850 125 52 850 - 950 98 44 950 - 1050...
Please search and review COSTCO financial statements and notes to financial statement for fiscal year 1998...
Please search and review COSTCO financial statements and notes to financial statement for fiscal year 1998 and fiscal year 1999. For the year ended in August 1998, how much and how were membership fees recorded in COSTCO's financial statements? How much net income were reported for fiscal year 1998? Was membership fee recorded correctly? If not, what accounting principle does it violate? Why? How did they fix it? What were the effects of the fix? How much net income would...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT