Differential Activity

The distribution of network size (a.k.a. degree) of members of the target population may depend on some characteristic(s) of the population. For example, if the characteristic of interest is the prevalence of a contagious disease, those with the disease may also have a higher average number of connections in the social network. The differential activity dialog compares the (weighted) average network size of two classes of the population, e.g. those with and without a disease.

The user inputs the choice of data set and binary variable(s) on which to compare members of the population, e.g. disease status.

The output is, for example:
"The mean degree of those with value 1 divided by the mean degree of those without is 0.6189263"

Note that "those with value 1" refers to the group that is ordered second alphabetically or numerically. If the variable has named states, e.g. "blue" and "red", the function will order alphabetically by default. If the states are integers, "those with value 1" would be those with the higher-number state.