04d-SLR-Tree

04d-SLR-Tree - EXST7015 : Statistical Techniques II Geaghan...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
EXST7015 : Statistical Techniques II Geaghan Simple Linear Regression SAS example Page 1 04d-SLR-Tree.doc 1 ********************************************; 2 *** Data from Freund & Wilson (1993) ***; 3 *** TABLE 8.24 : ESTIMATING TREE WEIGHTS ***; 4 ********************************************; 5 options ps=256 ls=80 nocenter nodate nonumber; 6 7 ODS HTML 7 ! file='C:\Geaghan\EXST\EXST7015New\Fall2002\SAS\01-Slr-Trees.html'; NOTE: Writing HTML Body file: C:\Geaghan\EXST\EXST7015New\Fall2002\SAS\01-Slr-Trees.html 8 9 data one; infile cards missover; 10 TITLE1 'EXST7015: Estimating tree weights from morphometric variables'; 11 input ObsNo Dbh Height Age Grav Weight ObsID $; 12 ******** label ObsNo = 'Original observation number' 13 Dbh = 'Diameter at breast height (inches)' 14 Height = 'Height of the tree (feet)' 15 Age = 'Age of the tree (years)' 16 Grav = 'Specific gravity of the wood' 17 Weight = 'Harvest weight of the tree (lbs)' 18 ObsId = 'Identification letter added to dataset'; 19 lweight = log(weight); 20 ldbh = log(DBH); 21 cards; NOTE: The data set WORK.ONE has 47 observations and 9 variables. NOTE: DATA statement used: real time 1.24 seconds cpu time 0.20 seconds 21 ! run; 69 ; 70 proc print data=one; TITLE2 'Raw data print'; run; NOTE: There were 47 observations read from the data set WORK.ONE. NOTE: The PROCEDURE PRINT printed page 1. NOTE: PROCEDURE PRINT used: real time 0.97 seconds cpu time 0.17 seconds EXST7015: Estimating tree weights from other morphometric variables Raw data print Obs Obs Obs No Dbh Height Age Grav Weight ID lweight ldbh 1 1 5.7 34 10 0.409 174 a 5.15906 1.74047 2 2 8.1 68 17 0.501 745 b 6.61338 2.09186 3 3 8.3 70 17 0.445 814 c 6.70196 2.11626 4 4 7.0 54 17 0.442 408 d 6.01127 1.94591 5 5 6.2 37 12 0.353 226 e 5.42053 1.82455 6 6 11.4 79 27 0.429 1675 f 7.42357 2.43361 7 7 11.6 70 26 0.497 1491 g 7.30720 2.45101 8 8 4.5 37 12 0.380 121 h 4.79579 1.50408 ... 44 44 4.0 38 13 0.407 76 R 4.33073 1.38629 45 45 8.0 61 13 0.508 614 S 6.41999 2.07944 46 46 5.2 47 13 0.432 194 T 5.26786 1.64866 47 47 3.7 33 13 0.389 66 U 4.18965 1.30833 72 options ls=111 ps=61; proc plot data=one; plot weight*Dbh=obsid; 73 TITLE2 'Scatter plot'; run; 74 options ps=256 ls=132; NOTE: There were 47 observations read from the data set WORK.ONE. NOTE: The PROCEDURE PLOT printed page 2. NOTE: PROCEDURE PLOT used: real time 0.22 seconds cpu time 0.02 seconds
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
EXST7015 : Statistical Techniques II Geaghan Simple Linear Regression SAS example Page 2 04d-SLR-Tree.doc EXST7015: Estimating tree weights from other morphometric variables Scatter plot Plot of Weight*Dbh. Symbol is value of ObsID. Weight | | 1800 + | | | f q | 1600 + | | | g | 1400 + | | | | 1200 + | | | | 1000 + | | | | 800 + c z | b t | N | | 600 + S | | y s | D | 400 + d | l u | o | B COj | F k Je 200 + A L m | a | w h | I Kn H r | i 0 + | --+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+- 3 4 5 6 7 8 9 10 11 12 13 Dbh NOTE: 11 obs hidden. 76 proc means data=one n mean max min var std stderr; 77 TITLE2 'Raw data means'; 78 var Dbh Height Age Grav Weight; run; NOTE: There were 47 observations read from the data set WORK.ONE. NOTE: The PROCEDURE MEANS printed page 3. NOTE: PROCEDURE MEANS used: real time 0.25 seconds cpu time 0.04 seconds EXST7015: Estimating tree weights from other morphometric variables Raw data means The MEANS Procedure Variable N Mean Maximum Minimum Variance Std Dev Std Error -------------------------------------------------------------------------------------------------------------- Dbh 47 6.1531915 12.1000000 3.5000000 4.4016744 2.0980168 0.3060272 Height 47 49.5957447 79.0000000 27.0000000 167.6808511 12.9491641 1.8888297 Age 47 16.9574468 27.0000000 10.0000000 26.9111933 5.1876000 0.7566892 Grav 47 0.4452979 0.5080000 0.3530000 0.0014853 0.0385402 0.0056217 Weight 47 369.3404255 1692.00 58.0000000 154916.75 393.5946534 57.4116808 --------------------------------------------------------------------------------------------------------------
Background image of page 2
EXST7015 : Statistical Techniques II Geaghan Simple Linear Regression SAS example Page 3 04d-SLR-Tree.doc 80 proc univariate data=one normal plot; 81 TITLE2 'Raw data Univariate analysis'; 82 var Weight Dbh; run; NOTE: The PROCEDURE UNIVARIATE printed pages 4-5.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 13

04d-SLR-Tree - EXST7015 : Statistical Techniques II Geaghan...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online