im trying to use glm like so: model<- glm(y~radius + symmetry, data = train)
where radius and symmetry are numeric vectors and i receive the following error:
Error in model.frame.default(formula = y ~ radius + symmetry, data = train, :
invalid type (list) for variable 'y'
using str(train$radius)
i received the following:
num [1:469] 19.21 13.15 14.86 19 8.73 ...
using str(train$symmetry)
i received the following:
num [1:469] 0.192 0.182 0.157 0.195 0.165 ...
y is expecting two vectors and is getting them. then why do i have an error?