vcov.gamlss method relies on the object passed to the
parameter of the call to
gamlss::gamlss to be found in the global environment.
However, this may well not be the case, especially if the object were fit inside a function.
The object may also exist but have changed its value.
It would be ideal to simply pass the dataframe to
but that would need to adjust the gamlss package (as I don't know how to create
the same package but with a different name and this slight adjustment), which I
would rather avoid.
So, this function assigns the dataframe to the global environment with the name
that was passed to
gamlss object. Object of class gamlss.
dataframe. Dataframe originally passed to
character. Name of object passed to
It's unclear what would happen under parallel processing or if the user were altering this object in the global environment as well.
Variance-covariance matrix as output by
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.