How can I tell Julia what are the parameters in a linear model?

GLM.jl can’t do that for you. Hopefully someone can chime in with an appropriate tutorial for an optimization package.

You do math in Discourse

$$
Like this
$$