Hi,
I am getting the below error. Tried many searches for hours, not able to fix it. Can anyone help me in understanding why I am getting this error?
Error:
Error in eval(predvars, data, env) : object 'Mass' not found
Code:
install.packages("investr")
library(investr)
Male_Display_Data_Set
Male_Display_Data_Set.lm=lm(Tcell~Mass, data = Male_Display_Data_Set)
newx=Male_Display_Data_Set$Tcell
newx=sort(newx)
prd_c=predict(Male_Display_Data_Set.lm, newdata = data.frame(Tcell = newx), interval = c("confidence"), type = c("response"), level = 0.95)
prd_c