casual_dist: Distribution of Mean Degree by Age in Casual Network

Description Usage Arguments

View source: R/simulation_analysis.R

Description

This function takes the list of relationships active on the last time step of the simulation (averaged over each run) and calculates the mean degree by age. It then takes that distribution and plots it under the expected distribution based on the egodata. The exported object includes both the ggplot object and the raw data.

Usage

1
2
3
4
5
6
7
casual_dist(
  x,
  maxage,
  casual_ages_restricted,
  casual_ages_all,
  categorical = FALSE
)

Arguments

x

network simulation object

maxage

age at which egos depart model - either 45 or 65

casual_ages_restricted

dist of expected mean degree using age-restricted alter set

casual_ages_all

dist of exp mean degree using all reported alters


EmilyPo/ddaf documentation built on Jan. 12, 2021, 5:18 a.m.