Description Usage Arguments Value

View source: R/strategicplayers.R

Takes in the geodesic distances, targets, avoiders, a parameter that prioritizes avoiding vs targetting, and the current players and returns the strategic players distance metric

1 | ```
distance(gd, targets, avoiders, theta, players)
``` |

`gd` |
a matrix of geodesic distances for the network of interest |

`targets` |
a vector of indicies of the people you want to spread the intervention to |

`avoiders` |
a vector of indicies of the people you don't want to spread the intervention to |

`theta` |
a number between 0 and 1 which weights the distance metric, 1 only prioritizes closeness to targets, 0 only prioritizes maximizing distance from avoiders |

`players` |
the indicies of people who you have chosen for the intervention (a subset of targets) |

returns the distance metric for strategic players, which we want to maximize

MilesOtt/strategicplayers documentation built on May 19, 2017, 4:59 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.