SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
Sean_OConnor
Obsidian | Level 7

Folks,

 

I've a query which I'm hoping people may be able to lend some advice on?

 

At the moment I'm working on a validation study between answers an individual gives to earnings by face to face interview and what their actual earnings from administrative records. 

 

The information which is given by interviews is used to complie headline figures on median income of the sample and mean income.

 

What I would like to do is compute confidence intervals at the 95% for these headline survey figures and see do the median and mean income values taken from the administrative records fall within the confidence intervals set out from the survey. In other words are these headline figures statistically significantly different than the survey ones?

 

I understand how to compute upper and lower confidence intervals in SAS for means but I'm unsure how to do it for a median? From reading up it can be done, although with some slight assumptions limaitations etc.

 

Any input would be very welcome.

 

DATA Inc;
 INFILE DATALINES;
 INPUT Income_survey Income_admin;
DATALINES;
74680 11462
2076 54361
40150 76792
90681 26930
15000 15000
3600 2589
;run;

 

1 REPLY 1
Ksharp
Super User
Here are two kind of CI for median,one is for normal distribution,another is free distribution.


DATA Inc;
 INFILE DATALINES;
 INPUT Income_survey Income_admin;
DATALINES;
74680 11462
2076 54361
40150 76792
90681 26930
15000 15000
3600 2589
;run;

proc univariate data=inc CIPCTLDF CIPCTLNORMA ;
var income_survey;
run;

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 12929 views
  • 2 likes
  • 2 in conversation