Saturday 30 July 2016

Creating new codes from one meta code

This is another life saver syntax that I learnt from Minhaj. Some datasets come with only one large code with various information. For example it is common to have PSU code which includes the information about the respondent's location, sex etc.

Here is a syntax that can be modified.

SET OVars Both ONumbers Both TVars Both TNumbers Both.
SET OVars Labels ONumbers Labels TVars Labels TNumbers Labels.


comp province = trunc (psu/100000).
comp temp = trunc (psu/10000).
*comp locality = temp - (province*10).
var lab province 'Province'.
val lab province 1'Punjab' 2'Sindh' 3'NWFP' 4'Balochistan'.

format province (f1.0).
fre province.

In this syntax the point to note is that variable "psu" has 6 characters and the code for "province" is stored in position 1. Hence, it is divided by "10000" which will truncate the last 5 characters. 

8 comments:

chatroom said...
This comment has been removed by a blog administrator.
Packers And Movers Bangalore said...
This comment has been removed by a blog administrator.
Unknown said...

A superior All Assignment Help review offered by this website with the advantage of online support with high proficiency level based on its latest research and information by professional reviews writers. Wide ranges of subjects are covered with separate writers for each subject.

Akshita Sharma said...

Wondermouse technologies pvt ltd has made the processing of business operations easier. Let us help you create state-of-the-art Android mobile apps that will cater to the needs of your customers as well as your business. Nowadays, ios app development company in noida IOS app development service company in delhi, are most common practices used in every business. There is a big ratio of smart phone user worldwide. This is the main reason of responsive web design company increased demand for innovative android application development

Emily Graham said...

GotoEssayHelp Services is one among the best UK Essay help provider which will help you out with all your academic related problems . They have a lot of professional experts who have
expertise knowledge in giving you proper guidance and providing you with cheap
essay help services. You are free to contact their experts by visiting
their website and get your pending presentations completed on the given
time. They are giving this services to all the students of different Subjects
like nursing assignment help, management help services, humanities
help etc. Many students see that Assignment Help UK experts are proficient in
writing your assignments but no one wonders the reason behind it.

Anonymous said...

Thanks for sharing the valuable information here. So I think I got some useful information with this content. Thank you and please keep update like this informative detail.
Online Travel Booking Solutions

Leo Oliver said...

Excellent! We offers Management Assignment Help at a very low cost. Our charges have been kept low so that all students can afford our academic writing services. Our management assignment writers provide students with custom-made assignment initiatives. As a result, students who face challenges with unusually written management tasks can easily contact us.

cryptocustomercare said...

When you like to
import token to coinbase wallet
, then it will be a great option for saving you more money. here are also easier ways. Buying, selling and storing cryptos in the modern day is quite an easier option for people across the world. There are many number of Cryptocurrency available that includes Bitcoin, Ethereum and many more.