[Show all top banners]

Racheeta
Replies to this thread:

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

poozaree

Shyam Sundar Swonepa
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 Any SAS expert here ?
[VIEWED 4505 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 90 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
Toilet paper or water?
ढ्याउ गर्दा दसैँको खसी गनाउच
Sajha Poll: Who is your favorite Nepali actress?
Problems of Nepalese students in US
Mamta kafle bhatt is still missing
Tourist Visa - Seeking Suggestions and Guidance
To Sajha admin
From Trump “I will revoke TPS, and deport them back to their country.”
Are Nepalese cheapstakes?
अरुणिमाले दोस्रो पोई भेट्टाइछिन्
wanna be ruled by stupid or an Idiot ?
MAGA denaturalization proposal!!
Nepali Psycho
advanced parole
I hope all the fake Nepali refugee get deported
How to Retrieve a Copy of Domestic Violence Complaint???
and it begins - on Day 1 Trump will begin operations to deport millions of undocumented immigrants
seriously, when applying for tech jobs in TPS, what you guys say when they ask if you have green card?
Travel Document for TPS (approved)
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