Closed sbrockhaus closed 9 years ago
Dear Sarah,
very good question.
The reason for changing fitted(, type = response)
to response(fitted())
in lines 159ff was that fitted(, type = response)
actually calls predict(, type = response)
and thus needs to do all computations anew while fitted()
simply returns the current accumulated fit.
If we predict
in line 130, this is not such a problem as we only have offset models so far. In 159ff we have models with potentially many boosting steps (depending on the current iteration).
Having said this, I think it is not really necessary to change line 130 but it doesn't hurt either. For consistency, we thus modified the code.
Thanks a lot for the explanations!
This is just a question of understandig some of your code:
In the file mboostLSS.R it says in Code line 159ff:
And consequently response(fitted()) is used.
I just wondered whether there is a reason, that in line 130 fitted(, type = response) is used instead of response(fitted())? The corresponding code ist:
Best