View source: R/simulation_analysis.R
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.
1 2 3 4 5 6 7 | marcoh_dist(
x,
maxage,
marcoh_ages_restricted,
marcoh_ages_all,
categorical = FALSE
)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.