Docsity

Young Production in Three Broods: Number and Age of Young Individuals - Prof. A. John Bail, Study notes of Statistics

Toggle sidebar
bg1
Day 7 and 8 [10 Sept. and 12 Sept.] Class Activities
C:\Documents and Settings\John Bailer\My Documents\baileraj\
Classes\Fall 2003\sta402\handouts\day7-and-8-11sep03.doc
Unix day (continue Day 5 exercise)
Week 3 Topic -- REPORT WRITING
* Introduce the Output Delivery System (ODS) for customizing procedure output
* PROC TABULATE for producing nicely-formatted tables
ODS References
Gupta, S. (2003) Quick Results with the Output Delivery System. SAS Institute Inc., Cary, NC
USA.
Delwiche LD and Slaughter SJ. (1996) The Little SAS Book: A Primer, 2nd edition. SAS
Institute. Cary, NC, USA. [pages 118-121]
ODS Basics
What is ODS?
* method of delivering output in a variety of formats (other than the default “listing” format”)
* options available include HTML, Rich Text Format (RTF), PS, PDF, SAS data sets
Basic ODS Terminology
“destinations” – locations to which ODS routes output (e.g. LISTING, HTML, RTF, PRINTER,
PDF)
“objects” – output entities created by ODS to store the formatted results
“styles” – font/color/other attributes of a report
Basic syntax of ODS statements
* identify output objects;
ODS TRACE ON </options>;
* open output destination;
ODS destination <FILE=filename>;
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Young Production in Three Broods: Number and Age of Young Individuals - Prof. A. John Bail and more Study notes Statistics in PDF only on Docsity!

Day 7 and 8 [10 Sept. and 12 Sept.] Class Activities

C:\Documents and Settings\John Bailer\My Documents\baileraj\

Classes\Fall 2003\sta402\handouts\day7-and-8-11sep03.doc

Unix day (continue Day 5 exercise)

Week 3 Topic -- REPORT WRITING

* Introduce the Output Delivery System (ODS) for customizing procedure output

* PROC TABULATE for producing nicely-formatted tables

ODS References

Gupta, S. (2003) Quick Results with the Output Delivery System. SAS Institute Inc., Cary, NC

USA.

Delwiche LD and Slaughter SJ. ( 1996 ) The Little SAS Book: A Primer , 2nd edition. SAS

Institute. Cary, NC, USA. [pages 118-121]

ODS Basics

What is ODS?

* method of delivering output in a variety of formats (other than the default “listing” format”)

* options available include HTML, Rich Text Format (RTF), PS, PDF, SAS data sets

Basic ODS Terminology

“destinations” – locations to which ODS routes output (e.g. LISTING, HTML, RTF, PRINTER,

PDF)

“objects” – output entities created by ODS to store the formatted results

“styles” – font/color/other attributes of a report

Basic syntax of ODS statements

* identify output objects;

ODS TRACE ON ;

* open output destination;

ODS destination <FILE= filename >;

* create SAS data set with output object;

ODS OUTPUT output-object-name = SAS-data-set-name ;

* [optional] select particular objects for inclusion;

ODS < destination > SELECT output-object-name ;

PROC …

PROC …

PROC …

ODS CLOSE;

ODS TRACE OFF;

ODS to different file types

A familiar example

proc format ;

value totfmt 0 ='none'

1 -HIGH='some'

data d1;

infile 'M:\public.www\classes\sta402\SAS-programs\ch2-dat.txt' firstobs= 16

expandtabs missover pad ;

input @ 9 animal 2.

@ 17 conc 3.

@ 25 brood1 2.

@ 33 brood2 2.

@ 41 brood3 2.

@ 49 total 2. ;

cbrood3 = brood3;

format cbrood3 totfmt.;

label animal = animal ID number;

label conc = Nitrofen concentration;

label brood1 = number of young in first brood;

label brood2 = number of young in 2 nd brood;

label brood3 = number of young in 3 rd brood;

label total = total young produced in three broods;

proc print ;

where conc=0;

run ;

/* aside: ODS LISTING open as a default.

ODS TRACE OFF;

/* select on one of the output objects for inclusion */

ODS HTML file='M:\public.www\classes\sta402\SAS-programs\day6-example3.html’;

ODS HTML SELECT SSPLOTS;

ODS HTML SHOW; /* write details to SASLOG confirming object sel. */

proc univariate plot; by conc;

var total;

run;

ODS HTML CLOSE;

/* select different destinations */

options orientation=landscape nocenter nodate;

ODS ESCAPECHAR= “^”; /* for fancy formatting later */

ODS RTF file='M:\public.www\classes\sta402\SAS-programs\day6-example.rtf’;

ODS PDF file='M:\public.www\classes\sta402\SAS-programs\day6-example.pdf’;

ODS PS file='M:\public.www\classes\sta402\SAS-programs\day6-example.ps’;

Title ‘Plot of number of young vs. Nitrofen concentration^{super a}’;

Footnote1 ‘^{super a}s=some young produced in Brood 3, n= no young produced in

Brood 3’;

proc plot;

plot total*conc=cbrood3 / vaxis=0 to 40 by 2;

run;

ODS RTF CLOSE;

ODS PDF CLOSE;

ODS PS CLOSE;

ODS to create output data sets

proc sort data=d1 ; by conc;

ODS TRACE ON; /* see what ODS objects are created by univariate */

proc univariate data=d1 ; by conc;

var total;

run ;

ODS TRACE OFF;

ODS OUTPUT Quantiles=data_quant; /* extract quantiles */

proc univariate data=d1 ; by conc;

var total;

run ;

ODS OUTPUT CLOSE;

proc print data=data_quant;

run ;

Var Obs conc Name Quantile Estimate 1 0 total 100% Max 36. 2 0 total 99% 36. 3 0 total 95% 36. 4 0 total 90% 35. 5 0 total 75% Q3 34. 6 0 total 50% Median 32. 7 0 total 25% Q1 30. 8 0 total 10% 25. 9 0 total 5% 24. 10 0 total 1% 24. 11 0 total 0% Min 24.

............. edited output................ 45 310 total 100% Max 15. 46 310 total 99% 15. 47 310 total 95% 15. 48 310 total 90% 11. 49 310 total 75% Q3 6. 50 310 total 50% Median 6. 51 310 total 25% Q1 5. 52 310 total 10% 2. 53 310 total 5% 0. 54 310 total 1% 0. 55 310 total 0% Min 0.

/* can also create multiple data sets */

ODS OUTPUT Quantiles(MATCH_ALL=conc_name_macro)=data_quant;

proc univariate data=d1; by conc;

var total;

run ;

ODS OUTPUT CLOSE;

proc print data=data_quant;

run ;

from the SAS LOG file

NOTE: The data set WORK.DATA_QUANT has 11 observations and 4 variables. NOTE: The above message was for the following by-group: Nitrofen concentration= NOTE: The data set WORK.DATA_QUANT1 has 11 observations and 4 variables. NOTE: The above message was for the following by-group: Nitrofen concentration= NOTE: The data set WORK.DATA_QUANT2 has 11 observations and 4 variables. NOTE: The above message was for the following by-group: Nitrofen concentration= NOTE: The data set WORK.DATA_QUANT3 has 11 observations and 4 variables. NOTE: The above message was for the following by-group: Nitrofen concentration= NOTE: The data set WORK.DATA_QUANT4 has 11 observations and 4 variables. NOTE: The above message was for the following by-group: Nitrofen concentration=

/* write the data set names to the SAS LOG */

%put The conc_name_macro variables contains the following data sets

&conc_name_macro;

76 %put The conc_name_macro variables contains the following data sets &conc_name_macro;

PROC TABULATE computes many of the same statistics that are computed by other descriptive

statistical procedures such as MEANS, FREQ, and REPORT. PROC TABULATE provides

 simple but powerful methods to create tabular reports

 flexibility in classifying the values of variables and establishing hierarchical relationships

between the variables

 mechanisms for labeling and formatting variables and procedure-generated statistics.

Proc TABULATE syntax

PROC TABULATE < option(s) >;

BY variable-

<... variable-n >

;

CLASS variable(s) </ options >;

CLASSLEV variable(s) / style =< style-element-name | > <[ style-attribute-

specification(s) ] >;

FREQ variable ;

KEYLABEL keyword-1='description-1'

<... keyword-n='description-n' >;

KEYWORD keyword(s) / style =< style-element-name | > <[ style-attribute-

specification(s) ] >;

TABLE << page-expression ,> row-expression ,> column-expression </ table-option(s) >;

VAR analysis-variable(s) </ options >;

WEIGHT variable

Use the following keywords to request statistics in the TABLE statement. If a variable name

(class or analysis) and a statistic name are the same, enclose the statistic name in single quotes.

Descriptive statistic keywords

COLPCTN PCTSUM

COLPCTSUM RANGE

CSS REPPCTN

CV REPPCTSUM

MAX ROWPCTN

MEAN ROWPCTSUM

MIN STDDEV|STD

N STDERR

NMISS SUM

PAGEPCTN SUMWGT

PAGEPCTSUM USS

PCTN VAR

Quantile statistic keywords

MEDIAN|P50 Q3|P

P1 P

P5 P

P10 P

Q1|P25 QRANGE

Hypothesis testing keyword

PROBT T

To compute standard error (STD), you must use VARDEF=DF in the PROC statement. To

compute weighted quantiles, you must use QMETHOD=OS in the PROC statement.

Proc TABULATE examples

proc tabulate data=d1;

class conc;

var total brood1 brood2 brood3;

table conc, ntotal meantotal std*total;

run ;

„ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒƒ† ‚ ‚ N ‚ Mean ‚ Std ‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚total young ‚total young ‚total young ‚ ‚ ‚produced in ‚produced in ‚produced in ‚ ‚ ‚three broods‚three broods‚three broods‚ ‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚Nitrofen concentration‚ ‚ ‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚ ‚ ‚0 ‚ 10.00‚ 31.40‚ 3.60‚ ‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚80 ‚ 10.00‚ 31.50‚ 3.27‚ ‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚160 ‚ 10.00‚ 28.30‚ 2.36‚ ‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚235 ‚ 10.00‚ 17.20‚ 5.90‚ ‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰

‚ ‡ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚total young‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚produced in‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚three ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚broods ‚ 3.60‚ 3.27‚ 2.36‚ 5.90‚ 3.71‚ Šƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒƒƒŒ

proc tabulate data=d1;

class conc;

var total brood1 brood2 brood3;

table (mean std)(brood1) (mean std)(brood2) (mean std)*(brood3)

(mean std)*(total),conc;

run ;

„ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ† ‚ ‚ Nitrofen concentration ‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚ 0 ‚ 80 ‚ 160 ‚ 235 ‚ 310 ‚ ‡ƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚Mean ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚first brood‚ 5.10‚ 5.30‚ 5.50‚ 5.40‚ 5.00‚ ‡ƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚Std ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚first brood‚ 1.20‚ 1.57‚ 1.27‚ 1.58‚ 1.94‚ ‡ƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚Mean ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚2nd brood ‚ 12.40‚ 11.40‚ 11.30‚ 5.10‚ 1.00‚ ‡ƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚Std ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚2nd brood ‚ 1.58‚ 1.43‚ 1.57‚ 5.49‚ 3.16‚ ‡ƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚Mean ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚3rd brood ‚ 13.90‚ 14.80‚ 11.50‚ 6.70‚ 0.00‚ ‡ƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚Std ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚3rd brood ‚ 2.18‚ 1.75‚ 0.97‚ 2.95‚ 0.00‚ ‡ƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚Mean ‚total young‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚produced in‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚three ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚broods ‚ 31.40‚ 31.50‚ 28.30‚ 17.20‚ 6.00‚ ‡ƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚Std ‚total young‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚produced in‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚three ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚broods ‚ 3.60‚ 3.27‚ 2.36‚ 5.90‚ 3.71‚ Šƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒƒƒŒ

proc tabulate data=d1;

class conc;

var total brood1 brood2 brood3;

table conc*(total brood1 brood2 brood3),(min q1 median q3 max);

run ;

„ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒƒ† ‚ ‚ Min ‚ Q1 ‚ Median ‚ Q3 ‚ Max ‚ ‡ƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚Nitrofen ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚concentra-‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚tion ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚ ‚ ‚ ‚ ‚0 ‚total young‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚produced in‚ ‚ ‚ ‚ ‚ ‚

‚ ‚three ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚broods ‚ 24.00‚ 30.00‚ 32.50‚ 34.00‚ 36.00‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚first brood‚ 3.00‚ 5.00‚ 5.50‚ 6.00‚ 6.00‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚2nd brood ‚ 10.00‚ 11.00‚ 12.00‚ 14.00‚ 15.00‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚3rd brood ‚ 10.00‚ 12.00‚ 15.00‚ 15.00‚ 17.00‚ ‡ƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚80 ‚total young‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚produced in‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚three ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚broods ‚ 26.00‚ 29.00‚ 32.50‚ 33.00‚ 36.00‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚first brood‚ 3.00‚ 5.00‚ 5.00‚ 6.00‚ 8.00‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚2nd brood ‚ 9.00‚ 11.00‚ 12.00‚ 12.00‚ 13.00‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚3rd brood ‚ 12.00‚ 14.00‚ 14.50‚ 16.00‚ 18.00‚ ‡ƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚160 ‚total young‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚produced in‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚three ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚broods ‚ 23.00‚ 27.00‚ 29.00‚ 30.00‚ 31.00‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚first brood‚ 2.00‚ 6.00‚ 6.00‚ 6.00‚ 6.00‚ ˆ ˆƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚160 ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚2nd brood ‚ 8.00‚ 10.00‚ 12.00‚ 12.00‚ 13.00‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚3rd brood ‚ 10.00‚ 11.00‚ 11.00‚ 12.00‚ 13.00‚ ‡ƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚235 ‚total young‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚produced in‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚three ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚broods ‚ 7.00‚ 13.00‚ 16.50‚ 21.00‚ 27.00‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚first brood‚ 2.00‚ 4.00‚ 6.00‚ 6.00‚ 7.00‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚2nd brood ‚ 0.00‚ 0.00‚ 3.50‚ 10.00‚ 13.00‚ ‚ ‡ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚number of ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚young in ‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚3rd brood ‚ 0.00‚ 6.00‚ 6.50‚ 9.00‚ 10.00‚ ‡ƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚310 ‚total young‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚produced in‚ ‚ ‚ ‚ ‚ ‚ ‚ ‚three ‚ ‚ ‚ ‚ ‚ ‚

310 total young produced in three broods 0.00 5.00 6.00 6.00 15.

number of young in first brood 0.00 5.00 5.50 6.00 7.

number of young in 2nd brood 0.00 0.00 0.00 0.00 10.

number of young in 3rd brood 0.00 0.00 0.00 0.00 0.

ODS RTF file= ‘ C:\Documents and Settings\John Bailer\My Documents\baileraj\

Classes\Fall 2003\day8-tabulate-example.rtf’;

proc tabulate data=d1 format= 5.1 ;

class conc;

var total brood1 brood2 brood3;

table conc*(total brood1 brood2 brood3),(min q1 median q3 max);

run ;

ODS RTF close;

Min Q1 Median Q3 Max Nitrofen concentration

0 total young produced in three broods 24.0 30.0 32.5 34.0 36.

number of young in first brood 3.0 5.0 5.5 6.0 6.

number of young in 2nd brood 10.0 11.0 12.0 14.0 15.

number of young in 3rd brood 10.0 12.0 15.0 15.0 17.

80 total young produced in three broods 26.0 29.0 32.5 33.0 36.

number of young in first brood 3.0 5.0 5.0 6.0 8.

number of young in 2nd brood 9.0 11.0 12.0 12.0 13.

number of young in 3rd brood 12.0 14.0 14.5 16.0 18.

160 total young produced in three broods 23.0 27.0 29.0 30.0 31.

number of young in first brood 2.0 6.0 6.0 6.0 6.

number of young in 2nd brood 8.0 10.0 12.0 12.0 13.

number of young in 3rd brood 10.0 11.0 11.0 12.0 13.

235 total young produced in three broods 7.0 13.0 16.5 21.0 27.

number of young in first brood 2.0 4.0 6.0 6.0 7.

number of young in 2nd brood 0.0 0.0 3.5 10.0 13.

number of young in 3rd brood 0.0 6.0 6.5 9.0 10.

  • 310 total young produced in three broods 0.0 5.0 6.0 6.0 15.
    • number of young in first brood 0.0 5.0 5.5 6.0 7.
    • number of young in 2nd brood 0.0 0.0 0.0 0.0 10.
    • number of young in 3rd brood 0.0 0.0 0.0 0.0 0.