Description Usage Arguments Details Value References Examples
View source: R/directEffects.R
Performs the calculation of the mean incidence, left one-sided confidence interval, and p-value with multiple key informants for complete graphs and chained bipartite graphs. The function allows assigning zeros to the edges whose mean incidences are not significant at the set p-value.
1 2 3 4 5 6 7 8 9 | directEffects(
CC,
CE = NULL,
EE = NULL,
thr = 0.5,
conf.level = 0.95,
reps = 10000,
delete = FALSE
)
|
CC |
Three-dimensional matrix, where each submatrix along the z-axis is a square and reflective incidence matrix, or a list of data.frames containing square and reflective incidence matrices. Each matrix represents a complete graph. |
CE |
Three-dimensional matrix, where each submatrix along the z-axis is a rectangular incidence matrix, or a list of data.frames containing rectangular incidence matrices. Each matrix represents a bipartite graph. By default CE = NULL. |
EE |
Three-dimensional matrix, where each submatrix along the z-axis is a square and reflective incidence matrix, or a list of data.frames containing square and reflective incidence matrices. Each matrix represents a complete graph. By default EE = NULL. |
thr |
Real between [0,1]: Defines the degree of truth for which the incidence is considered significant. By default thr = 0.5. |
conf.level |
Real between [0,1]: Defines the confidence level. By default conf.level = 0.95. |
reps |
The number of bootstrap replicas. By default reps = 10,000. |
delete |
Logical: If delete = TRUE, zeroes are assigned to edges whose incidences are significantly less than thr to the p-value set in conf.level. By default delete = FALSE. |
directEffects
The function implements "boot.one.bca" from the wBoot package to get the UCI and the p-value. The function contemplates two modalities, the first is focused on complete graphs and the second for chain bipartite graphs. If you use the full graph mode, make sure to keep the default values of the CE and EE parameters.
The function returns a list with subsets of data. The $DirectEffects subset contains the following values:
From |
Origin of the incident. |
To |
Destination of the incident. |
Mean |
Average incidence. |
UCI |
Upper Confidence Interval of Incidence. |
p.value |
The calculated p-value. |
For delete = TRUE with complete graphs, the function returns $Data, the three-dimensional matrix entered in the CC parameter, but assigning 0 to the non-significant edges.
For delete = TRUE with chain bipartite graphs, the function returns $CC, $CE, $EE, the three-dimensional matrices entered in the parameters CC, CE and EE, but assigning 0 to the non-significant edges.
https://cran.r-project.org/web/packages/wBoot/index.html
1 2 3 4 5 6 | #' # For complete graphs only the CC parameter is used.
# For instance:
directEffects(CC = AA, thr = 0.5, conf.level=0.95, reps = 100, delete = FALSE)
# For chain bipartite graphs the parameters CC, CE and EE are used.
# For instance:
directEffects(CC = AA, CE = AB, EE = BB, thr = 0.5, conf.level=0.95, reps = 100, delete = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.