E
E.Hobson
I am a graduate student in biology, and am trying to figure out a way for
Access to make a matrix of association patterns for me. I am studying the
social interactions of a population of marked birds - each bird has a metal
band with a 3-digit code to identify it, which becomes BirdID in my database.
I made a cross-tab query that compiles my raw data so that Date, Time, and
NestID are Row Headings, and BirdID is the Column Heading and number of birds
are summed as the Value.
ex:
Date NestID Time 007 008 009
010 011
14-Jul-07 N08 14:37 1
1 1
14-Jul-07 N08 14:43 1 1
1
Etc. So at Time 14:37, birds 007, 009, and 011 were interacting, while at
14:43, 007, 008, and 009 were interacting. I am trying to figure out how to
get this data into a symmetric square matrix so that access will return a
count of the number of times that individual birds interact with each other.
For the matrix I'm trying to get it so that BirdID is along the top & left
side, with total interactions summed for each combination of birds. It
should look like this:
007 008 009 010
007 0 1 2 0
008 0 0 1 0
009 2 1 0 0
010 0 0 0 0
I tried the iif function for the first time today, but it wasn't returning
the data in quite the way that I wanted. Anyone know a way to get Access to
do a matrix like this for me? Thank you very much for the help!
Access to make a matrix of association patterns for me. I am studying the
social interactions of a population of marked birds - each bird has a metal
band with a 3-digit code to identify it, which becomes BirdID in my database.
I made a cross-tab query that compiles my raw data so that Date, Time, and
NestID are Row Headings, and BirdID is the Column Heading and number of birds
are summed as the Value.
ex:
Date NestID Time 007 008 009
010 011
14-Jul-07 N08 14:37 1
1 1
14-Jul-07 N08 14:43 1 1
1
Etc. So at Time 14:37, birds 007, 009, and 011 were interacting, while at
14:43, 007, 008, and 009 were interacting. I am trying to figure out how to
get this data into a symmetric square matrix so that access will return a
count of the number of times that individual birds interact with each other.
For the matrix I'm trying to get it so that BirdID is along the top & left
side, with total interactions summed for each combination of birds. It
should look like this:
007 008 009 010
007 0 1 2 0
008 0 0 1 0
009 2 1 0 0
010 0 0 0 0
I tried the iif function for the first time today, but it wasn't returning
the data in quite the way that I wanted. Anyone know a way to get Access to
do a matrix like this for me? Thank you very much for the help!