

Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!


Write the answers to all questions (R code + your comments) in an R script called Exam_####.R (replace #### for your name and surname) and submit it to the virtual campus.
To investigate the effects of habitat fragmentation, researchers related the abundance of forest birds to a range of variables (including patch area, number of years of isolation, distance to the nearest patch and larger patch, grazing intensity and altitude) collected from a total of 56 forest patches. Data are reported in “loyn.csv”. 1- AREA, DIST and LDIST variables are non-normal, apply a log10 transformation on these variables. ( pts) 2- Apply pairwise correlations for the variables ALT, GRAZE and YR.ISOL. State the result of your analysis. (3 pts)
3- Apply a single analysis to study the abundance of forest birds en function of all explanatory variables. State the result of your analysis. (5 pts)
Researchers investigated the density of adult limpets (6, 12 and 24 individuals per enclosure) during two seasons (winter-spring and summer-autumn) so as to investigate their effects on egg mass production. Three replicate enclosures per density/season combination were used. Data are reported in “quinn.txt”. 1- Analyse the whole data set and report the result. (5 pts) 2- Report the interaction plot. Explain the result. (2 pts) 3- Perform the pairwise comparison test when appropriate and report the result. (3 pts)
Two analysts, A and B each prepared five replicate samples to measure the pH of a specific sample of soil. Results are the following:
1- First create a dataframe of the data within R. (1 pts) 2- Report the mean and the variance for A and B. (1 pts)
3- Report a boxplot of pH measure en function of both analysts. (1 pts)
4- Perform the appropriate statistical analysis to test if the two groups have different means. (2 pts)
5- Apply a randomization test to explore if the two groups have different means (5 pts). Calculate the new p-value.
Exercise 4 (10 pts)
1- Create a random normal distribution with a known mean and variance (you set the values). Sample from your fictitious population 1000 samples of size = 10 and plot the sampling distribution of the variance. ( pts).
2- Calculate the mean of your 1000 sample variances. (2 pts)