I am solving a question related to my course. the question is:
Run linear model using training data with “Florence” as outcome variable, while using “Gender”, “FirstPurch”, and “all book categories” as predictors and give the summary of the model. Can you specify the significant predictors?
I have already created the training data.
here is my attempt:
reg= lm(Florence~.-c(Seq.,ID.,M,R, F), data = train.df)
I decided to remove those variables. see the table for details:
Let me know why I cannot use -c(name of the columns)