We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65f723d commit d037e92Copy full SHA for d037e92
src/regife.jl
@@ -193,10 +193,11 @@ function regife(df::AbstractDataFrame, f::FormulaTerm;
193
# restart with randomized coefficients, factors, loadings
194
newfeM = FixedEffectModels.FixedEffectMatrix(getfactors(fp, fs), sqrtw, Val{:lsmr})
195
ym .= ym ./sqrtw
196
- Xm .= Xm ./sqrtw
197
FixedEffectModels.solve_residuals!(ym, newfeM, tol = tol, maxiter = maxiter)
198
- FixedEffectModels.solve_residuals!(Xm, newfeM, tol = tol, maxiter = maxiter)
199
ym .= ym .* sqrtw
+
+ Xm .= Xm ./sqrtw
200
+ FixedEffectModels.solve_residuals!(Xm, newfeM, tol = tol, maxiter = maxiter)
201
Xm .= Xm .* sqrtw
202
ydiff = Xm * (fs.b - Xm \ ym)
203
if iterations >= maxiter || norm(ydiff) <= 0.01 * norm(y)
0 commit comments