
Conditional Normal Density Estimation Given Mean Predictors — with GLMs
Source:R/density_learners.R
lnr_glm_density.Rd
This is a step up from the lnr_lm_density
in that it uses
a glm
for the conditional mean model.
Note that this allows for specification of glm
features
like family = ...
in the ,..
arguments, and
that's the main advantage over the lnr_lm_density
.
Also note that this still differs from using lnr_homoskedastic_density
with mean_lnr = lnr_glm
because lnr_homoscedastic_density
uses stats::density
to do kernel bandwidth smoothing
on the error distribution of the mean predictions..