View source: R/add_node_connectivity.R
| add_node_connectivity | R Documentation |
Adds counts for the connectivity of the cases (nodes).
add_node_connectivity(network, qca_data, count = NULL, bipartite = NULL)
network |
An object of class 'network'. |
qca_data |
The QCA-dataset you want to extend. |
count |
The connectivity-count you want to add to the QCA-dataset as a variable. Right now, threepaths and fourcycles are available. Select them with e.g. 'count = "Fourcycles"' |
bipartite |
If the network is bipartite, select the level the cases and the outcome are on. If they are on the first level (sometimes referred as the actor level) of a bipartite network, choose 'b1', if they are on the second level (sometimes referred as the event level), choose 'b2'. Otherwise omit it. |
Sometimes it might be interesting to know how well the the nodes that are the cases for the QCA are connected within the network and if that this connectivity could be a condition for the outcome that you want to examine. This function adds a new column to your QCA-dataset with the number of threepaths and/or fourcycles that the individual cases/nodes are a member of.
The preexisting QCA-dataset enhanced with a new column with the threepaths or fourcycles the cases (or nodes) are a member of.
Butts, Carter T. (2008). network: a Package for Managing Relational Data in R. Journal of Statistical Software, 24(2). https://www.jstatsoft.org/v24/i02/paper.
Butts, Carter T. (2020). sna: Tools for Social Network Analysis. R package version 2.6. https://CRAN.R-project.org/package=sna.
Kirill Müller and Hadley Wickham (2021). tibble: Simple Data Frames. R package version 3.1.4. https://CRAN.R-project.org/package=tibble.
## Not run: qca_data <- add_node_connectivity(qca_data, network, count = "Fourcycles", "b2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.