summary.ggm_compare_explore: Summary Method for 'ggm_compare_explore' Objects

Description Usage Arguments Value See Also Examples

View source: R/ggm_compare_bf.default.R

Description

Summarize the posterior hypothesis probabilities

Usage

1
2
## S3 method for class 'ggm_compare_explore'
summary(object, col_names = TRUE, ...)

Arguments

object

An object of class ggm_compare_explore.

col_names

Logical. Should the summary include the column names (default is TRUE)? Setting to FALSE includes the column numbers (e.g., 1--2).

...

Currently ignored.

Value

An object of class summary.ggm_compare_explore

See Also

ggm_compare_explore

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# note: iter = 250 for demonstrative purposes

# data
Y <- bfi

# males and females
Ymale <- subset(Y, gender == 1,
                   select = -c(gender,
                               education))[,1:10]

Yfemale <- subset(Y, gender == 2,
                     select = -c(gender,
                                 education))[,1:10]

##########################
### example 1: ordinal ###
##########################

# fit model
fit <- ggm_compare_explore(Ymale,  Yfemale,
                           type = "ordinal",
                           iter = 250,
                           progress = FALSE)
# summary
summ <- summary(fit)

summ

BGGM documentation built on Aug. 20, 2021, 5:08 p.m.