Un montón de bellas comentarios y respuestas aquí, pero es realmente necesario? Este es un modelo muy simple. Vamos a volver a escribir como
$$
y = \beta_1(x_1 - \mu_1) + \beta_2(x_2 - \mu_2) + \phi_f + \epsilon
$$
where $\phi_f$ is the offset due to factor $f$. Clearly, $\phi_f$ is the average value of the response when the independent variables are at their mean values.
With the vast number of factor levels you have, it makes sense to treat $\phi_f$ as a random effect, so don't use glm
or lm
Using lme
might still cost a lot of time, but would you really lose that much by fitting the linear model and the factor model independently? If the sample is random and the number of items at each level is roughly the same, I'm not sure that you would lose much by estimating the random effects as the average over the $s$'s at each level. Then do the regression without the factors -- the factor effects will basically be rolled into the error $\epsilon$.
Usted no va a obtener exactamente la misma respuesta que si se hizo de la forma correcta, pero en realidad, es el extra tiempo de cómputo de la pena, si que está causando graves la pena.
Otra opción, que nunca he probado, pero puede ser de ayuda, sería conseguir el ingenuo estimaciones he descrito anteriormente y, a continuación, realice una o dos iteraciones mediante el algoritmo EM para la mejora de las versiones, pero no intento ir todo el camino a la convergencia con todos los datos y todos esos parámetros.