View source: R/mc_S3_methods.R
| summary.mcglm | R Documentation |
Produces a comprehensive summary of a fitted mcglm object.
The summary includes estimates, standard errors, Wald Z statistics,
and p-values for regression, dispersion, power, and correlation parameters.
The function can either print the summary to the console or return it invisibly.
## S3 method for class 'mcglm'
summary(
object,
verbose = TRUE,
print = c("Regression", "power", "Dispersion", "Correlation"),
...
)
object |
A fitted object of class |
verbose |
Logical; if |
print |
Character vector specifying which components of the summary to print.
Possible values are |
... |
Further arguments passed to or from other methods. Currently ignored. |
The summary also prints information about the model fitting, including the link, variance, and covariance functions used, the algorithm method, any correction applied, and the number of iterations completed.
Invisibly returns a list containing summary tables:
For each response: Regression, Power, Dispersion.
If applicable: Correlation summary.
Each table contains parameter estimates, standard errors, Wald Z values, and two-sided p-values.
Wagner Hugo Bonat, wbonat@ufpr.br
print.mcglm, coef.mcglm, residuals.mcglm
library(mcglm)
set.seed(123)
mydata <- data.frame(y = rnorm(10), x1 = rnorm(10),
x2 = rbinom(10, size = 1, prob = 0.5))
Z0 <- mc_id(mydata)
fit <- mcglm(c(y ~ x1 + x2), matrix_pred = list(Z0), data = mydata)
# Print full summary
summary(fit)
# Get summary invisibly
out <- summary(fit, verbose = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.