Ass3 - 1988 ; title 'salary report and gender' ; footnote...

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

View Full Document Right Arrow Icon
Q1. libname orion 'D:\math2871' ; data work.allorders work.nostaff; set orion.staff orion.orders; run ; data work.allorders work.nostaff; merge orion.staff ( in =A) orion.orders ( in =B); by employee ID; if A= 1 and B= 1 then output work.allorders; else if A= 1 and B= 0 then output work.nostaff; run ; proc format ; value EmpP LOW-< 3000 = 'SHORT' 3000 -< 8000 = 'MEDIUM' 8000 <-HIGH= 'LONG' ; RUN ; ods pdf file 'FreqTest.pdf' ; PROC FREQ data =work.allorders; tables gender*EmpP/ chisq ; output out =work.allorders chisq ; label EmpP= 'Employment period' ; title 'Table of Employment period by Gender' ; run ; ods pdf close ; proc means data =work.nostaff; by order_type; var Delivery_days; class order_type; FORMAT Employment_period EmpP.; title 'Mean estimates of delivety day by order type' ; run ; Q2. options nodate pageno= 1 ; ods csvall file = 'SalaryReport.csv' ; proc tabulate data =orion.staff; class gender birth_date; var salary;
Background image of page 1

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

View Full DocumentRight Arrow Icon
table gender all, birth_date*salary ; format birth_date: year4. ; where 1983 < birth_date <
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1988 ; title 'salary report and gender' ; footnote 'created by math2871 student' ; run ; ods csvall close ; ods pdf file = 'BirthMonth.pdf' ; goptions reset =all border; proc gchart data =orion.staff; FORMAT birth_date: monname5. ; PIE gender birth_date / sumvar =salary; where gende eq female; title 'Birth Month of Female Employees' ; run ; ods pdf close ; Q3 . data work.dice; drop i; call streaminit( 42 ); do i= 1 to 10000 ; x=ceil(rand( 'uniform' )* 6 ); output ; end ; run ; data EvenNum TwoThree; set orion.dice; select (x); when ( 2 , 3 ) output TwoThree; when ( 2 , 4 ) output EvenNum; when ( 2 , 6 ) output EvenNum; when ( 6 , 4 ) output EvenNum; when ( 6 , 2 ) output EvenNum; when ( 4 , 6 ) output EvenNum; when ( 4 , 2 ) output EvenNum; end ; run ;...
View Full Document

Page1 / 2

Ass3 - 1988 ; title 'salary report and gender' ; footnote...

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

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