Package assortnet. January 18, 2016

Similar documents
Package DirectedClustering

Package anidom. July 25, 2017

Package AnDE. R topics documented: February 19, 2015

Package dkdna. June 1, Description Compute diffusion kernels on DNA polymorphisms, including SNP and bi-allelic genotypes.

Package eulerian. February 19, Index 5

Package datasets.load

Package RYoudaoTranslate

Package RCA. R topics documented: February 29, 2016

Package DRaWR. February 5, 2016

Package distance.sample.size

Package SSLASSO. August 28, 2018

Package CompGLM. April 29, 2018

Package fastdummies. January 8, 2018

Package endogenous. October 29, 2016

Package robustreg. R topics documented: April 27, Version Date Title Robust Regression Functions

Package rpst. June 6, 2017

Package CvM2SL2Test. February 15, 2013

Package Combine. R topics documented: September 4, Type Package Title Game-Theoretic Probability Combination Version 1.

CS 206 Introduction to Computer Science II

Package truncreg. R topics documented: August 3, 2016

Package smoother. April 16, 2015

Package NetCluster. R topics documented: February 19, Type Package Version 0.2 Date Title Clustering for networks

Package QCAtools. January 3, 2017

Package CatEncoders. March 8, 2017

Package RAMP. May 25, 2017

Package keep. R topics documented: December 16, 2015

Package reval. May 26, 2015

Package manet. September 19, 2017

Package crossword.r. January 19, 2018

Package Rambo. February 19, 2015

Package ICsurv. February 19, 2015

Package apastyle. March 29, 2017

Package kirby21.base

Package recoder. R topics documented: July 10, Type Package Title A Simple and Flexible Recoder

Package ECctmc. May 1, 2018

Package corclass. R topics documented: January 20, 2016

Package CuCubes. December 9, 2016

Package frt. R topics documented: February 19, 2015

Package lazydata. December 4, 2016

Package nfca. February 20, 2015

Package rgcvpack. February 20, Index 6. Fitting Thin Plate Smoothing Spline. Fit thin plate splines of any order with user specified knots

Package egonet. February 19, 2015

Package pairsd3. R topics documented: August 29, Title D3 Scatterplot Matrices Version 0.1.0

Package MultiRR. October 21, 2015

Package fgpt. February 19, 2015

Package ms.sev. R topics documented: December 21, Type Package

Package MultiMeta. February 19, 2015

Package flsa. February 19, 2015

Package PedCNV. February 19, 2015

Package spark. July 21, 2017

Package mpmi. November 20, 2016

Package clustmixtype

Package hiernet. March 18, 2018

Package JGEE. November 18, 2015

Package horizon. R topics documented: July 3, Type Package Title Horizon Search Algorithm Version 1.2 Date Author Jasper Van doninck

Package crochet. January 8, 2018

Package gee. June 29, 2015

Package desirability

Package FastKNN. February 19, 2015

Package nos. September 11, 2017

Package oaxaca. January 3, Index 11

Package GWAF. March 12, 2015

Package glassomix. May 30, 2013

Package globalgsa. February 19, 2015

Package rgho. R topics documented: January 18, 2017

Package GlobalDeviance

Package kernelfactory

Package curry. September 28, 2016

Package tmpm. February 29, 2016

Package StVAR. February 11, 2017

Package RaschSampler

Package SPIn. R topics documented: February 19, Type Package

Package allehap. August 19, 2017

Package OmicKriging. August 29, 2016

Package causalmgm. September 14, 2017

Package getopt. February 16, 2018

Package SAMUR. March 27, 2015

Package EBglmnet. January 30, 2016

Package Rcplex. February 15, 2013

Package GenSA. R topics documented: January 17, Type Package Title Generalized Simulated Annealing Version 1.1.

Package mrm. December 27, 2016

Package panelview. April 24, 2018

Package rwars. January 14, 2017

Package ArrayBin. February 19, 2015

Package LGRF. September 13, 2015

Package sparsehessianfd

Package gsalib. R topics documented: February 20, Type Package. Title Utility Functions For GATK. Version 2.1.

Package gridgraphics

Package quadprogxt. February 4, 2018

Package gpdtest. February 19, 2015

Package Rsomoclu. January 3, 2019

Package canvasxpress

Package rdd. March 14, 2016

Package glmnetutils. August 1, 2017

Package ECOSolveR. February 18, 2018

Package qap. February 27, Index 5. Solve Quadratic Assignment Problems (QAP)

Package rocc. February 20, 2015

Package hpoplot. R topics documented: December 14, 2015

Package bife. May 7, 2017

Package SparseFactorAnalysis

Transcription:

Type Package Package assortnet January 18, 2016 Title Calculate the Assortativity Coefficient of Weighted and Binary Networks Version 0.12 Date 2016-01-18 Author Damien Farine <dfarine@orn.mpg.de> Maintainer Damien Farine <dfarine@orn.mpg.de> Description Functions to calculate the assortment of vertices in social networks. This can be measured on both weighted and binary networks, with discrete or continuous vertex values. License GPL-2 NeedsCompilation no Repository CRAN Date/Publication 2016-01-18 22:56:18 R topics documented: assortnet-package...................................... 1 assortment.continuous................................... 2 assortment.discrete..................................... 4 Index 6 assortnet-package Calculate the assortativity coefficient of weighted and binary networks ~~ assortnet ~~ Description Details Functions to calculate the assortment of vertices in social networks. This can be measured on both weighted and binary networks, with discrete or continuous vertex values. 1

2 assortment.continuous Package: assortnet Type: Package Version: 0.12 Date: 2016-01-17 License: GPL2 Author(s) Maintainer: Damien Farine <dfarine@orn.mpg.de> References Newman (2003) Mixing patterns in networks. Physical Review E (67) Farine, D.R. (2014) Measuring phenotypic assortment in animal social networks: weighted associations are more robust than binary edges. Animal Behaviour 89: 141-153. assortment.continuous Assortment on continuous vertex values Description Usage Calculates the assortativity coefficient for weighted and unweighted graphs with numerical vertex values assortment.continuous(graph, vertex_values, weighted = TRUE, SE = FALSE, M = 1) Arguments graph vertex_values weighted SE M A Adjacency matrix, as an N x N matrix. Can be weighted or binary. Values on which to calculate assortment, vector of N numbers Flag: TRUE to use weighted edges, FALSE to turn edges into binary (even if weights are given) Calculate standard error using the Jackknife method. Binning value for Jackknife, where M edges are removed rather than single edges. This helps speed up the estimate for large networks with many edges. Value This function returns a named list, with two elements: $r the assortativity coefficient $SE the standard error

assortment.continuous 3 Author(s) Damien Farine dfarine@orn.mpg.de References Newman (2003) Mixing patterns in networks. Physical Review E (67) Farine, D.R. (2014) Measuring phenotypic assortment in animal social networks: weighted associations are more robust than binary edges. Animal Behaviour 89: 141-153. Examples # DIRECTED NETWORK EXAMPLE # Create a random directed network dyads <- dyads[which(dyads$id1!= dyads$id2),] # Create random continues trait values traits <- rnorm(n) assortment.continuous(network,traits,weighted=false) assortment.continuous(network,traits,weighted=true) # UNDIRECTED NETWORK EXAMPLE # Create a random undirected network dyads <- dyads[which(dyads$id1 < dyads$id2),] network[cbind(dyads$id2,dyads$id1)] <- weights # Create random continues trait values traits <- rnorm(n) assortment.continuous(network,traits,weighted=false) assortment.continuous(network,traits,weighted=true)

4 assortment.discrete assortment.discrete Assortment on discrete vertex values Description Usage Calculates the assortativity coefficient for weighted and unweighted graphs with nominal/categorical vertex values assortment.discrete(graph, types, weighted = TRUE, SE = FALSE, M = 1) Arguments graph types weighted SE M Adjacency matrix, as an N x N matrix. Can be weighted or binary. Values on which to calculate assortment, vector of N labels Flag: TRUE to use weighted edges, FALSE to turn edges into binary (even if weights are given) Calculate standard error using the Jackknife method. Binning value for Jackknife, where M edges are removed rather than single edges. This helps speed up the estimate for large networks with many edges. Value This function returns a named list, with three elements: $r the assortativity coefficient $SE the standard error $mixing_matrix the mixing matrix with the distribution of edges or edge weights by category Author(s) Damien Farine dfarine@orn.mpg.de References Newman (2003) Mixing patterns in networks. Physical Review E (67) Farine, D.R. (2014) Measuring phenotypic assortment in animal social networks: weighted associations are more robust than binary edges. Animal Behaviour 89: 141-153. Examples # DIRECTED NETWORK EXAMPLE # Create a random directed network dyads <- dyads[which(dyads$id1!= dyads$id2),]

assortment.discrete 5 # Create random discrete trait values traits <- rpois(n,2) assortment.discrete(network,traits,weighted=false) assortment.discrete(network,traits,weighted=true) # UNDIRECTED NETWORK EXAMPLE # Create a random undirected network dyads <- dyads[which(dyads$id1 < dyads$id2),] network[cbind(dyads$id2,dyads$id1)] <- weights # Create random discrete trait values traits <- rpois(n,2) assortment.discrete(network,traits,weighted=false) assortment.discrete(network,traits,weighted=true)

Index Topic package assortnet-package, 1 assortment.continuous, 2 assortment.discrete, 4 assortnet (assortnet-package), 1 assortnet-package, 1 6