Summarize the posterior hypothesis probabilities

# S3 method for 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

Examples

# \donttest{ # 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: Bayesian Gaussian Graphical Models #> --- #> Type: ordinal #> Formula: #> Posterior Samples: 250 #> Observations (n): #> Group 1: 867 #> Group 2: 1765 #> Variables (p): 10 #> Relations: 45 #> Delta: 24 #> --- #> Call: #> ggm_compare_explore(Ymale, Yfemale, type = "ordinal", iter = 250, #> progress = FALSE) #> --- #> Hypotheses: #> H0: rho_g1 = rho_g2 #> H1: rho_g1 - rho_g2 = 0 #> --- #> #> Relation Post.mean Post.sd Pr.H0 Pr.H1 #> A1--A2 0.049 0.045 0.789 0.211 #> A1--A3 -0.016 0.051 0.859 0.141 #> A2--A3 -0.079 0.046 0.604 0.396 #> A1--A4 0.015 0.050 0.863 0.137 #> A2--A4 -0.033 0.048 0.839 0.161 #> A3--A4 0.072 0.043 0.653 0.347 #> A1--A5 0.026 0.050 0.850 0.150 #> A2--A5 0.096 0.046 0.438 0.562 #> A3--A5 0.096 0.039 0.251 0.749 #> A4--A5 -0.037 0.045 0.837 0.163 #> A1--C1 -0.031 0.048 0.849 0.151 #> A2--C1 -0.045 0.046 0.813 0.187 #> A3--C1 0.057 0.047 0.764 0.236 #> A4--C1 0.032 0.048 0.845 0.155 #> A5--C1 -0.005 0.046 0.875 0.125 #> A1--C2 -0.073 0.046 0.660 0.340 #> A2--C2 -0.002 0.047 0.873 0.127 #> A3--C2 -0.020 0.047 0.863 0.137 #> A4--C2 0.044 0.045 0.812 0.188 #> A5--C2 0.024 0.047 0.859 0.141 #> C1--C2 0.035 0.040 0.832 0.168 #> A1--C3 0.038 0.042 0.838 0.162 #> A2--C3 0.017 0.046 0.867 0.133 #> A3--C3 -0.047 0.044 0.808 0.192 #> A4--C3 0.059 0.044 0.755 0.245 #> A5--C3 -0.004 0.048 0.872 0.128 #> C1--C3 0.037 0.049 0.830 0.170 #> C2--C3 -0.006 0.042 0.881 0.119 #> A1--C4 0.004 0.044 0.876 0.124 #> A2--C4 0.038 0.047 0.831 0.169 #> A3--C4 0.108 0.047 0.324 0.676 #> A4--C4 -0.071 0.044 0.670 0.330 #> A5--C4 -0.047 0.049 0.808 0.192 #> C1--C4 0.078 0.047 0.624 0.376 #> C2--C4 0.012 0.047 0.867 0.133 #> C3--C4 -0.012 0.041 0.878 0.122 #> A1--C5 -0.043 0.048 0.818 0.182 #> A2--C5 -0.054 0.048 0.784 0.216 #> A3--C5 0.053 0.044 0.785 0.215 #> A4--C5 0.061 0.046 0.749 0.251 #> A5--C5 -0.001 0.046 0.876 0.124 #> C1--C5 -0.074 0.047 0.672 0.328 #> C2--C5 0.057 0.048 0.771 0.229 #> C3--C5 0.067 0.044 0.702 0.298 #> C4--C5 0.034 0.038 0.824 0.176 #> ---
# }