nSampleNet: random sample selection from data and net descriptives...

View source: R/nSampleNet.R

nSampleNetR Documentation

random sample selection from data and net descriptives estimation

Description

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

Usage

nSampleNet(nsamples, samplesize, data, method)

Arguments

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

Value

mean values for global network properties and netDesc results for all samples

Author(s)

Daniel Castro

Examples

##---- 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)
{
  }

danielcastro86/psychNetsAttack documentation built on Jan. 31, 2025, 8:14 p.m.