mfasiolo / qgam

Additive quantile regression R package
http://mfasiolo.github.io/qgam/
30 stars 7 forks source link

Determining lambda for gamlss #3

Closed mfasiolo closed 8 years ago

mfasiolo commented 8 years ago

Lambda depends on sigma, hence in logFlss we need a vector valued lambda. A vector of values for sigma could come from gaulss fit.

mfasiolo commented 8 years ago

Solved by code such as lam <- err * sqrt(2_pi/(ctrl$gausFit$fit[ , 2]^2)) / (2_log(2)*exp(lsig[ii]))