{"id":130,"date":"2020-05-28T15:38:45","date_gmt":"2020-05-28T15:38:45","guid":{"rendered":"http:\/\/www.ben-parker.co.uk\/?p=130"},"modified":"2020-05-28T15:38:45","modified_gmt":"2020-05-28T15:38:45","slug":"networkdesign-an-r-package","status":"publish","type":"post","link":"http:\/\/www.ben-parker.co.uk\/?p=130","title":{"rendered":"networkDesign &#8211; an R Package"},"content":{"rendered":"<p>I&#8217;ve finally got round to publishing some code and a vignette (a how-to) for our\u00a0research paper &#8220;<a href=\"https:\/\/bura.brunel.ac.uk\/handle\/2438\/19995\">Optimal Design of Experiments on Connected Units with Application to Social Networks<\/a>&#8220;.<\/p>\n<h2>Summary of Theory<\/h2>\n<p>Consider a simple network as shown in the image. Nodes 1,2,3, and 4 represent people in a network, and we wish to show an advert to each of them.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-132 size-medium\" src=\"http:\/\/www.ben-parker.co.uk\/wp-content\/uploads\/2020\/05\/SimpleNetwork-300x174.png\" alt=\"\" width=\"300\" height=\"174\" srcset=\"http:\/\/www.ben-parker.co.uk\/wp-content\/uploads\/2020\/05\/SimpleNetwork-300x174.png 300w, http:\/\/www.ben-parker.co.uk\/wp-content\/uploads\/2020\/05\/SimpleNetwork-768x445.png 768w, http:\/\/www.ben-parker.co.uk\/wp-content\/uploads\/2020\/05\/SimpleNetwork-1024x593.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The idea behind the model is that if a treatment is given to subject 2, connections of subject 2 might be affected by the treatment, and their response might be altered because of the treatment I gave to subject 1.<\/p>\n<p>The total effect on subject 1 is determined by whatever treatment I give to subject 1 himself, plus an effect due to the treatment I gave to subject 2.<\/p>\n<p>This is formalised in the <em>Linear network effect model.\u00a0<\/em>In the paper, we consider how to optimally design experiments where treatments can be transmitted through a network in this way.<\/p>\n<p>&nbsp;<\/p>\n<h2>R Code and Vignette<\/h2>\n<p>The aim of the vignette is to provide the means for users to reproduce the results in that paper, and extend them to their own work. This vignette, and indeed the whole package, is very much a draft, and suggestions<br \/>\nfor changes\/improvements are welcomed.<\/p>\n<p>Vignette: <a href=\"http:\/\/www.ben-parker.co.uk\/wp-content\/uploads\/2020\/05\/ExhaustiveSearch.pdf\">A vignette which explains how to use the package<\/a><\/p>\n<p>Code: <a href=\"https:\/\/github.com\/bmp22\/networkDesign\">Available on github<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>Future work<\/h2>\n<p>Myself and collaborators are currently working on extensions to this work e.g for Block Designs<a href=\"https:\/\/arxiv.org\/abs\/1902.01352\">(arXiv:1902.01352),<\/a>\u00a0Faster algorithms for designs using networks (<a href=\"https:\/\/arxiv.org\/abs\/1802.09582\">arXiv:1802.09582<\/a>\u00a0), and Viral Networks. Watch this space for expansions to the software!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve finally got round to publishing some code and a vignette (a how-to) for our\u00a0research paper &#8220;Optimal Design of Experiments on Connected Units with Application to Social Networks&#8220;. Summary of Theory Consider a simple network as shown in the image. Nodes 1,2,3, and 4 represent people in a network, and we wish to show an [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.ben-parker.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ben-parker.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ben-parker.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ben-parker.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ben-parker.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=130"}],"version-history":[{"count":1,"href":"http:\/\/www.ben-parker.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":133,"href":"http:\/\/www.ben-parker.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/130\/revisions\/133"}],"wp:attachment":[{"href":"http:\/\/www.ben-parker.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ben-parker.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ben-parker.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}