I'm trying to build a simple linear model. There is a source table variable data_star
x_st y_st
1 7.202602 4.0315130
2 7.405203 2.4836105
...
52 17.535288 7.2934321
53 17.737890 3.7034159
looks pretty simple, but rstudio says that
model_new_star = lm('y_st~10.26909+x_st', data = data_star)
has invalid model formula in ExtractVars. What am i missing?
what's more fun is that
model_star = lm("y_st~x_st", data = data_star)
works just fine