{"id":94079,"date":"2018-02-08T21:17:09","date_gmt":"2018-02-08T21:17:09","guid":{"rendered":"https:\/\/essay-pool.com\/worksheet-correlation-and-regression\/"},"modified":"2017-10-13T09:03:32","modified_gmt":"2017-10-13T09:03:32","slug":"worksheet-correlation-and-regression","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/worksheet-correlation-and-regression\/","title":{"rendered":"Worksheet Correlation and Regression"},"content":{"rendered":"<p>Worksheet Correlation and RegressionSolve the Statistical question pro<\/p>\n<p>Question 2<br \/>\nJanssenet al. (2007) studied the relationships between a variety of abiotic factors and benthic invertebrate abundance at sites on beaches along the Dutch coast. One of these abiotic factors was the relative height of the site in relationship to the average sea level of the area (NAP). Positive values of NAP indicate sites that are higher than the average sea level, whereas negative values indicate sites that are below the average sea level.<br \/>\nThe data are in the file sle251dutch.csv and the relevant variables are the response variable, richness (richness of invertebrate species), and the predictor variable, NAP (relative height of the site in relationship to the average sea level of the area).<br \/>\nFormat of sle251dutch.csv data file<\/p>\n<p>Site NAP richness<br \/>\n1 0.045 11<br \/>\n2 -1.036 10<br \/>\n3 -1.336 13<br \/>\n4 0.616 11<br \/>\n5 -0.684 10<br \/>\n.. .. ..<br \/>\nSite The number of the site where the samples were collected<br \/>\nNAP Relative height of the site in relationship to the average sea level of the area<br \/>\nPredictor variable<br \/>\nrichness Richness of invertebrate species<br \/>\nResponse variable<\/p>\n<p>a) Janssenet al. (1996) were interested in modeling the linear relationship between invertebrate richness (response) and the relative height of the site in relationship to the average sea level (predictor). List the following:<\/p>\n<p>The biological inference of interest<\/p>\n<p>The biological null hypothesis derived from above<\/p>\n<p>The statistical null hypothesis (H0) derived from above<\/p>\n<p>b) Draw a scatterplot of NAP against richness. Draw boxplots for each variable as well. Any evidence of skewness in the distributions or nonlinearity <\/p>\n<p>To create scatterplot in R<br \/>\nGraphs<br \/>\nScatterplot<br \/>\nSelect x-variable (NAP) and y-variable (richness)<br \/>\nCheck Marginal boxplots and Least-squares line<br \/>\nUnselect Smooth line and show spread<br \/>\nOK<\/p>\n<p>c) Fit the regression model richness = intercept + slope x NAP.<br \/>\nTo fit linear regression and create an ANOVA table in R<br \/>\nStatistics<br \/>\nFit models<br \/>\nLinear regression\u2026<br \/>\nYou can enter a name for the results object (Enter name for model:) but its simplest to just use the name that R provides.<br \/>\nSelect richnessfrom Response variablelist<br \/>\nSelect NAPfrom Explanatory variables list.<br \/>\nOK<br \/>\nModels<br \/>\nHypothesis tests<br \/>\nANOVA table<br \/>\nSelect Partial, ignoring marginality (\u201cType III\u201d).<br \/>\nOK<br \/>\nExamine the regression output and identify and interpret the following:<\/p>\n<p>Sample y-intercept<br \/>\nValue (estimate in the R output):<br \/>\nInterpretation:<\/p>\n<p>Slope of regression line (NAP)<br \/>\nValue(estimate in the R output):<br \/>\nInterpretation:<\/p>\n<p>t statistic for main H0 (regression slope equals zero)<br \/>\nValue:<br \/>\nInterpretation:<\/p>\n<p>P-value for main H0 (regression slope equals zero)<br \/>\nValue:<br \/>\nInterpretation:<\/p>\n<p>r2 value (multiple R-squared)<br \/>\nValue:<br \/>\nInterpretation:<\/p>\n<p>d) Complete the following ANOVA table from the regression analysis<\/p>\n<p>Source of variation SS df MS F ratio<br \/>\nRegression<\/p>\n<p>Residual<br \/>\nTotal<br \/>\n44<br \/>\nNote: To get the MS values from the output \u2013 remember to divide the SS value by the df.<\/p>\n<p>e) What conclusions would you draw from the regression analysis (statistical and biological) <\/p>\n<p>f) What invertebrate richness would you predict for a new site with an NAP of -2  Simply plug -2 into your regression equation and calculate predicted richness.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Worksheet Correlation and RegressionSolve the Statistical question pro Question 2 Janssenet al. (2007) studied the relationships between a variety of abiotic factors and benthic invertebrate abundance at sites on beaches along the Dutch coast. One of these abiotic factors was <a href=\"https:\/\/www.benedictsol.com\/blogs\/worksheet-correlation-and-regression\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-94079","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/94079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/comments?post=94079"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/94079\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=94079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=94079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=94079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}