Hello can anyone please help me with the following?
I want to make a co-occurrence matrix:
i have 100 lists of 10 strings long. what I want to know is how many times duo's of strings co-occur on a list.
so the list of person 1 may look like:
-aardvark
-bee
-cicade
-deer
-earthworm
-flatworm
-giraffe
etc
and the list of person 2 may look like:
-cicade
-giraffe
-horse
-karibo
-lungfish
etc.
In this example cicade and giraffe have a co-occurrence of 2 (they are BOTH present in 2 lists).
What functions/ formulae does one use to make a co-occurrence matrix where all co-occurrences are calculated for all the strings in the 100 lists?
I thought a sum-product, or an IF statement with an AND function, might do the trick. But I haven't been successful yet.
Many thanks i advance
Niek
Bookmarks