Closed hofnerb closed 7 years ago
Thanks for finding this! This should be a problem for all inflated families, e.g. BEOI()
:
BEINF()$nopar
[1] 4
BEOI()$nopar
[1] 3
But their corresponding functions for the derivatives BEOI()$dldm
have arguments mu and sigma only which leads to the error.
I think we should be able to fix this in our code, I'll take a look.
... no markdown available ...
Thanks a lot!
Perhaps there are even more families with similar properties?
Could check this issue by comparing nopar
with the number of parameters in dldm
either by simply calling the functions or by computing on
deparse(gamlss.dist::as.gamlss.family("BEINF")$dldm)[1]
for all available families in a loop?
OK, all those families have FAM()$type == "Mixed"
, found that in my own code.
Apparently I had already implemented such cases for 3-parametric families and was only too lazy to do the same also for the 4-paremetric ones. Should be fixed now in "devel".
Merci :)
The following code does not work:
The reason can be found in
which is a function of mu and sigma only.
How can we fix this for this family (and potentially others)? Is a change in gamlss.dist needed or can we fix this ourselves? Are there other families leading to the same or a similar issue?
@mayrandy, can you have a look at this?