DACSS / POLISCI753_tutorials

1 stars 12 forks source link

create basic network tutorial from basic network scripts #22

Open mrolfe opened 2 years ago

mrolfe commented 2 years ago

add in a new set of functions to create proportional ties for edgelist, can just group_by(from)%>% mutate(tot_sum = sum(weight, na.rm=TRUE), prop_weight = weight/tot_sum )

For affiliation matrix, or maybe bipartite, can sweep out diagonal (function = division) or pivot_longer into edgelist and then run function above

IF both I and j need to exceed a threshold, put that into filter conditions