Write R language code for this question
Find the regression equation for the following data.
a) lm(Y ~ X, data = data_frame)
b) glm(X ~ Y, data = data_frame)
c) lm(X ~ Y, data = data_frame)
d) glm(Y ~ X, data = data_frame)