Question: Using R 1. X is a continuous variable that takes on values between 5 and 100. Z is a binary variable. Plot the following regression
Using R
1. X is a continuous variable that takes on values between 5 and 100. Z is a binary variable. Plot the following regression functions (with values of X between 5 and 100 on the horizontal axis, and values of Y on the vertical axis,), and compute the expected change in Y when X1i changes.
- (a)Y =2+3log(X1i).
- (b)Y =23log(X1i).
- (c)Report in the same figure the curve from part (a), and the curve Y = 2 + 3 log(X1i) + 4Z, when Z = 1. Explain the difference between the two curves.
- (d)Report in the same figure the curves from part (c), and the curve Y = 2 + 3 log(X1i) + 4Z log(X1i)Z, when Z = 1. Explain the difference between these three curves.
(e)Y=1+125X 0.01X2.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
