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.

  1. (a)Y =2+3log(X1i).
  2. (b)Y =23log(X1i).
  3. (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.
  4. (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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!