read.egonet.one.file: Import ego-centric network data from 'one file format'

Description Usage Arguments Value References

Description

This function imports ego-centric network data, stored in a single file, providing ego, alter and edge data. This data format is for exampled used by the Allbus 2010 (GESIS) and similar social surveys.

Usage

1
2
read.egonet.one.file(egos, netsize, egoID = "egoID", attr.start.col,
  attr.end.col, dy.max.alteri, dy.first.var, ego.vars = NULL, var.wise = F)

Arguments

egos

Data frame containg ego data (egos as cases)

netsize

Vector containing values of network size per ego.

egoID

Character. Name of the variable identifying egos (default: "egoID").

attr.start.col

First colum containing alter attributes.

attr.end.col

Last colum containing alter attributes.

dy.max.alteri

Maximum number of alteri.

dy.first.var

First column containing alter-alter relations/ edges.

ego.vars

A data.frame of alteri attributes in the wide format.

var.wise

Logical value indicatin if the alter attributes are sorted variable wise (defaults to FALSE).

Value

A list of six objects - the **egoR** object: (1) egos.df: dataframe of all egos and their attributes; (2) alteri.df: dataframe of all alteri; (3) alteri.list: list of dataframes of all alteri per ego; (4) edges: list of dataframes with edge lists per network; (5) graphs: list of igraph objects; (6) results: a result dataframe, pre-populated with the network size of each network

References

Muller, C., Wellman, B., & Marin, A. (1999). How to Use SPSS to Study Ego-Centered Networks. Bulletin de Methodologie Sociologique, 64(1), 83–100.


tilltnet/egonetR documentation built on May 31, 2019, 1:46 p.m.