existing_params: create a parameter object for an existing igraph

View source: R/existing_igraph.R

existing_paramsR Documentation

create a parameter object for an existing igraph

Description

Given an existing igraph object, add attributes for the frame population and for the hidden population.

Usage

existing_params(params)

Arguments

params

the parameters

Details

The params vector should have at least three entries:

  • groups is a vector that has a list of attributes that each node in the igraph object g has. These attributes should all have values of 0/1 or TRUE/FALSE.

  • gps.in.F is a vector that has a list of group names; nodes in those groups are taken to be in the frame population

  • gps.in.H is a vector that has a list of group names; nodes in those groups are taken to be in the hidden population

'

Value

an object with the parameters

Examples

my_params <- existing_params(list(group.names=c('a', 'b', 'c', 'd'),
                                  gps.in.F=c('b', 'c'),
                                  gps.in.H=c('a', 'b')))

dfeehan/nrsimulatr documentation built on Feb. 27, 2024, 3:18 a.m.