marcoh_dist: Distribution of Mean Degree by Age in Marriage/Cohab 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
marcoh_dist(
  x,
  maxage,
  marcoh_ages_restricted,
  marcoh_ages_all,
  categorical = FALSE
)

Arguments

x

network simulation object

maxage

age at which egos depart model - either 45 or 65

marcoh_ages_restricted

dist of expected mean degree using age-restricted alter set

marcoh_ages_all

dist of exp mean degree using all reported alters

categorical

default = FALSE, whether or not to return dist by age or agecat


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