Learn R Programming

mgm (version 1.1-7)

summary.rs:

Description

Gives a summary of resampled MGMs / mixed VAR models.

Usage

# S3 method for rs
summary(object, ZeroEdges = FALSE, ...)

Arguments

object
The output object of rs.mgm
ZeroEdges
If FALSE, only edges which are at least once estimated as nonzero in B bootstrap samples are shown in the summary.
...
Not used.

Value

Gives a summary of edge estimates of models estiamted on B resampled datasets (see ?rs.mgm).

Examples

Run this code

## Not run: ------------------------------------
# 
# # Fit Mixed Graphical Model to Bootstrap Samples of the autism dataset
# rs_obj <- rs.mgm(data = autism_data$data, 
#                  type = autism_data$type,
#                  lev = autism_data$lev,
#                  VAR = FALSE, # fit mgm model
#                  B = 10,
#                  N = nrow(autism_data$data), # for classical bootstrap
#                  replace=TRUE)
# 
# # Summary of bootstrapped edge weights
# summary(rs_obj)
# 
# # Plot bootstrapped edge weights using boxplots
# plot(rs_obj)
# 
## ---------------------------------------------

Run the code above in your browser using DataLab