SAS: How to keep leading zeros in a variable while exporting your data set to Excel?

04:57 Add Comment
While working with SAS ODS , many problems may arise : one of them is keeping leading zeros in numeric or even character variables when one attempts to export them to an excel file.

Let us take for example these variables


Exporting this file to Excel via the ODS generate this result: Excel deleting all the leading zeros .

Actually this problem can be solved by adding simple options to your code




We can therefore have the desired Output.





Why most people identify Math as a difficult subject?

06:00 Add Comment
Is really Math a subject exclusive to geniuses?
As far as I am concerned, you don't need to have a very outstanding IQ to do Math.
The human brain is like a sophisticated computer, to deal with a given topic, your brain uploads all the context you need to understand your topic to your working memory. It is true that the working memory capacity differs from one human to another, this why our understandings differ.
The majority of topics require a minimum of information to be uploaded to your context memory, either because every situation is independent or because you are familiar with it .
To illustrate this, I go to my kitchen to cook: my brain uploads to the working memory the places of the ustensiles and ingredients, the cooking methods and processes ...etc
If I read a book of History talking about the French Revolution, my brain situates the span of information toward the 18 th century, and It uploads only the events in this period that will allow me to understand the context of the French Revolution.
Mathematics is different than the majority of topics and the usual situations because you require to upload all what you have studied since the first years of your education to understand a simple equation. You may notice that every lesson of Math you have ever taken requires you to have full understanding of all the previous lessons. Everything in Math is channeled, and sometimes you block at solving a simple Math problem just because some tiny piece of information is missing at some stage of your Math education.
So, if you want to be good with Math, you need more focus while you study or do research, because you will need all your working memory while doing Math. Otherwise, you must have a very exceptional memory : I guess people with such a memory have an easy life , isn't it?

How to be more productive? No nootropics involved!

02:31 Add Comment
Yeah ! Another boring topic.
I am a lazy person, and I get bored easily. However , to earn enough money to survive in this world where everyone is working all the day long is not so evident with those qualities (Lazy and easily bored).
So , I was looking around the web for the easiest ways to improve your productivity while investing the least effort .
There are two things important about productivity: Motivation and ordering Priorities.
1-Motivation
 Keeping up motivation is difficult especially with tasks that require long time to show up results. In order to keep it up all the time, you need to set up some macro goals! Yeah , you read it right: The Sky is not even a limit (I will send a rocket to space, I will build a Villa on the Moon....). These macro goals -no matter how they are- are feasible! These goals are your fuel to wake you up in the morning. However; keep in mind that to attain those goals , you need planning and setting up milestones. For example, I am now a simple Biostatistician and PhD student, I want to launch a Rocket to space.  I need to mark milestones: Get noticed in the scientific community with some substantial contribution, build a private research facility in my country that will facilitate jumping up to space. Then to reach those goals , I need detailed plans: what resources do I have? how I will get the ressources I need ? Who should I get in touch with?... The answers to the right questions are your master plan. Then We get to the stage  of micro planning: Everyday you commit to get something done, so you are one step closer to your Ultimate goals.
2-Ordering priorities
If you have too many interests: you will tend to get distracted all the time and lower up your abilities to get anything done. You need to pick like 5 things at most to work on, like :
 1-I will work hard to get published
 2-I will make savings to enroll in an executive MBA
 3-I will volunteer to Rethinking the educational system in my country.
 4-I will practice to be a prima dancer
 5-I will work to perfect my German and Hebrew.

The rest of my priority list can extend to more than hundred (6-Finalize and publish my Novel, 7-Write a new book, 8-Adopt a kid, 9-Get an Olympic Medal in Taekwondo, 10-Build a private laboratory for my personal use, 11-....., 101-Build a time machine, .....1001-Be a polar bear....)
Ordering priorities within time spans is the key to avoid distractions. You have 24 hours a day: I personally sleep like 7 hours and a half , I spend 10 hours at work and going coming from work and getting ready to go to work. I spend an hour preparing and eating dinner. I practice for an hour. I read or try to solve some equations for like 3 hours then  either I watch something or play games before I sleep. During the weekends I have more time for further work on my priorities and have more fun.

To sum up: Have fun working toward your goals ,
                   Avoid distractions
                   Get organized
                   Don't work hard, be smart!
Daniel Goleman said : Productivity is all about focus. So my dear friend, don't get distracted.



Meh!

04:46 Add Comment





       Hello everyone... Especially those who are bored in this world.
This the first post in the meh Journal where I would like to share with you how I make the most boring stuff in my life exciting!
Studies : most of the time .....meh!
Work: Even more boring!
Science and news and everything around is like 60% of the time presented to us in an uninteresting way.
Want to know what I do to make it interesting?
Stay tuned!

A bottle of water

03:38 Add Comment



   What is more boring than a normal bottle of water? Nothing.
   Well, this is what I thought too. Until the day I discovered that there is a very exciting story behind each bottle of water.I woke up this morning as usual at 7:20 , to head up to work, In my way I stopped at the grocery for snacks and a bottle of water. I met boring people, I smiled to cats in the road... All the boring usual.
   This water is from a very well know trademark who was known since 1933 in Morocco. The French colonization exploited  natural water sources to make this commodity available for the public. Then in my head, that boring Teacher of microeconomics starts talking : We assume that a factory of bottled water is running with zero fixed cost  to simplify the equations.
The bottled water industry is one of the silliest human inventions especially with the existence of running water in cities and people at the countryside who do not consume this commodity. So what is the secret of the very lucrative business? What do I buy in bottled water?
1-I buy a plastic recipient: yeah! and you can imagine all the number of chemical reactions involved in building plastic compounds from Petroleum. Yes! that petroleum that is the accumulation of millions of years of very slow chemical réactions on the organic matter of some creatures that lived on Earth eras ago. That petroleum, we have no idea what kind of agreements , political conflicts, what kind of wars were fought in order to split ownership of the ressources, what people worked to extract it from Earth, what ships sailed the large oceans to bring it to manufacturing....and at the end: who is the fat guy in the shiny suit who will put in his bank account the engrossed profit.
The plastic bottle has a weird mechanism: The amazing bottle cap, yeah ! you heard me. In the past, it was trivial that most bottles and recipients were capped by some kind of a cork which was expensive as it was generally made from the cork tree. The plastic bottle cap is less expensive, and it has a screw-like mechanism to ensure that nothing goes out. I am not that smart to come up with such a brilliant idea, I really thank the guy who invented it.
2-I buy water: molecules of the Dioxyde of Hydrogen , the secret of life, "El agua Del la vida", the thing that is 66% of my body weight. (If I get mummified, my mummy will be waiting less than 18 Kilos) Can you believe how crazy it is? Some researchers proved recently the water molecules are even older than the solar system. Which means that most of the particles I drink, that are part of me, that exist on Earth ,were formed before the formation of our dear Solar System. Some of these particles in this bottle of water are more than 4.5 billion years old! 
3- I buy some other minerals, like calcium , sodium ...(These are Alkali Métals) which are necessary for that my biological system keeps running smoothly.
A bottle of Water my dear friend, is not a simple commodity, it is the result of a process that started  more than 4.5 billions years ago. That very process involves millions of creatures (Plants, animals especially humans, physical and chemical reactions, market variables, competitions, games of decision, Politics...)
Hell , I can write a book of more than 300 pages talking  about all the variables that led me this morning to decide to acquire that bottle of water with that price. But a long book is going to be boring! I prefer not!