



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Data entry, plotting, and analysis
The purpose of this laboratory session is to introduce you to the basics of Microsoft Excel, data presentation, and data analysis. Excel is a spreadsheet program that is extremely useful for managing, plotting, and analyzing data. In this lab session you will learn how to enter your data into a spreadsheet, manipulate data once it is entered, make calculations, plot data, and to analyze data. We are going to use the data we collected last week to explore some of the features of Excel and to practice some useful methods for analyzing data. I hope that you had a chance to practice with Excel using the Excel Practice pdf. I think you will find this lab useful when writing-up your independent projects. For most of this exercise you should work at your own computer station (although feel free to learn from the students around you – and to help each other with data entry). For the observational data, please work in a pair (with the person at the adjacent computer station). If there are not enough station, then you will need to pair up.
Observational Data We will begin by entering the observational data from last week into a spreadsheet. You can do this in a number of different ways. We will begin with the focal animal observation data. You may want to have one person recite the data while the other enters the data. It is useful to have headings that identify the data in each column. Begin organizing your data as follows:
Time 1 Time 2 Behavior 14:27:08 14:28:15 Feed 14:28:15 14:30:01 Travel 14:30:01 14:33:54 Feed
You should format the first two columns of cells for time. To do this, go to FORMAT, CELL and select TIME. Then choose the appropriate time format. Once you have entered all the focal animal data you will want to calculate the total number of minutes animals spent doing each behavior. One way to do this is to insert a column between Time 2 and Behavior. To do this, place your cursor in the behavior column. Go to INSERT and COLUMN. A new column will be inserted behind the location of your cursor. Label this column Minutes. Format this column for time as you did in the first two columns.
Focal Time 1 Time 2 Minutes Behavior 14:27:08 14:28:15 0:01:07 Feed 14:28:15 14:30:15 0:02:00 Travel 14:30:15 14:33:54 0:03:39 Feed
Now we can calculate the number of minutes spent in each behavior. To begin a calculation in excel you enter an equal sign (=). This tells the computer to do the calculation that follows. In this case we would write =B3-A3. This tells the computer to subtract the value in box A3 from the value in the box B3. When you hit enter, the
answer will be given in the box where you had your cursor. Now copy this box and paste all the way down the column (i.e., drag and drop). What happens? Now that you have calculated the minutes for each interval, you can add up the minutes for each behavior. There are lots of ways to do this. One easy way is to use the data filter. Go to DATA, FILTER, and then select AUTO FILTER. This is an extremely useful feature that allows you to sort through categories of data. Your TA will demonstrate this feature in lab. You have to be very careful when cutting and pasting in this format. Your TA will point out some of the pitfalls. Use the arrow keys at the top of the spreadsheet to select a category in the behavior column. Once you have selected a behavior, you can sum the minutes in the MINUTES column. When summing the cells, make sure to position your cursor in a box that is not affected by the auto filter feature (a pitfall). Repeat this procedure for the rest of the behaviors. You can also calculate the total number of observational minutes in this same way. Now you are set up to calculate the frequencies. Use Excel to calculate the frequency for each behavior. Now enter the instantaneous and 0/1 observational data. You may want to organize it in a similar way. You should enter the data from each technique on a separate spreadsheet. If you have several spreadsheets active at once, you should label your spreadsheets. To do this, right click on the tab at the bottom that says sheet 1 and re- label the sheet as Focal, Instantaneous, or 0/1. After you enter the data, calculate the frequency using some of the techniques described above. One feature you may find useful is the COUNT feature. This feature allows you to count the number of cells you have in a column. Highlight the data of interest and right click on the mouse. This will give you several options including COUNT. Once you have calculated the frequencies of each behavior for all your data sets, copy and paste these values onto a new spreadsheet. We are going to use this data to create a number of different bar graphs. We will be using the CHART WIZARD to construct our figures. One way to organize your frequency data is as follows:
Run Skip Jump Eat Other Focal 0.76 1 0.8 0.6 0. Instant 0.25 0.36 0.79 0.54 0. Scan 0.56 0.77 0.1 1 0.
Once you have organized your data, highlight the behavioral categories and the data for the focal observations (only). Click on the chart icon at the top of your screen and select COLUMN and enter NEXT. Label your axes, give your figure a title, and enter NEXT. Now select the option that places the chart onto the current sheet and enter FINISH. Your data and figure should now be on the same sheet. Click on the figure. This should highlight your data. You can now add the other data onto the chart by dragging the highlighted outline to include the other data. Try this and see what happens. Try graphing one behavior at a time. Try experimenting with some of the formatting features. For example, move the title to the bottom of the figure. Your TA will demonstrate some of these features in class.
Quadrat Data The quadrat data for all three ecology labs have been entered into a spreadsheet and placed on the web. Use the browser to go the course web site – go to the lab
Figure 1: The allometric relationship betw een w et mass and rosette diameter in tw o species of plant
0
10000
20000
30000
40000
50000
60000
70000
80000
90000
0 10 20 30 Rosette diam eter (cm )
wet mass (mg)
Species A Species B
After you plot the data, examine the relationship between X and Y. Is it linear (i.e., does it fall on a straight line)? If the relationships are not linear, it will be very difficult to analyze the data or compare two species (at least using the statistical tools that we will use). If the relationship is not linear, we may be able to transform the data so that it becomes linear. There are many possible transformations. The one that we’ll examine today is the log-transformation, which can linearize non-linear relationships, such as:
Relationship of Y to X
Y = aX Y = aX^2 Y= aX0.5^ Y = a/X
Transformation necessary None Logarithmic Logarithmic Logarithmic
Transformed relationship n.a. log(Y)=log(a)+2log(X) log(Y)=log(a)+0.5log(X) log(Y)=log(a)- log(X)
Allometric relationships, such as the ones we will look at (examples of which are shown above), are generally described with a power function: Y = aXb. You should be comfortable with the variety of relationships described by this simple function. Power functions describe many useful or interesting biological relationships (e.g., mass vs. length; metabolic length vs. mass; brain mass vs. body mass; lung volume vs. body mass; heart rate vs. body mass; fecundity vs. female body length). Relationships that follow a power function can be transformed to a linear relationship by log-transforming both the Y and X variables: log(Y) = log(a) + b*log(X), where log refers to the logarithm using any base (although log 10 and natural logs, loge or ln, are most common). Notice that this transformed relationship describes a straight line, with a slope equal to b, and a Y-
intercept of log(a). If a relationship follows this function, then a given proportional increase in X, leads to a fixed (and different, unless b=1) proportional increase in Y, no matter what the absolute value of X. To transform the data, insert columns where necessary and use the functions available in Excel to take the log of the original data. You can use any base, but it’s often clearer if you use the base 10 (in excel this is specified by the function log10 or log ; natural logs are returned using the function ln ). Calculate the log10 of the data. Your spreadsheet should look something like this when you are finished
species diameter (cm) mass (mg)
log diameter (cm) log mass (mg) a 8 512 0.903089987 2. a 10 1000 1 3. a 12 1728 1.079181246 3. a 7 343 0.84509804 2. a 13 2197 1.113943352 3. a 28 21952 1.447158031 4. a 18 5832 1.255272505 3. a 25 15625 1.397940009 4. a 21 9261 1.322219295 3. a 17 4913 1.230448921 3. a 20 8000 1.301029996 3. b 9 3645 0.954242509 0. b 15 29160 1.176091259 1. b 20 40000 1.301029996 1. b 15 16875 1.176091259 1. b 17 24565 1.230448921 1. b 25 78125 1.397940009 1. b 19 34295 1.278753601 1. b 25 78125 1.397940009 1. b 22 53240 1.342422681 1. b 25 78125 1.397940009 1. b 23 60835 1.361727836 1.
Now, plot the transformed data onto the same graph using the same technique that we used above to plot the original data. Your figure should look something like this: