Description Usage Arguments Details Value Examples
The vcov.gamlss
method relies on the object passed to the data
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 vcov.gamlss
directly,
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 mod
.
1 |
mod |
gamlss object. Object of class gamlss. |
data |
dataframe. Dataframe originally passed to |
data_name |
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 vcov.gamlss
.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.