Archive for September 2015

Learning SAS: Character Functions

Like various numeric functions that help us to process numeric data, SAS has a bunch of Character Functions to easily process Characters. Problem: Clean the input data where Weight & Height are characters but remove the units after the numbers.
Saturday, September 19, 2015
Posted by Netbloggy

Learning SAS: Tweaking PROC PRINT to display the data

PROC PRINT in SAS has a lot of options which can help us tweak the way we display our data. Options like n = caption of summary, firstobs = no. of first observations & obs = last observation to be processed. Problem 1: List the first 6 observations.
Posted by Netbloggy

Learning SAS: Arrays in SAS

Unlike many other programming languages, Arrays in SAS don't store the values but just the pointers to the actual values (very much like C Pointers). Problem: Using the SAS data set Scores, create a new, temporary SAS data set (reversed) where the.
Posted by Netbloggy

Learning SAS: Numeric Functions

Sometimes it's just easier to use in-built SAS functions while processing the data rather than writing many complex statements in the DATA step. This is a simple peek into some of the numeric functions of SAS. Problem: Count the number of missing values.

Learning SAS: Subsetting & Combining SAS Data sets

As we've learnt how to process our input data with conditions and loops, it's also equally important for us to process our SAS datasets - more prominent of which are Subsetting & Combining SAS Data sets. Problem: Using the SAS data set Blood,.

Learning SAS - Working with Dates

SAS offers a lot of flexible functions in reading and writing Dates. Let's explore some of it. Problem 1:  Compute a person's age in years Input: 001 10/21/1950 05122003 08/10/65 23Dec2005 002 01/01/1960 11122009 09/13/02 02Jan1960 Solution: data.
Friday, September 18, 2015
Posted by Netbloggy

Learning SAS - Looping with Condition (DO WHILE & DO UNTIL)

We learnt about Conditional processing and Iterative Processing, but what if we could combine both of them and use effectively? Hence comes DO WHILE & DO UNTIL. Problem 1: Generate a table of integers and squares starting at 1 and ending when the.

Learning SAS - Iterative Processing : Looping

The primary objective of computer is to compute mathematical computations of big scale faster than human beings. We humans can write down multiplication table of number 5 till 10th level or  maybe 100th level, but we can make computer write down.

Learning SAS - Conditional Processing - IF-THEN-ELSE

The most important part of any programming language is conditional processing. The general syntax goes like this: if condition then --statements; else if condition then -- more statements; else if condition then -- more statements; ... else .

Time to learn SAS with Free SAS University Edition & Ron Cody's book

In the age of Rs and Pythons, SAS is still the unconquered leader at least in the domain of Banking and Finance. SAS as a statistical package shares many similarities with Mainframe systems. Even after the rise of cloud computing and Distributed systems,.

Solving "InternetOpenUrl failed: 'A connection with the server could not be established'" Error in RStudio

Just when I was trying to install a new package in my RStudio using install.package() or the GUI way, my RStudio suddenly threw a long error where "InternetOpenUrl failed: 'A connection with the server could not be established'" repeated often. That.
Sunday, September 13, 2015
Posted by Netbloggy

Popular Post

Blogger templates

Total Pageviews

Powered by Blogger.

- Copyright © 2025 nulldata -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -