bootSemNeT | R Documentation |
Bootstrap techniques to generate semantic networks and compute global network characteristics
bootSemNeT(
...,
method = c("CN", "NRW", "PF", "TMFG"),
methodArgs = list(),
type = c("case", "node"),
prop = 0.5,
sim,
weighted = FALSE,
iter = 1000,
cores
)
... |
Matrices or data frames.
Cleaned response matrices (e.g., |
method |
Character. Network estimation method to use. Current options include:
|
methodArgs |
List.
A list of additional arguments for the network estimation function.
See links in argument |
type |
Character. Type of bootstrap to perform
|
prop |
Numeric.
Only for |
sim |
Character.
Similarity measure to use.
Defaults to |
weighted |
Boolean.
Should weighted ASPL and CC be used?
Defaults to |
iter |
Numeric.
Number of iterations in bootstrap.
Defaults to |
cores |
Numeric.
Number of computer processing cores to use for bootstrapping samples.
Defaults to n / 2 total number of cores.
Set to any number between 1 and maximum amount of cores on your computer
(see |
Returns a list containing:
dataMeas |
A matrix for the network input in the |
dataSumm |
Summary statistics across the bootrapped samples for the
network input in the |
prop |
Outputs the proportion used from the |
iter |
Outputs the number of bootstrapped samples
used from the |
If a paired
network is input, then also returns:
pairedMeas |
A matrix for the network input in the |
pairedSumm |
Summary statistics across the bootrapped samples for the
network input in the |
Alexander Christensen <alexpaulchristensen@gmail.com>
# Simulate Dataset
one <- sim.fluency(20)
# Run bootstrap node-drop (partial) networks
one.result <- bootSemNeT(one, prop = .50, iter = 100,
sim = "cosine", cores = 2, method = "TMFG", type = "node")
# Run bootstrap case-drop networks
## Includes additional equating argument: minCase
one.result <- bootSemNeT(one, iter = 100, sim = "cosine",
cores = 2, method = "TMFG", type = "case", methodArgs = list(minCase = 2))
# Bootstrap case-wise networks
## Get openness data
low <- open.clean[which(open.group == "Low"),]
high <- open.clean[which(open.group == "High"),]
## Run
### Inlcudes additional NRW argument: threshold
open <- bootSemNeT(low, high, iter = 100, cores = 2, method = "NRW", type = "case",
methodArgs = list(type = "num", threshold = 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.