[Show all top banners]

Racheeta
Replies to this thread:

More by Racheeta
What people are reading
Subscribers
Subscribers
[Total Subscribers 2]

Shyam Sundar Swonepa

poozaree
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 Any SAS expert here ?
[VIEWED 3796 TIMES]
SAVE! for ease of future access.
Posted on 10-21-09 6:58 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

hello friends,
I am having trouble with one thing in SAS. I have a huge data set and of course there are number of missing observations in the data set. I have been asked to find the "missing code" the data set is using. ? Well i understand the question, the missing data code can be ".", " " or "-99" or it can be anything. but how do i find what code the data set is using for missing values ? what program statemetn should i use to find out the missing code the data set is using  ?
Any help would be appreciated.


thanks.


Racheeta.


 
Posted on 10-21-09 7:55 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

The questions seems quite tricky, or unsolvable in itself.

You are saying that you have a huge data and asked to find the missing code?? So, where comes SAS here, the data is raw, its upon those guys who wrote data in any format. As you said youself it could be anything like ".", "-99", yeas, very true. So, if u have to import data in SAS,u need to say in statement that missing data is "this". but, u r trying to find missing data using SAS. ............oops..........

What about looking into the data (well part of data) for something that does not look like what should have been manually, or with some code. If you are going to analyze the data, u should know that what values you expect i.e 1-100, or some numeric, positive. if u know that u can select the data thats reading(or delete that's coded). for example, i made a dummy data

data hello;
do a=1 to 100;
b=ranuni(0);
output;
end;
run;

Now, i replaced some with some missing code;
data hello2; set hello;
if a=50 then a=-99;
if (b<0.5 and b>0.4) then b=".";

run;

Now, only data that does not fit in what I expect, could be missing

data hello3; set hello2;
where a<0;
run;


or coding what could be missing to my code,"."

data hello4; set hello2;
if a<0 then a="NA";

run;



I don't know whether it helps you or not...but this is definitely what I will do.



 
Posted on 10-21-09 11:04 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Look at the distribution of each variables - using proc freq for nominal and ordinal variable and even interval data, and proc univariate for interval/continous data. 

While developing database or importing database into SAS, missing values are coded by such a number that is unlikely to be usual data point of that particular variable (would be an extreme observation but, has higher frequency distribution than any other extreme observation if several observation are missing). So, if ".", "9", "99", "999", "-9", "-99" or any other value that is repeated more frequently than usual value, they are likely to be missing values. Easiest way would be to inspect the extreme observation. Replace any missing values with "." and do the analysis.

 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 200 days
Recommended Popular Threads Controvertial Threads
डीभी परेन भने खुसि हुनु होस् ! अमेरिकामाधेरै का श्रीमती अर्कैसँग पोइला गएका छन् !
शीर्षक जे पनि हुन सक्छ।
What are your first memories of when Nepal Television Began?
Sajha Poll: नेपालका सबैभन्दा आकर्षक महिला को हुन्?
ChatSansar.com Naya Nepal Chat
NRN card pros and cons?
Basnet or Basnyat ??
निगुरो थाहा छ ??
Nas and The Bokas: Coming to a Night Club near you
TPS Re-registration
अमेरिकामा छोरा हराएको सूचना
ओच्छ्यान मुत्ने समस्या ( confession )
Do nepalese really need TPS?
TPS Re-registration case still pending ..
Drawback for applying NRN card
nrn citizenship
Breathe in. Breathe out.
Democrats are so sure Trump will win
ढ्याउ गर्दा दसैँको खसी गनाउच
My facebook archive (for sale)
Nas and The Bokas: Coming to a Night Club near you
Mr. Dipak Gyawali-ji Talk is Cheap. US sends $ 200 million to Nepal every year.
Harvard Nepali Students Association Blame Israel for hamas terrorist attacks
TPS Update : Jajarkot earthquake
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters