methods.section: Automated Methods Section for 'EGAnet' Objects

Description Usage Arguments Value Examples

View source: R/methods.section.R

Description

This function accepts EGA objects and generates a Methods section for your analysis. The output is an HTML page containing the descriptions of the methods and parameters as well as a Reference section for appropriate citation.

Usage

1
2
3
4
methods.section(
  ...,
  stats = c("net.loads", "net.scores", "dimStability", "itemStability")
)

Arguments

...

EGAnet objects. Available methods (more methods will be added soon!):

  • EGA Exploratory graph analysis

  • bootEGA Bootstrap exploratory graph analysis

stats

Methods section for statistics in EGAnet. Multiple statistics can be input. Available statistics:

  • net.loads Network loadings. Requires EGA object to be input

  • net.scores Network scores. Requires EGA object to be input

  • dimStability Structural consistency. Requires bootEGA object to be input

  • itemStability Item stability. Requires bootEGA object to be input

Value

Automated HTML Methods section in your default browser

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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Estimate EGA
## plot.type = "qqraph" used for CRAN checks
## plot.type = "GGally" is the default
ega.wmt <- EGA(data = wmt2[,7:24], plot.type = "qgraph")

# EGA Methods section
if(interactive()){
methods.section(ega.wmt)
}

# Estimate standardized network loadings
wmt.loads <- net.loads(ega.wmt)$std

# EGA Methods section with network loadings
if(interactive()){
methods.section(ega.wmt, stats = "net.loads")
}

# bootEGA example
## plot.type = "qqraph" used for CRAN checks
## plot.type = "GGally" is the default
boot.wmt <- bootEGA(data = wmt2[,7:24], iter = 500, plot.type = "qgraph",
type = "parametric", ncores = 2)

# EGA and bootEGA Methods section
if(interactive()){
methods.section(ega.wmt, boot.wmt)
}

# Estimate structural consistency
sc.wmt <- dimStability(boot.wmt, orig.wc = ega.wmt$wc, item.stability = TRUE)

# EGA and bootEGA Methods section with structural consistency and item stability
if(interactive()){
methods.section(boot.wmt, stats = c("dimStability", "itemStability"))
}

# EGA with network loadings and
# bootEGA Methods section with structural consistency and item stability
if(interactive()){
methods.section(ega.wmt, boot.wmt, stats = c("net.loads", "dimStability", "itemStability"))
}

EGAnet documentation built on Feb. 17, 2021, 1:06 a.m.