select.ggm_compare_explore: Graph selection for 'ggm_compare_explore' Objects

Description Usage Arguments Value See Also Examples

View source: R/select.ggm_compare_bf.R

Description

Provides the selected graph (of differences) based on the Bayes factor \insertCitewilliams2020comparingBGGM.

Usage

1
2
## S3 method for class 'ggm_compare_explore'
select(object, BF_cut = 3, ...)

Arguments

object

An object of class ggm_compare_explore.

BF_cut

Numeric. Threshold for including an edge (defaults to 3).

...

Currently ignored.

Value

The returned object of class select.ggm_compare_explore contains a lot of information that is used for printing and plotting the results. For users of BGGM, the following are the useful objects:

See Also

explore and ggm_compare_explore for several examples.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
##################
### example 1: ###
##################
# 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]

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


E <- select(fit, post_prob = 0.50)

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