nSampleNet | R Documentation |
This function allows for the extraction of a user-specified sample size from the data, a n number of times. The function estimates the network either through BGGM for ordinal variables or ggmModSelect. The function returns net descriptives from all the random n samples retrieved and the mean global descriptives for the global network properties from netDesc function
nSampleNet(nsamples, samplesize, data, method)
nsamples |
number of samples to extract |
samplesize |
Size of of the sample |
data |
data from where the samples should be exracted |
method |
"ggmModSelect" estimation with bootnet or "BGGM1" estimation with BGGM for ordinal variables |
mean values for global network properties and netDesc results for all samples
Daniel Castro
##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (x)
{
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.