Learn R Programming

mgm (version 1.1-7)

plot.rs:

Description

Visualizes the bootstrapped edge weights from rs.mgm() using boxplots

Usage

# S3 method for rs
plot(x, y = NULL, …)

Arguments

x
Output object from the rs.mgm() function.
y
Not used
Not used

Details

Returns a boxplot of each edge-weight that was at least once nonzero in the B bootstrap samples.

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, # to estimate mgm model
#                  B = 10,
#                  N = nrow(autism_data$data), # for classical bootstrap
#                  replace=TRUE)
# 
# # Plot bootstrapped edge weights using boxplots
# plot(rs_obj)
# 
# # Summary of bootstrapped edge weights
# summary(rs_obj)
# 
# 
## ---------------------------------------------


Run the code above in your browser using DataLab