BookmarkSubscribeRSS Feed
Sean_OConnor
Fluorite | Level 6

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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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