Usage Arguments Value Author(s) Examples
1 | networkAnalysis(x, methods = c("cor", "pcor", "alpcor", "plspcor", "pc", "pcskel", "BDbest", "BDpost", "BDavg", "bn.gs", "bnboot.gs", "bn.iamb", "bnboot.iamb", "bn.hc", "bnboot.hc", "bn.tabu", "bnboot.tabu", "bn.mmhc", "bnboot.mmhc", "bn.rsmax2", "bnboot.rsmax2", "bn.mmpc", "bnboot.mmpc", "bn.si.hiton.pc", "bnboot.si.hiton.pc", "bn.chow.liu", "bnboot.chow.liu", "bn.aracne", "bnboot.aracne", "IsingFit"), scale, nonparanormal = FALSE, ask = FALSE, titles = TRUE, citations = TRUE, layout = "spring", layoutToFirst = TRUE, pcAlpha = 0.05, BDargs = list(), bnlearnArgs = list(), bnbootArgs = list(R = 200), parallelEdge = TRUE, labels = TRUE, verbose = TRUE, pcNoDicho = FALSE, adaptDF = TRUE, graphArgs = list(), IsingFitArgs = list(), ...)
|
x |
A dataset with rows indicating measures and columns indicating variables. All variables must be of the same scale: dichotomous, ordinal or continous. |
methods |
A vector of strings indicating which networks to estimate. The function will estimate all graphs and plot them after each other (e.g., so that |
scale |
|
nonparanormal |
Should the nonparanormal transfromation from |
ask |
Logical indicating if R should ask to go to the next plot. |
titles |
Logical indicating if titles should be added. |
citations |
Logical indicating if citations should be added. |
layout |
Layout to be used in all graphs |
layoutToFirst |
Equate layout to the layout of the first plot? |
pcAlpha |
Alpha used in pcalg functions |
BDargs |
List of arguments used in |
bnlearnArgs |
List of arguments used in |
bnbootArgs |
List of arguments used in |
parallelEdge |
Same as in |
labels |
Same as in |
verbose |
Should messages be printed to the console indicating what is happening? |
pcNoDicho |
Logical. If |
adaptDF |
Argument used in pcalg |
graphArgs |
Named list with qgraph args that can be used to specify specific arguments. E.g., |
IsingFitArgs |
Arguments used in |
... |
Arguments sent to |
A named list with for each estimated graph:
graph |
The weights matrix of the graph |
output |
Output of the method |
qgraph |
The qgraph object |
method |
A string indicating the method used |
Sacha Epskamp <mail@sachaepskamp.com>
1 2 3 4 5 6 7 8 9 10 11 | # Load smoking dataset:
data(smoking)
# Estimate three networks:
Res <- networkAnalysis(smoking, methods = c( "pc", "IsingFit" , "bn.gs"), ask = FALSE)
# Centrality measures:
centralityPlot(Res)
# Clustering:
centralityPlot(Res)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.