Need help with object

Hi I’ve tried to run these few lines of code but I’m receiving an error for both the predicted_y and residual_values object. Not sure why…any help is appreciated.

It is very difficult to read the code in your picture. Please post the actual code and not a picture.
It seems that predicted_y is defined as a column in my_regression_df

my_regression_df$predicted_y <- (b1_value*x) + b0_value

To do calculations with it you have to refer to it as my_regression_df$predicted_y. This may also be true of your x and y values. I can't see where those are defined.