{"id":1061,"date":"2020-06-03T05:45:54","date_gmt":"2020-06-03T09:45:54","guid":{"rendered":"http:\/\/pressbooks.library.upei.ca\/montelpare\/?post_type=chapter&#038;p=1061"},"modified":"2020-08-24T14:18:59","modified_gmt":"2020-08-24T18:18:59","slug":"statistical-applications-with-linear-regression-analyses","status":"publish","type":"chapter","link":"https:\/\/pressbooks.library.upei.ca\/montelpare\/chapter\/statistical-applications-with-linear-regression-analyses\/","title":{"raw":"Statistical applications with linear regression analyses","rendered":"Statistical applications with linear regression analyses"},"content":{"raw":"<div class=\"textbox textbox--learning-objectives\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Learner Ootcomes<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nAfter reading this chapter you should be able to:\r\n<ol>\r\n \t<li>Define and describe simple linear regression<\/li>\r\n \t<li>Create a SAS program to compute the outcome for a linear regression application including the slope of a line<\/li>\r\n \t<li>Create a line of best fit<\/li>\r\n \t<li>Identify the critical components in the output generated from a linear regression application<\/li>\r\n<\/ol>\r\n<\/div>\r\n<\/div>\r\n<h2>Calculating the slope of a line<\/h2>\r\nThe first step in understanding linear regression is to review the calculation for the slope of a line.\r\n\r\nAlthough presented early in your introduction to mathematics and algebra, most likely in secondary school, learning about the slope of a line may have been one of those topics that you missed, or forgot, or decided that you would never need in the future. Of course, since your intended vocation was not going to require statistical analyses and only essential math, why bother listening. However, now we are reviewing statistical applications and so understanding the calculation for the slope of a line is actually meaningful.\r\n\r\nProviding an estimate for the slope of a line can be one way to calculate the <strong>rate of change<\/strong> in a variable of interest on the vertical axis \u2013 usually denoted as y, in relation to an independent variable, such as time plotted on the horizontal axis \u2013 denoted as x. The slope of a line provides a measure of the steepness of the line as a function of the change in the variable (y) in relation to the change in the variable (x). Consider for example the data plotted in the following graph (Figure 33.1).\r\n\r\n&nbsp;\r\n<h6 style=\"text-align: center\"><img src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/regLine1-300x222.png\" alt=\"\" class=\"aligncenter wp-image-1079\" width=\"399\" height=\"295\" \/>\r\n<strong>Figure 33.1 Line of Best fit or Y (Score) over X (Time)<\/strong><\/h6>\r\nIn the graph above, we observe a distinct positive relationship between the scores for the variable on the y-axis and the scores for the variable on the x-axis. That is, as we move from left to right on the x-axis we observe an increase in the scores on the y-axis. The slope of the line is an estimate or what we refer to as a coefficient, a single number that represents all of the points on the line of the relationship between the variables: x and y.\r\n\r\nThe basic calculation to determine this estimate (i.e. the slope) of this relationship is given here as [latex]slope = {\\Delta{y}\\over\\Delta{x}}[\/latex] which is read as the change in the y variable divided by the change in the x variable.\r\n<div class=\"textbox textbox--key-takeaways\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Key Takeaways<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">The slope of a straight line is constant for the entire line and therefore any two points, chosen at random on the line will provide the estimate of the slope (this is not the case for non-linear lines). You might recall that the slope of a line is often represented by the letter m, and the formula for slope is read as: slope = rise over run.<\/div>\r\n<div>Using SAS programming as shown below, we see that The slope of the line for the graph above is <strong>2.60<\/strong>, and the y-intercept (the point where the line crosses the y-axis) is <span><strong>22.40. <\/strong>Both estimates are <\/span>shown in the table below.<\/div>\r\n<\/div>\r\n<article id=\"IDX2\" aria-label=\"Fit Statistics\"><\/article><article id=\"IDX3\" aria-label=\"Parameter Estimates\">\r\n<table class=\"table\" aria-label=\"Parameter Estimates\"><caption aria-label=\"Parameter Estimates\">\u00a0<\/caption>\r\n<thead>\r\n<tr>\r\n<th class=\"c b header\" colspan=\"8\" scope=\"colgroup\">Parameter Estimates for Figure 33.1<\/th>\r\n<\/tr>\r\n<tr>\r\n<th class=\"b header\" scope=\"col\">Variable<\/th>\r\n<th class=\"r b header\" scope=\"col\">DF<\/th>\r\n<th class=\"r b header\" scope=\"col\">Parameter\r\nEstimate<\/th>\r\n<th class=\"r b header\" scope=\"col\">Standard\r\nError<\/th>\r\n<th class=\"r b header\" scope=\"col\">t\u00a0Value<\/th>\r\n<th class=\"r b header\" scope=\"col\">Pr\u00a0&gt;\u00a0|t|<\/th>\r\n<th class=\"c b header\" colspan=\"2\" scope=\"colgroup\">95% Confidence Limits<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<th class=\"rowheader\" scope=\"row\">Intercept<\/th>\r\n<th class=\"r data\">1<\/th>\r\n<td class=\"r data\"><span style=\"color: #ff6600\"><strong>22.40<\/strong><\/span><\/td>\r\n<td class=\"r data\">0.916<\/td>\r\n<td class=\"r data\">24.44<\/td>\r\n<td class=\"r data\">&lt;.0001<\/td>\r\n<td class=\"r data\">20.29<\/td>\r\n<td class=\"r data\">24.51<\/td>\r\n<\/tr>\r\n<tr>\r\n<th class=\"rowheader\" scope=\"row\">trial<\/th>\r\n<th class=\"r data\"><strong>1<\/strong><\/th>\r\n<td class=\"r data\"><strong><span style=\"color: #0000ff\">2.60<\/span><\/strong><\/td>\r\n<td class=\"r data\">0.147<\/td>\r\n<td class=\"r data\">17.60<\/td>\r\n<td class=\"r data\">&lt;.0001<\/td>\r\n<td class=\"r data\">2.26<\/td>\r\n<td class=\"r data\">2.94<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/article>\r\n<div class=\"textbox textbox--exercises\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Determining the Slope of a line<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nThe SAS code for the graph above is shownhere. The program uses two variables: the independent variable (x) called <em><strong>TRIAL<\/strong><\/em> and the outcome variable (y) called <em><strong>SCORE<\/strong><\/em>. Lines 1 to 3 in the code below set up the program environment. Line 4 identifies the program workflow. Line 5 explains the arrangement of the columns of data. Line 6 cues the program that the data will follow. Ten data points are included in this dataset. Lines 7 to 16 are the SAS code to produce the regression estimates and create the graph with both a line and with dots to represent each point.\r\n<ol>\r\n \t<li>\r\n<pre>options pagesize=55 linesize=120 center date;<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>goptions reset=all cback=white border htitle=12pt htext=10pt;<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>LIBNAME txtbook '\/home\/username\/textbookExamples\/regression';<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>data txtbook.slope1;<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>input trial 1-2 score 4-5;<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>datalines; \r\n01 24\r\n02 27\r\n03 30\r\n04 33\r\n05 36\r\n06 39\r\n07 42\r\n08 45\r\n09 45\r\n10 46\r\n;<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>Title 'Estimating the slope';<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>axis1 label=(\"Trial\"); axis2 label=(angle=90 \"Score\") minor=(n=4); \r\n\r\n\/* Define the symbol characteristics for the plot groups *\/<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>symbol1 interpol=none value=dot color=depk;<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>symbol2 interpol=none value=dot color=vibg; \r\n\r\n\/* Define the symbol characteristics for the regression line *\/<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>symbol3 interpol=rl value=none color=black; \r\n\r\n\/* proc gplot data=txtbook.slope1;<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>plot score*trial \/ haxis=axis1 vaxis=axis2 ;<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>plot2 score*trial \/ noaxis; *\/<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>proc reg; model score=trial \/ clb; \/* command to produce estimates *\/<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>plot score*trial =\"*\";<\/pre>\r\n<\/li>\r\n \t<li>\r\n<pre>run;<\/pre>\r\n<\/li>\r\n<\/ol>\r\n<\/div>\r\n<\/div>\r\n\r\n<hr \/>\r\n\r\nLet's consider a research application of simple linear regression. In the following research study, we are interested in the change in pain estimates for horses that undergo castration. Here we collected 4 pain estimates at 30-minute intervals following equine castration surgery. The data for the estimates of pain are represented in the following table. Notice for each 30-minute time point the estimate of pain on a 10 point scale diminishes by one point.\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td>Time in reference to surgery<\/td>\r\n<td>30 minutes after<\/td>\r\n<td>60 minutes after<\/td>\r\n<td>90 minutes after<\/td>\r\n<td>120 minutes after<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>10-point pain scale<\/td>\r\n<td>9<\/td>\r\n<td>8<\/td>\r\n<td>7<\/td>\r\n<td>6<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nWe can graph these data using the following SAS code.\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Example 33.2 Application of Simple Linear Regression<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\"><span>\r\nDATA LINE;\r\nINPUT ID TIME PAIN;\r\nDATALINES;\r\n01 \u00a030 9\r\n02 \u00a060 8\r\n03 \u00a090 7\r\n04 120 6\r\n;\r\nPROC SGPLOT NOBORDER NOAUTOLEGEND;\r\nREG Y=PAIN X=TIME;\r\nRUN;<\/span><\/div>\r\n<\/div>\r\nFigure 33.2, below shows the line of best fit that illustrates the relationship between pain ratings over time since surgery.\r\n\r\n<img src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/fig33_2-300x225.png\" alt=\"\" class=\"aligncenter wp-image-1088\" width=\"412\" height=\"309\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 33.2. Pain Ratings Following Surgery<\/strong><\/p>\r\nThe calculation of the slope of the line for the estimate of pain over time is represented by the following equation.\r\n\r\n[latex]slope = {\\Delta{y}\\over\\Delta{x}}[\/latex]\r\n\r\n[latex]slope = {(y_2 - y_1)\\over (x_2 - x_1)} = [\/latex]\r\n\r\n[latex]slope = {(8 - 9)\\over (60 - 30)} = {(-1)\\over (30)}\u00a0 ={0.033} [\/latex]\r\n\r\nNotice that the slope has a value of\u00a0 m -0.033 which when multiplied by the time value in the equation [latex]y = {mx + b}[\/latex] indicates that as the value of TIME increases from left to right on the x-axis, the value for PAIN\u00a0 decreases on the y-axis.\r\n\r\nWith the following lines of SAS code added to our program we can compute the slope and the y-intercept term for the data above and cofirm that which we calculated by hand.\r\n<div class=\"textbox\">\r\n\r\n<strong>PROC REG; MODEL PAIN = TIME;<\/strong>\r\n\r\n<strong>RUN;<\/strong>\r\n\r\n<\/div>\r\nThis SAS code produced the following output.\r\n\r\n<strong>The REG Procedure -- <\/strong><strong>Model: MODEL1 for <\/strong><strong>Dependent Variable (Y) : pain<\/strong>\r\n<div align=\"center\">\r\n<table>\r\n<thead>\r\n<tr>\r\n<td><strong>Parameter Estimates<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong>Variable<\/strong><\/td>\r\n<td><strong>DF<\/strong><\/td>\r\n<td><strong>Parameter\r\nEstimate<\/strong><\/td>\r\n<td><strong>Standard\r\nError<\/strong><\/td>\r\n<td><strong>t\u00a0Value<\/strong><\/td>\r\n<td><strong>Pr\u00a0&gt;\u00a0|t|<\/strong><\/td>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<td><strong>Intercept<\/strong><\/td>\r\n<td>1<\/td>\r\n<td>10.00000<\/td>\r\n<td>0<\/td>\r\n<td>Infty<\/td>\r\n<td>&lt;.0001<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong>time (x variable)\r\n<\/strong><\/td>\r\n<td>1<\/td>\r\n<td>-0.03333<\/td>\r\n<td>0<\/td>\r\n<td>-Infty<\/td>\r\n<td>&lt;.0001<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\nNotice both the slope score of -0.033 and the y-intercept (10) are included in this table. Likewise, because there are only four scores in the data set the standard error is 0 and the estimates for slope and y-intercept are significantly greater than 0.\r\n<h2>Using Regression to Compute a Laboratory Standard Curve<\/h2>\r\nIn many laboratory experiments, researchers will create what is known as a curve of standards or a standard curve to establish the relationship between substrates and products.. One way that we can use regression and the calculation of the line of best fit is to test the linearity of a relationship between the concentrations of a substrate (x) and a product (y). In the following example we were measuring the presence of a gene of interest at 5 different concentrations.\r\n\r\nThe Gene of interest was Bactin and the concentrations were: EXPAND..\r\n\r\nThe following SAS program was used to calculate the relationship using regression, and the graphical representation of the relationship.\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">SAS progran to compute line of best fit with PROC REG &amp; PROC SGPLOT<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nPROC FORMAT;\r\nVALUE TRFMT 1='CONC30'\r\n2='CONC60'\r\n3='CONC120'\r\n4='CONC240'\r\n5='CONC480';\r\noptions pagesize=55 linesize=80 center;\r\nLIBNAME LINES20 '\/home\/username\/bioInfomatics\/lnBstFt';\r\nDATA LINES20.BACTIN01;\r\ninput TRIAL CONC1 CONC2 CONC3;\r\nDATALINES;\r\n1 19.63 18.63 20.12\r\n2 18.06 17.23 17.05\r\n3 15.63 15.80 15.59\r\n4 14.58 15.00 14.57\r\n5 13.64 13.70 13.56\r\n;\r\nproc reg;\r\nmodel CONC1=TRIAL;\r\nmodel CONC2=TRIAL;\r\nmodel CONC3=TRIAL;\r\nrun;\r\n\r\nproc sgplot data=LINES20.BACTIN01\r\nnoautolegend;\r\nreg x=TRIAL y=CONC1 \/ CLM\r\nCLMATTRS=(CLMLINEATTRS=\r\n(COLOR=Green PATTERN= ShortDash));\r\nFORMAT TRIAL TRFMT. ;\r\nTITLE ' CONFIDENCE LIMITS FOR TRIAL 1 OF BACTIN';\r\nrun;\r\nproc sgplot data=LINES20.BACTIN01\r\nnoautolegend;\r\nreg x=TRIAL y=CONC2 \/ CLM\r\nCLMATTRS=(CLMLINEATTRS=\r\n(COLOR=Green PATTERN= ShortDash));\r\nFORMAT TRIAL TRFMT. ;\r\nTITLE ' CONFIDENCE LIMITS FOR TRIAL 2 OF BACTIN';\r\nrun;\r\n\r\nproc sgplot data=LINES20.BACTIN01\r\nnoautolegend;\r\nreg x=TRIAL y=CONC3 \/ CLM\r\nCLMATTRS=(CLMLINEATTRS=\r\n(COLOR=Green PATTERN= ShortDash));\r\nFORMAT TRIAL TRFMT. ;\r\nTITLE ' CONFIDENCE LIMITS FOR TRIAL 3 OF BACTIN';\r\nrun;\r\n\r\nproc sgplot data=LINES20.BACTIN01;\r\nxaxis type=discrete;\r\nseries x=TRIAL y=CONC1;\r\nseries x=TRIAL y=CONC2;\r\nseries x=TRIAL y=CONC3;\r\n;\r\nFORMAT TRIAL TRFMT. ;\r\nTITLE ' Simple plot for 3 trials OF BACTIN using overlay';\r\n\r\nrun;\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"textbox textbox--key-takeaways\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Output from PROC REG<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n<div id=\"IDX14\" class=\"proc_title_group\">\r\n<p class=\"c proctitle\">The REG Procedure<\/p>\r\n<p class=\"c proctitle\">Model: MODEL3<\/p>\r\n<p class=\"c proctitle\">Dependent Variable: CONC3<\/p>\r\n\r\n<\/div>\r\n<section><section><section><article aria-label=\"Number of Observations\">\r\n<table class=\"table\" aria-label=\"Number of Observations\"><caption aria-label=\"Number of Observations\">\u00a0<\/caption><colgroup> <col \/> <col \/><\/colgroup>\r\n<tbody>\r\n<tr>\r\n<th class=\"rowheader\" scope=\"row\">Number of Observations Read<\/th>\r\n<td class=\"r data\">5<\/td>\r\n<\/tr>\r\n<tr>\r\n<th class=\"rowheader\" scope=\"row\">Number of Observations Used<\/th>\r\n<td class=\"r data\">5<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/article><article id=\"IDX15\" aria-label=\"Analysis of Variance\">\r\n<table class=\"table\" aria-label=\"Analysis of Variance\"><caption aria-label=\"Analysis of Variance\">\u00a0<\/caption><colgroup> <col \/><\/colgroup> <colgroup> <col \/> <col \/> <col \/> <col \/> <col \/><\/colgroup>\r\n<thead>\r\n<tr>\r\n<th class=\"c b header\" colspan=\"6\" scope=\"colgroup\">Analysis of Variance<\/th>\r\n<\/tr>\r\n<tr>\r\n<th class=\"b header\" scope=\"col\">Source<\/th>\r\n<th class=\"r b header\" scope=\"col\">DF<\/th>\r\n<th class=\"r b header\" scope=\"col\">Sum of\r\nSquares<\/th>\r\n<th class=\"r b header\" scope=\"col\">Mean\r\nSquare<\/th>\r\n<th class=\"r b header\" scope=\"col\">F Value<\/th>\r\n<th class=\"r b header\" scope=\"col\">Pr\u00a0&gt;\u00a0F<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<th class=\"rowheader\" scope=\"row\">Model<\/th>\r\n<td class=\"r data\">1<\/td>\r\n<td class=\"r data\">24.33600<\/td>\r\n<td class=\"r data\">24.33600<\/td>\r\n<td class=\"r data\">41.74<\/td>\r\n<td class=\"r data\">0.0075<\/td>\r\n<\/tr>\r\n<tr>\r\n<th class=\"rowheader\" scope=\"row\">Error<\/th>\r\n<td class=\"r data\">3<\/td>\r\n<td class=\"r data\">1.74908<\/td>\r\n<td class=\"r data\">0.58303<\/td>\r\n<td class=\"r data\"><\/td>\r\n<td class=\"r data\"><\/td>\r\n<\/tr>\r\n<tr>\r\n<th class=\"rowheader\" scope=\"row\">Corrected Total<\/th>\r\n<td class=\"r data\">4<\/td>\r\n<td class=\"r data\">26.08508<\/td>\r\n<td class=\"r data\"><\/td>\r\n<td class=\"r data\"><\/td>\r\n<td class=\"r data\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/article><article id=\"IDX16\" aria-label=\"Fit Statistics\">\r\n<table class=\"table\" aria-label=\"Fit Statistics\"><caption aria-label=\"Fit Statistics\">\u00a0<\/caption><colgroup> <col \/> <col \/> <col \/> <col \/><\/colgroup>\r\n<tbody>\r\n<tr>\r\n<th class=\"rowheader\" scope=\"row\">Root MSE<\/th>\r\n<td class=\"r data\">0.76356<\/td>\r\n<th class=\"rowheader\" scope=\"row\">R-Square<\/th>\r\n<td class=\"r data\">0.9329<\/td>\r\n<\/tr>\r\n<tr>\r\n<th class=\"rowheader\" scope=\"row\">Dependent Mean<\/th>\r\n<td class=\"r data\">16.17800<\/td>\r\n<th class=\"rowheader\" scope=\"row\">Adj R-Sq<\/th>\r\n<td class=\"r data\">0.9106<\/td>\r\n<\/tr>\r\n<tr>\r\n<th class=\"rowheader\" scope=\"row\">Coeff Var<\/th>\r\n<td class=\"r data\">4.71975<\/td>\r\n<th class=\"rowheader\" scope=\"row\"><\/th>\r\n<td class=\"r data\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/article><article id=\"IDX17\" aria-label=\"Parameter Estimates\">\r\n<table class=\"table\" aria-label=\"Parameter Estimates\"><caption aria-label=\"Parameter Estimates\">\u00a0<\/caption><colgroup> <col \/> <col \/><\/colgroup> <colgroup> <col \/> <col \/> <col \/> <col \/><\/colgroup>\r\n<thead>\r\n<tr>\r\n<th class=\"c b header\" colspan=\"6\" scope=\"colgroup\">Parameter Estimates<\/th>\r\n<\/tr>\r\n<tr>\r\n<th class=\"b header\" scope=\"col\">Variable<\/th>\r\n<th class=\"r b header\" scope=\"col\">DF<\/th>\r\n<th class=\"r b header\" scope=\"col\">Parameter\r\nEstimate<\/th>\r\n<th class=\"r b header\" scope=\"col\">Standard\r\nError<\/th>\r\n<th class=\"r b header\" scope=\"col\">t\u00a0Value<\/th>\r\n<th class=\"r b header\" scope=\"col\">Pr\u00a0&gt;\u00a0|t|<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<th class=\"rowheader\" scope=\"row\">Intercept<\/th>\r\n<th class=\"r data\">1<\/th>\r\n<td class=\"r data\">20.85800<\/td>\r\n<td class=\"r data\">0.80083<\/td>\r\n<td class=\"r data\">26.05<\/td>\r\n<td class=\"r data\">0.0001<\/td>\r\n<\/tr>\r\n<tr>\r\n<th class=\"rowheader\" scope=\"row\">TRIAL<\/th>\r\n<th class=\"r data\">1<\/th>\r\n<td class=\"r data\">-1.56000<\/td>\r\n<td class=\"r data\">0.24146<\/td>\r\n<td class=\"r data\">-6.46<\/td>\r\n<td class=\"r data\">0.0075<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/article><\/section><\/section><\/section><\/div>\r\n<\/div>\r\n<img src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/lineBfit-1-300x225.png\" alt=\"\" class=\"aligncenter wp-image-1075\" width=\"527\" height=\"395\" \/>\r\n\r\n&nbsp;","rendered":"<div class=\"textbox textbox--learning-objectives\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Learner Ootcomes<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>After reading this chapter you should be able to:<\/p>\n<ol>\n<li>Define and describe simple linear regression<\/li>\n<li>Create a SAS program to compute the outcome for a linear regression application including the slope of a line<\/li>\n<li>Create a line of best fit<\/li>\n<li>Identify the critical components in the output generated from a linear regression application<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<h2>Calculating the slope of a line<\/h2>\n<p>The first step in understanding linear regression is to review the calculation for the slope of a line.<\/p>\n<p>Although presented early in your introduction to mathematics and algebra, most likely in secondary school, learning about the slope of a line may have been one of those topics that you missed, or forgot, or decided that you would never need in the future. Of course, since your intended vocation was not going to require statistical analyses and only essential math, why bother listening. However, now we are reviewing statistical applications and so understanding the calculation for the slope of a line is actually meaningful.<\/p>\n<p>Providing an estimate for the slope of a line can be one way to calculate the <strong>rate of change<\/strong> in a variable of interest on the vertical axis \u2013 usually denoted as y, in relation to an independent variable, such as time plotted on the horizontal axis \u2013 denoted as x. The slope of a line provides a measure of the steepness of the line as a function of the change in the variable (y) in relation to the change in the variable (x). Consider for example the data plotted in the following graph (Figure 33.1).<\/p>\n<p>&nbsp;<\/p>\n<h6 style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/regLine1-300x222.png\" alt=\"\" class=\"aligncenter wp-image-1079\" width=\"399\" height=\"295\" srcset=\"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/regLine1-300x222.png 300w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/regLine1-768x569.png 768w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/regLine1-1024x759.png 1024w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/regLine1-65x48.png 65w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/regLine1-225x167.png 225w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/regLine1-350x259.png 350w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/regLine1.png 1200w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><br \/>\n<strong>Figure 33.1 Line of Best fit or Y (Score) over X (Time)<\/strong><\/h6>\n<p>In the graph above, we observe a distinct positive relationship between the scores for the variable on the y-axis and the scores for the variable on the x-axis. That is, as we move from left to right on the x-axis we observe an increase in the scores on the y-axis. The slope of the line is an estimate or what we refer to as a coefficient, a single number that represents all of the points on the line of the relationship between the variables: x and y.<\/p>\n<p>The basic calculation to determine this estimate (i.e. the slope) of this relationship is given here as [latex]slope = {\\Delta{y}\\over\\Delta{x}}[\/latex] which is read as the change in the y variable divided by the change in the x variable.<\/p>\n<div class=\"textbox textbox--key-takeaways\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Key Takeaways<\/p>\n<\/header>\n<div class=\"textbox__content\">The slope of a straight line is constant for the entire line and therefore any two points, chosen at random on the line will provide the estimate of the slope (this is not the case for non-linear lines). You might recall that the slope of a line is often represented by the letter m, and the formula for slope is read as: slope = rise over run.<\/div>\n<div>Using SAS programming as shown below, we see that The slope of the line for the graph above is <strong>2.60<\/strong>, and the y-intercept (the point where the line crosses the y-axis) is <span><strong>22.40. <\/strong>Both estimates are <\/span>shown in the table below.<\/div>\n<\/div>\n<article id=\"IDX2\" aria-label=\"Fit Statistics\"><\/article>\n<article id=\"IDX3\" aria-label=\"Parameter Estimates\">\n<table class=\"table\" aria-label=\"Parameter Estimates\">\n<caption aria-label=\"Parameter Estimates\">\u00a0<\/caption>\n<thead>\n<tr>\n<th class=\"c b header\" colspan=\"8\" scope=\"colgroup\">Parameter Estimates for Figure 33.1<\/th>\n<\/tr>\n<tr>\n<th class=\"b header\" scope=\"col\">Variable<\/th>\n<th class=\"r b header\" scope=\"col\">DF<\/th>\n<th class=\"r b header\" scope=\"col\">Parameter<br \/>\nEstimate<\/th>\n<th class=\"r b header\" scope=\"col\">Standard<br \/>\nError<\/th>\n<th class=\"r b header\" scope=\"col\">t\u00a0Value<\/th>\n<th class=\"r b header\" scope=\"col\">Pr\u00a0&gt;\u00a0|t|<\/th>\n<th class=\"c b header\" colspan=\"2\" scope=\"colgroup\">95% Confidence Limits<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th class=\"rowheader\" scope=\"row\">Intercept<\/th>\n<th class=\"r data\">1<\/th>\n<td class=\"r data\"><span style=\"color: #ff6600\"><strong>22.40<\/strong><\/span><\/td>\n<td class=\"r data\">0.916<\/td>\n<td class=\"r data\">24.44<\/td>\n<td class=\"r data\">&lt;.0001<\/td>\n<td class=\"r data\">20.29<\/td>\n<td class=\"r data\">24.51<\/td>\n<\/tr>\n<tr>\n<th class=\"rowheader\" scope=\"row\">trial<\/th>\n<th class=\"r data\"><strong>1<\/strong><\/th>\n<td class=\"r data\"><strong><span style=\"color: #0000ff\">2.60<\/span><\/strong><\/td>\n<td class=\"r data\">0.147<\/td>\n<td class=\"r data\">17.60<\/td>\n<td class=\"r data\">&lt;.0001<\/td>\n<td class=\"r data\">2.26<\/td>\n<td class=\"r data\">2.94<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/article>\n<div class=\"textbox textbox--exercises\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Determining the Slope of a line<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>The SAS code for the graph above is shownhere. The program uses two variables: the independent variable (x) called <em><strong>TRIAL<\/strong><\/em> and the outcome variable (y) called <em><strong>SCORE<\/strong><\/em>. Lines 1 to 3 in the code below set up the program environment. Line 4 identifies the program workflow. Line 5 explains the arrangement of the columns of data. Line 6 cues the program that the data will follow. Ten data points are included in this dataset. Lines 7 to 16 are the SAS code to produce the regression estimates and create the graph with both a line and with dots to represent each point.<\/p>\n<ol>\n<li>\n<pre>options pagesize=55 linesize=120 center date;<\/pre>\n<\/li>\n<li>\n<pre>goptions reset=all cback=white border htitle=12pt htext=10pt;<\/pre>\n<\/li>\n<li>\n<pre>LIBNAME txtbook '\/home\/username\/textbookExamples\/regression';<\/pre>\n<\/li>\n<li>\n<pre>data txtbook.slope1;<\/pre>\n<\/li>\n<li>\n<pre>input trial 1-2 score 4-5;<\/pre>\n<\/li>\n<li>\n<pre>datalines; \r\n01 24\r\n02 27\r\n03 30\r\n04 33\r\n05 36\r\n06 39\r\n07 42\r\n08 45\r\n09 45\r\n10 46\r\n;<\/pre>\n<\/li>\n<li>\n<pre>Title 'Estimating the slope';<\/pre>\n<\/li>\n<li>\n<pre>axis1 label=(\"Trial\"); axis2 label=(angle=90 \"Score\") minor=(n=4); \r\n\r\n\/* Define the symbol characteristics for the plot groups *\/<\/pre>\n<\/li>\n<li>\n<pre>symbol1 interpol=none value=dot color=depk;<\/pre>\n<\/li>\n<li>\n<pre>symbol2 interpol=none value=dot color=vibg; \r\n\r\n\/* Define the symbol characteristics for the regression line *\/<\/pre>\n<\/li>\n<li>\n<pre>symbol3 interpol=rl value=none color=black; \r\n\r\n\/* proc gplot data=txtbook.slope1;<\/pre>\n<\/li>\n<li>\n<pre>plot score*trial \/ haxis=axis1 vaxis=axis2 ;<\/pre>\n<\/li>\n<li>\n<pre>plot2 score*trial \/ noaxis; *\/<\/pre>\n<\/li>\n<li>\n<pre>proc reg; model score=trial \/ clb; \/* command to produce estimates *\/<\/pre>\n<\/li>\n<li>\n<pre>plot score*trial =\"*\";<\/pre>\n<\/li>\n<li>\n<pre>run;<\/pre>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<hr \/>\n<p>Let&#8217;s consider a research application of simple linear regression. In the following research study, we are interested in the change in pain estimates for horses that undergo castration. Here we collected 4 pain estimates at 30-minute intervals following equine castration surgery. The data for the estimates of pain are represented in the following table. Notice for each 30-minute time point the estimate of pain on a 10 point scale diminishes by one point.<\/p>\n<table>\n<tbody>\n<tr>\n<td>Time in reference to surgery<\/td>\n<td>30 minutes after<\/td>\n<td>60 minutes after<\/td>\n<td>90 minutes after<\/td>\n<td>120 minutes after<\/td>\n<\/tr>\n<tr>\n<td>10-point pain scale<\/td>\n<td>9<\/td>\n<td>8<\/td>\n<td>7<\/td>\n<td>6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>We can graph these data using the following SAS code.<\/p>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Example 33.2 Application of Simple Linear Regression<\/p>\n<\/header>\n<div class=\"textbox__content\"><span><br \/>\nDATA LINE;<br \/>\nINPUT ID TIME PAIN;<br \/>\nDATALINES;<br \/>\n01 \u00a030 9<br \/>\n02 \u00a060 8<br \/>\n03 \u00a090 7<br \/>\n04 120 6<br \/>\n;<br \/>\nPROC SGPLOT NOBORDER NOAUTOLEGEND;<br \/>\nREG Y=PAIN X=TIME;<br \/>\nRUN;<\/span><\/div>\n<\/div>\n<p>Figure 33.2, below shows the line of best fit that illustrates the relationship between pain ratings over time since surgery.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/fig33_2-300x225.png\" alt=\"\" class=\"aligncenter wp-image-1088\" width=\"412\" height=\"309\" srcset=\"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/fig33_2-300x225.png 300w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/fig33_2-768x576.png 768w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/fig33_2-1024x768.png 1024w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/fig33_2-65x49.png 65w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/fig33_2-225x169.png 225w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/fig33_2-350x263.png 350w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/fig33_2.png 1200w\" sizes=\"auto, (max-width: 412px) 100vw, 412px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 33.2. Pain Ratings Following Surgery<\/strong><\/p>\n<p>The calculation of the slope of the line for the estimate of pain over time is represented by the following equation.<\/p>\n<p>[latex]slope = {\\Delta{y}\\over\\Delta{x}}[\/latex]<\/p>\n<p>[latex]slope = {(y_2 - y_1)\\over (x_2 - x_1)} =[\/latex]<\/p>\n<p>[latex]slope = {(8 - 9)\\over (60 - 30)} = {(-1)\\over (30)}\u00a0 ={0.033}[\/latex]<\/p>\n<p>Notice that the slope has a value of\u00a0 m -0.033 which when multiplied by the time value in the equation [latex]y = {mx + b}[\/latex] indicates that as the value of TIME increases from left to right on the x-axis, the value for PAIN\u00a0 decreases on the y-axis.<\/p>\n<p>With the following lines of SAS code added to our program we can compute the slope and the y-intercept term for the data above and cofirm that which we calculated by hand.<\/p>\n<div class=\"textbox\">\n<p><strong>PROC REG; MODEL PAIN = TIME;<\/strong><\/p>\n<p><strong>RUN;<\/strong><\/p>\n<\/div>\n<p>This SAS code produced the following output.<\/p>\n<p><strong>The REG Procedure &#8212; <\/strong><strong>Model: MODEL1 for <\/strong><strong>Dependent Variable (Y) : pain<\/strong><\/p>\n<div style=\"margin: auto;\">\n<table>\n<thead>\n<tr>\n<td><strong>Parameter Estimates<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>Variable<\/strong><\/td>\n<td><strong>DF<\/strong><\/td>\n<td><strong>Parameter<br \/>\nEstimate<\/strong><\/td>\n<td><strong>Standard<br \/>\nError<\/strong><\/td>\n<td><strong>t\u00a0Value<\/strong><\/td>\n<td><strong>Pr\u00a0&gt;\u00a0|t|<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Intercept<\/strong><\/td>\n<td>1<\/td>\n<td>10.00000<\/td>\n<td>0<\/td>\n<td>Infty<\/td>\n<td>&lt;.0001<\/td>\n<\/tr>\n<tr>\n<td><strong>time (x variable)<br \/>\n<\/strong><\/td>\n<td>1<\/td>\n<td>-0.03333<\/td>\n<td>0<\/td>\n<td>-Infty<\/td>\n<td>&lt;.0001<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Notice both the slope score of -0.033 and the y-intercept (10) are included in this table. Likewise, because there are only four scores in the data set the standard error is 0 and the estimates for slope and y-intercept are significantly greater than 0.<\/p>\n<h2>Using Regression to Compute a Laboratory Standard Curve<\/h2>\n<p>In many laboratory experiments, researchers will create what is known as a curve of standards or a standard curve to establish the relationship between substrates and products.. One way that we can use regression and the calculation of the line of best fit is to test the linearity of a relationship between the concentrations of a substrate (x) and a product (y). In the following example we were measuring the presence of a gene of interest at 5 different concentrations.<\/p>\n<p>The Gene of interest was Bactin and the concentrations were: EXPAND..<\/p>\n<p>The following SAS program was used to calculate the relationship using regression, and the graphical representation of the relationship.<\/p>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">SAS progran to compute line of best fit with PROC REG &amp; PROC SGPLOT<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>PROC FORMAT;<br \/>\nVALUE TRFMT 1=&#8217;CONC30&#8242;<br \/>\n2=&#8217;CONC60&#8242;<br \/>\n3=&#8217;CONC120&#8242;<br \/>\n4=&#8217;CONC240&#8242;<br \/>\n5=&#8217;CONC480&#8242;;<br \/>\noptions pagesize=55 linesize=80 center;<br \/>\nLIBNAME LINES20 &#8216;\/home\/username\/bioInfomatics\/lnBstFt&#8217;;<br \/>\nDATA LINES20.BACTIN01;<br \/>\ninput TRIAL CONC1 CONC2 CONC3;<br \/>\nDATALINES;<br \/>\n1 19.63 18.63 20.12<br \/>\n2 18.06 17.23 17.05<br \/>\n3 15.63 15.80 15.59<br \/>\n4 14.58 15.00 14.57<br \/>\n5 13.64 13.70 13.56<br \/>\n;<br \/>\nproc reg;<br \/>\nmodel CONC1=TRIAL;<br \/>\nmodel CONC2=TRIAL;<br \/>\nmodel CONC3=TRIAL;<br \/>\nrun;<\/p>\n<p>proc sgplot data=LINES20.BACTIN01<br \/>\nnoautolegend;<br \/>\nreg x=TRIAL y=CONC1 \/ CLM<br \/>\nCLMATTRS=(CLMLINEATTRS=<br \/>\n(COLOR=Green PATTERN= ShortDash));<br \/>\nFORMAT TRIAL TRFMT. ;<br \/>\nTITLE &#8216; CONFIDENCE LIMITS FOR TRIAL 1 OF BACTIN&#8217;;<br \/>\nrun;<br \/>\nproc sgplot data=LINES20.BACTIN01<br \/>\nnoautolegend;<br \/>\nreg x=TRIAL y=CONC2 \/ CLM<br \/>\nCLMATTRS=(CLMLINEATTRS=<br \/>\n(COLOR=Green PATTERN= ShortDash));<br \/>\nFORMAT TRIAL TRFMT. ;<br \/>\nTITLE &#8216; CONFIDENCE LIMITS FOR TRIAL 2 OF BACTIN&#8217;;<br \/>\nrun;<\/p>\n<p>proc sgplot data=LINES20.BACTIN01<br \/>\nnoautolegend;<br \/>\nreg x=TRIAL y=CONC3 \/ CLM<br \/>\nCLMATTRS=(CLMLINEATTRS=<br \/>\n(COLOR=Green PATTERN= ShortDash));<br \/>\nFORMAT TRIAL TRFMT. ;<br \/>\nTITLE &#8216; CONFIDENCE LIMITS FOR TRIAL 3 OF BACTIN&#8217;;<br \/>\nrun;<\/p>\n<p>proc sgplot data=LINES20.BACTIN01;<br \/>\nxaxis type=discrete;<br \/>\nseries x=TRIAL y=CONC1;<br \/>\nseries x=TRIAL y=CONC2;<br \/>\nseries x=TRIAL y=CONC3;<br \/>\n;<br \/>\nFORMAT TRIAL TRFMT. ;<br \/>\nTITLE &#8216; Simple plot for 3 trials OF BACTIN using overlay&#8217;;<\/p>\n<p>run;<\/p>\n<\/div>\n<\/div>\n<div class=\"textbox textbox--key-takeaways\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Output from PROC REG<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<div id=\"IDX14\" class=\"proc_title_group\">\n<p class=\"c proctitle\">The REG Procedure<\/p>\n<p class=\"c proctitle\">Model: MODEL3<\/p>\n<p class=\"c proctitle\">Dependent Variable: CONC3<\/p>\n<\/div>\n<section>\n<section>\n<section>\n<article aria-label=\"Number of Observations\">\n<table class=\"table\" aria-label=\"Number of Observations\">\n<caption aria-label=\"Number of Observations\">\u00a0<\/caption>\n<colgroup>\n<col \/>\n<col \/><\/colgroup>\n<tbody>\n<tr>\n<th class=\"rowheader\" scope=\"row\">Number of Observations Read<\/th>\n<td class=\"r data\">5<\/td>\n<\/tr>\n<tr>\n<th class=\"rowheader\" scope=\"row\">Number of Observations Used<\/th>\n<td class=\"r data\">5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/article>\n<article id=\"IDX15\" aria-label=\"Analysis of Variance\">\n<table class=\"table\" aria-label=\"Analysis of Variance\">\n<caption aria-label=\"Analysis of Variance\">\u00a0<\/caption>\n<colgroup>\n<col \/><\/colgroup>\n<colgroup>\n<col \/>\n<col \/>\n<col \/>\n<col \/>\n<col \/><\/colgroup>\n<thead>\n<tr>\n<th class=\"c b header\" colspan=\"6\" scope=\"colgroup\">Analysis of Variance<\/th>\n<\/tr>\n<tr>\n<th class=\"b header\" scope=\"col\">Source<\/th>\n<th class=\"r b header\" scope=\"col\">DF<\/th>\n<th class=\"r b header\" scope=\"col\">Sum of<br \/>\nSquares<\/th>\n<th class=\"r b header\" scope=\"col\">Mean<br \/>\nSquare<\/th>\n<th class=\"r b header\" scope=\"col\">F Value<\/th>\n<th class=\"r b header\" scope=\"col\">Pr\u00a0&gt;\u00a0F<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th class=\"rowheader\" scope=\"row\">Model<\/th>\n<td class=\"r data\">1<\/td>\n<td class=\"r data\">24.33600<\/td>\n<td class=\"r data\">24.33600<\/td>\n<td class=\"r data\">41.74<\/td>\n<td class=\"r data\">0.0075<\/td>\n<\/tr>\n<tr>\n<th class=\"rowheader\" scope=\"row\">Error<\/th>\n<td class=\"r data\">3<\/td>\n<td class=\"r data\">1.74908<\/td>\n<td class=\"r data\">0.58303<\/td>\n<td class=\"r data\"><\/td>\n<td class=\"r data\"><\/td>\n<\/tr>\n<tr>\n<th class=\"rowheader\" scope=\"row\">Corrected Total<\/th>\n<td class=\"r data\">4<\/td>\n<td class=\"r data\">26.08508<\/td>\n<td class=\"r data\"><\/td>\n<td class=\"r data\"><\/td>\n<td class=\"r data\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/article>\n<article id=\"IDX16\" aria-label=\"Fit Statistics\">\n<table class=\"table\" aria-label=\"Fit Statistics\">\n<caption aria-label=\"Fit Statistics\">\u00a0<\/caption>\n<colgroup>\n<col \/>\n<col \/>\n<col \/>\n<col \/><\/colgroup>\n<tbody>\n<tr>\n<th class=\"rowheader\" scope=\"row\">Root MSE<\/th>\n<td class=\"r data\">0.76356<\/td>\n<th class=\"rowheader\" scope=\"row\">R-Square<\/th>\n<td class=\"r data\">0.9329<\/td>\n<\/tr>\n<tr>\n<th class=\"rowheader\" scope=\"row\">Dependent Mean<\/th>\n<td class=\"r data\">16.17800<\/td>\n<th class=\"rowheader\" scope=\"row\">Adj R-Sq<\/th>\n<td class=\"r data\">0.9106<\/td>\n<\/tr>\n<tr>\n<th class=\"rowheader\" scope=\"row\">Coeff Var<\/th>\n<td class=\"r data\">4.71975<\/td>\n<th class=\"rowheader\" scope=\"row\"><\/th>\n<td class=\"r data\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/article>\n<article id=\"IDX17\" aria-label=\"Parameter Estimates\">\n<table class=\"table\" aria-label=\"Parameter Estimates\">\n<caption aria-label=\"Parameter Estimates\">\u00a0<\/caption>\n<colgroup>\n<col \/>\n<col \/><\/colgroup>\n<colgroup>\n<col \/>\n<col \/>\n<col \/>\n<col \/><\/colgroup>\n<thead>\n<tr>\n<th class=\"c b header\" colspan=\"6\" scope=\"colgroup\">Parameter Estimates<\/th>\n<\/tr>\n<tr>\n<th class=\"b header\" scope=\"col\">Variable<\/th>\n<th class=\"r b header\" scope=\"col\">DF<\/th>\n<th class=\"r b header\" scope=\"col\">Parameter<br \/>\nEstimate<\/th>\n<th class=\"r b header\" scope=\"col\">Standard<br \/>\nError<\/th>\n<th class=\"r b header\" scope=\"col\">t\u00a0Value<\/th>\n<th class=\"r b header\" scope=\"col\">Pr\u00a0&gt;\u00a0|t|<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th class=\"rowheader\" scope=\"row\">Intercept<\/th>\n<th class=\"r data\">1<\/th>\n<td class=\"r data\">20.85800<\/td>\n<td class=\"r data\">0.80083<\/td>\n<td class=\"r data\">26.05<\/td>\n<td class=\"r data\">0.0001<\/td>\n<\/tr>\n<tr>\n<th class=\"rowheader\" scope=\"row\">TRIAL<\/th>\n<th class=\"r data\">1<\/th>\n<td class=\"r data\">-1.56000<\/td>\n<td class=\"r data\">0.24146<\/td>\n<td class=\"r data\">-6.46<\/td>\n<td class=\"r data\">0.0075<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/article>\n<\/section>\n<\/section>\n<\/section>\n<\/div>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/lineBfit-1-300x225.png\" alt=\"\" class=\"aligncenter wp-image-1075\" width=\"527\" height=\"395\" srcset=\"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/lineBfit-1-300x225.png 300w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/lineBfit-1-768x576.png 768w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/lineBfit-1-1024x768.png 1024w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/lineBfit-1-65x49.png 65w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/lineBfit-1-225x169.png 225w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/lineBfit-1-350x263.png 350w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/06\/lineBfit-1.png 1200w\" sizes=\"auto, (max-width: 527px) 100vw, 527px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"author":56,"menu_order":7,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-1061","chapter","type-chapter","status-publish","hentry"],"part":401,"_links":{"self":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters\/1061","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/users\/56"}],"version-history":[{"count":20,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters\/1061\/revisions"}],"predecessor-version":[{"id":1071,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters\/1061\/revisions\/1071"}],"part":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/parts\/401"}],"metadata":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters\/1061\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/media?parent=1061"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapter-type?post=1061"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/contributor?post=1061"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/license?post=1061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}