Number of Manatees killed regressed on the number of boats registered in FloridaThe REG ProcedureModel: MODEL1Dependent Variable: manatees/*file: manatee-reg-27jan04.docdirectory: \classes\Spring ‘04contents: SAS linear regression output with fancier plots and output*/options ls=75;data example1; input year nboats manatees; cards;77 447 1378 460 2179 481 2480 498 1681 513 2482 512 2083 526 1584 559 3485 585 3386 614 3387 645 3988 675 4389 711 5090 719 47;ODS RTF file='D:\baileraj\Classes\Fall 2003\sta402\SAS-programs\linreg-output.rtf’;proc reg;title ‘Number of Manatees killed regressed on the number of boatsregistered in Florida’; model manatees = nboats / p r cli clm; plot manatees*nboats=”o” p.*nboats=”+” / overlay; plot r.*nboats r.*p.;run;ODS RTF CLOSE;05:53 Monday, January 14, 2019 1Number of Manatees killed regressed on the number of boats registered in FloridaThe REG ProcedureModel: MODEL1Dependent Variable: manateesAnalysis of VarianceSource DFSum ofSquaresMeanSquare F Value Pr > FModel1 1711.97866 1711.97866 93.61 <.0001Error12 219.44991 18.28749Corrected Total13 1931.42857Root MSE4.27639R-Square0.8864Dependent Mean29.42857Adj R-Sq0.8769Coeff Var14.53141Parameter EstimatesVariable DFParameterEstimateStandardError t Value Pr > |t|Intercept1 -41.43044 7.41222 -5.59 0.0001nboats1 0.12486 0.01290 9.68 <.000105:53 Monday, January 14, 2019 2Number of Manatees killed regressed on the number of boats registered in FloridaThe REG ProcedureModel: MODEL1Dependent Variable: manateesOutput StatisticsObsDep VarmanateesPredictedValueStd ErrorMean Predict 95% CL Mean 95% CL Predict ResidualStd ErrorResidualStudentResidual113.0000 14.3827 1.9299 10.1779 18.5876 4.1604 24.6050 -1.3827 3.816 -0.362221.0000 16.0059 1.7974 12.0896 19.9222 5.8989 26.1130 4.9941 3.880 1.287324.0000 18.6280 1.5976 15.1472 22.1089 8.6816 28.5745 5.3720 3.967 1.354416.0000 20.7507 1.4528 17.5853 23.9161 10.9102 30.5911 -4.7507 4.022 -1.181524.0000 22.6236 1.3420 19.6997 25.5475 12.8582 32.3891 1.3764 4.060 0.339620.0000 22.4987 1.3488 19.5600 25.4375 12.7288 32.2687 -2.4987 4.058 -0.616715.0000 24.2468 1.2622 21.4968 26.9968 14.5320 33.9616 -9.2468 4.086 -2.263834.0000 28.3672 1.1482 25.8656 30.8689 18.7198 38.0147 5.6328 4.119 1.367933.0000 31.6137 1.1650 29.0753 34.1520 21.9566 41.2707 1.3863 4.115 0.3371033.0000 35.2346 1.2909 32.4221 38.0472 25.5019 44.9673 -2.2346 4.077 -0.5481139.0000 39.1054 1.5187 35.7963 42.4144 29.2178 48.9929 -0.1054 3.998 -0.02641243.0000 42.8512 1.7974 38.9349 46.7675 32.7442 52.9582 0.1488 3.880 0.03831350.0000 47.3462 2.1762 42.6048 52.0877 36.8917 57.8007 2.6538 3.681 0.7211447.0000 48.3451 2.2647 43.4109 53.2794 37.8018 58.8884 -1.3451 3.628 -0.371Output StatisticsObs -2-1 0 1 2Cook'sD1| | |0.0172| |** |0.1783| |** |0.1494| **| |0.0915| | |0.00605:53 Monday, January 14, 2019 3Number of Manatees killed regressed on the number of boats registered in FloridaThe REG ProcedureModel: MODEL1Dependent Variable: manateesOutput StatisticsObs -2-1 0 1 2Cook'sD6| *| |0.0217| ****| |0.2448| |** |0.0739| | |0.00510| *| |0.01511| | |0.00012| | |0.00013| |* |0.09114| | |0.027Sum of Residuals0Sum of Squared Residuals219.44991Predicted Residual SS (PRESS)281.7627505:53 Monday, January 14, 2019 405:53 Monday, January 14, 2019 505:53 Monday, January 14, 2019 6libname class 'D:\baileraj\Classes\Fall 2003\sta402\data’;options ls=75;data class.manatee; input year nboats manatees; cards;77 447 1378 460 2105:53 Monday, January 14, 2019 779 481 2480 498 1681 513 2482 512 2083 526 1584 559 3485 585 3386 614 3387 645 3988 675 4389 711 5090 719 47;ODS RTF file='D:\baileraj\Classes\Fall 2003\sta402\SAS-programs\week5-fig1.rtf’;proc gplot data=class.manatee;title ‘Number of Manatees killed regressed on the number of boatsregistered in Florida’; plot manatees*nboats;run;ODS RTF CLOSE;05:53 Monday, January 14, 2019 8ODS RTF file='D:\baileraj\Classes\Fall 2003\sta402\SAS-programs\week5-fig1a.rtf';proc gplot data=class.manatee;title h=1.5 'A plot of the number of manatee deaths versus the number of boatsregistered in Florida';title2 h=1 '[Regression line with CI for mean along with smoothing spline fit displayed]';symbol1 interpol=rlclm95 05:53 Monday, January 14, 2019 9/* r=regression, l=linear (q,c also possible), clm=conf. int. mean (cli option), 95= conf. level */ value=diamond height=3 cv=red ci=blue co=green width=2; symbol2 interpol=SM55s /* smoothing spline (SM) that first sorts the x-axis data */ ; plot manatees*nboats manatees*nboats / hminor=1 overlay regeqn; /* adds regression eqn to bottom left of plot */run;ODS RTF CLOSE;05:53 Monday, January 14, 2019 1005:53 Monday, January 14, 2019
View Full Document