Does someone know the function to create density forecasts within the GAMLSS Package?
The predict. Formula is not the right one. Predict do Point Forecasts
GAMLSS uses distributional assumptions, and estimates and forecasts conditional distribution parameters. So you would need to use the what
parameter to predict.gamlss
to tell it which distribution parameters to predict, e.g., mu
, sigma
, nu
or tau
. (Actually, you will probably want to use type=response
, because the default type=link
gives you the logit prediction.) Then feed these parameters into the distribution you used originally in fitting the GAMLSS model, and use the appropriate density function.
gamlss.famliy
. If you could edit your question to include a Minimum Working Example (use dput()
!) and notify me here in another comment, I will try to take a look.
$\endgroup$
Commented
Jan 30 at 13:10