View source: R/ggm_compare_estimate.default.R
| summary.ggm_compare_estimate | R Documentation | 
ggm_compare_estimate objectsSummarize the posterior distribution of each partial correlation difference with the posterior mean and standard deviation.
## S3 method for class 'ggm_compare_estimate'
summary(object, col_names = TRUE, cred = 0.95, ...)
| object | An object of class  | 
| col_names | Logical. Should the summary include the column names (default is  | 
| cred | Numeric. The credible interval width for summarizing the posterior distributions (defaults to 0.95; must be between 0 and 1). | 
| ... | Currently ignored. | 
A list containing the summarized posterior distributions.
ggm_compare_estimate
# note: iter = 250 for demonstrative purposes
# data
Y <- bfi
# males and females
Ymale <- subset(Y, gender == 1,
                select = -c(gender,
                            education))[,1:5]
Yfemale <- subset(Y, gender == 2,
                  select = -c(gender,
                              education))[,1:5]
# fit model
fit <- ggm_compare_estimate(Ymale,  Yfemale,
                            type = "continuous",
                            iter = 250,
                            progress = FALSE)
summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.