makedata: makedata

Description Usage Arguments Details Value Author(s)

View source: R/data.R

Description

make a simple graph for SIR modelling

Usage

1
2
makedata(g = graph.famous("Zachary"), s = 310366, pvac = 0.6,
  start = as.Date("2014-01-01"))

Arguments

g

a simple graph

s

a random seed

pvac

vaccination probability

start

time start

Details

make a graph for SIR modelling - it initialises the network and the state parameter, and adds a few more random things such as age, sex, vaccination state. Handy for simple tests

Value

a modified version of g with extra vertex attributes

Author(s)

Barry S Rowlingson


barryrowlingson/sirgraph documentation built on April 8, 2020, 7:19 p.m.