BookmarkSubscribeRSS Feed
Amir1360
Calcite | Level 5

I need to conduct a series of descriptive analysis and come up with the average absenteeism (absent hours) per department and per location on a dataset which has the following variables:

Gender

City

Job Title 

Department Name

Store Location

Division

Age

Length of Service

Absent Hours

Business Unit

What code do I need to write to get the average absenteeism (absent hours) per department and per location?

In addition, how can I measure the effects of age and length of service on absenteeism? (Which code should I write to get that)? 

And; in order to discover if gender explains any differences in absenteeism. What code do I need to write?

Please help.

Thanks. 

 
3 REPLIES 3
PaigeMiller
Diamond | Level 26

Something like this

 

proc summary data=have nway;
    class department location;
    var absenthours;
    output out=_stats_ n= mean= min= max= median= std=/autoname;
run;

In addition, how can I measure the effects of age and length of service on absenteeism? (Which code should I write to get that)?

And; in order to discover if gender explains any differences in absenteeism. What code do I need to write?

 Tell us what statistical method or statistical analysis you want to do, and then we can help you with the code.

--
Paige Miller
Amir1360
Calcite | Level 5

Great, thank you. 

I need to conduct scale diagnostics (reliability analysis) for the measures. 

I also need to run two chi-square analyses to find out if there is discrimination in the organization against people.

PaigeMiller
Diamond | Level 26

I don't know what "scale diagnostics" are so I can't help with that part.

 

PROC FREQ has a Chi-squared option, but there are many other ways to get chi-squared tests in SAS; and saying what test you want is not the same as saying what analysis you'd like to do. So please indicate what the statistical analysis method is that you'd like to use.

--
Paige Miller

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 833 views
  • 0 likes
  • 2 in conversation