Question

In: Statistics and Probability

Detailed interviews were conducted with over 1,000 street vendors in the city of Puebla, Mexico, in...

Detailed interviews were conducted with over 1,000 street vendors in the city of Puebla, Mexico, in order to study the factors influencing vendors’ incomes. Vendors were defined as individuals working in the street and included vendors with carts and stands on wheels and excluded beggars, drug dealers, and prostitutes. The researchers collected data on gender, age, hours worked per day, annual earnings, and education level. These data are saved in STREETVEN file. Consider an interaction model ? = ?0 + ?1?1 + ?2?2 + ?3?1?2 + ? for the vendor’s mean annual earning ?(?). ?ℎ??? ? = ?????? ????????,?1 = ??? ??? ?2 = ℎ???? ?????? ??? ???.

a. Use statistical software R to fit the interaction model and provide the summary of the model. Also write least squares prediction equation. b. What is the estimated slope relating annual earnings (y) to age (x1) when number of hours worked (x2) is 10? Interpret the result. c. What is the estimated slope relating annual earnings (y) to hours worked (x2) when age (x1) is 40? Interpret the result. d. Conduct a hypothesis test to decide whether age (x1) and hours worked (x2) interact. Write your conclusion.

PLEASE PROVIDE THE CODE FOR R STUDIO or screenshot

VenNum   Earnings   Age   Hours
21   2841   29   12
53   1876   21   8
60   2934   62   10
184   1552   18   10
263   3065   40   11
281   3670   50   11
354   2005   65   5
401   3215   44   8
515   1930   17   8
633   2010   70   6
677   3111   20   9
710   2882   29   9
800   1683   15   5
914   1817   14   7
997   4066   33   12

Solutions

Expert Solution

(a) using R the least Square interaction model is found to be:

y= 1041.894-13.238*x1 + 103.306*x2 +3.621*x1*x2

(b) the estimated slope of y to x1 when x2 is constant = 13.238 . This means that for an unit increase in age, the earnings decreases by 13.238 ( since the sign is negative, earnings decrease)

(c) The estimated slope of y to x2 when x1 is constant = 103.306 . This means that for an unit increase in hours , the earnings increases by 103.306 ( since sign is positive, earnings increase)

(d) from the R output, we see that pvalue corresponding to interaction is 0.366 > .05 . Hence x1 and x2 don't interact.

R codes and output :
y=c(2841,1876,2934,1552,3065,3670,2005,3215,1930,2010,3111,2882,1683,1817,4066)
x1=c(29,21,62,18,40,50,65,44,17,70,20,29,15,14,33)
x2=c(12,8,10,10,11,11,5,8,8,6,9,9,5,7,12)
f=lm(y~x1+x2+(x1*x2))
summary(f)


Related Solutions

A survey conducted amongst 180 randomly selected street vendors in Sandton showed that 28 of the...
A survey conducted amongst 180 randomly selected street vendors in Sandton showed that 28 of the vendors felt that local by laws were not ideal for their business. Create a 90% confidence interval for the true proportion ./ of all Sandton vendors who feel that local by–laws are not good for their business. STATS
Problem. Suppose that, in a large city, 200 identical street vendors compete in a competitive market...
Problem. Suppose that, in a large city, 200 identical street vendors compete in a competitive market for hot dogs. 1. The vendors total costs to produce q hot dogs is, C(q) = 1/4q + 1/8q². What is the marginal cost function of each firm? 2. Given your answer from above, how many hot dogs will each vendor produce if offered a price of $4 per hot dog? 3. Using your answer from part 1 of this problem, what is the...
Between January and June of 2011, The Gallup survey company conducted telephone interviews. The interviews were...
Between January and June of 2011, The Gallup survey company conducted telephone interviews. The interviews were part of the Gallup-Healthways Well-Being Index survey. The researchers interviewed a random sample of adults, aged 18 and older. The adults lived in all 50 of the U.S. states and in the District of Columbia. Approximately 500 of the people who were interviewed were men and 500 were women. The people who were interviewed were asked about how much and how often they exercise....
1. (25pts) Street food vendors in NY City must be licensed. A license allowing you to...
1. (25pts) Street food vendors in NY City must be licensed. A license allowing you to operate a cart (for example, a traditional hot dog stand) is roughly $300,000. Since different carts sell slightly different products, at different locations, we can safely assume that each cart enjoys some degree of market power and that the street-food market is an example of monopolistic competition. Use the model developed in class to answer the following questions. (a) (10pts) Each cart operator must...
In an annual poll about consumption habits, telephone interviews were conducted for a random sample of...
In an annual poll about consumption habits, telephone interviews were conducted for a random sample of 1,016 adults aged 18 and over. One of the questions was, "How many cups of coffee, if any, do you drink on an average day?" The following table shows the results obtained. Number of Cups per Day Number of Responses 0 365 1 264 2 193 3 91 4 or more 103 Define a random variable x = number of cups of coffee consumed...
A large study of adults over the age of 70 was conducted. There were 4989 whites...
A large study of adults over the age of 70 was conducted. There were 4989 whites and 906 blacks included in the study. The researchers asked about medical conditions associated with the elderly (such as stroke, cancer, heart disease, hypertension. etc.) and about any difficulty the subjects had with the activities of daily living. 529 of the 4989 elderly whites reported having had a stroke, and 103 of the 906 elderly blacks reported having had a stroke. (a) Compute the...
A large study of adults over the age of 70 was conducted. There were 4989 whites...
A large study of adults over the age of 70 was conducted. There were 4989 whites and 906 blacks included in the study. The researchers asked about medical conditions associated with the elderly (such as stroke, cancer, heart disease, hypertension. etc.) and about any difficulty the subjects had with the activities of daily living. 529 of the 4989 elderly whites reported having had a stroke, and 103 of the 906 elderly blacks reported having had a stroke. (a) Compute the...
Deflection tests were conducted on a steel joist and a timber joist both simply supported over...
Deflection tests were conducted on a steel joist and a timber joist both simply supported over a span of 5 m and carrying a point load of 45 kN at distance of ‘a’ from left support. Maximum deflection was observed at a position 2.4 m from the left support for steel joist and 1.85 m from the left support for steel joist. Calculate and compare the results for maximum deflection, slope at both ends and deflection under the load for...
Deflection tests were conducted on a steel joist and a timber joist both simply supported over...
Deflection tests were conducted on a steel joist and a timber joist both simply supported over a span of 5 m and carrying a point load of 45 kN at distance of ‘a’ from left support. Maximum deflection was observed at a position 2.4 m from the left support for steel joist and 1.85 m from the left support for steel joist. Calculate and compare the results for maximum deflection, slope at both ends and deflection under the load for...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT