Calculating the Area Under the Curve is used in many different fields of research and departments here at the University of Guelph. The example we will work through here, is one from Food Science. A PDF version of the Powerpoint presentation used for this session can be viewed here. The presentation explains the process of … Continue reading Area Under the Curve
Category: Data Step
Calculating differences using DIF( ) and LAG( ) functions
This may be a short post but I think one that folks will find may come in handy. I was recently asked how to calculate a difference of a variable listed in 2 rows. As a made-up example. I have 2 weight observations on some unit and I want to calculate the difference between the … Continue reading Calculating differences using DIF( ) and LAG( ) functions
Revisit: How do we use @ and @@ to enter data
I've been reminded of how we can take advantage of the @ and @@ in SAS when entering data. There have been a few students using this code, which I think is wonderful, and something I'd like to revisit and maybe remind folks on what these symbols do and how we can use them. We … Continue reading Revisit: How do we use @ and @@ to enter data
Revisit Subsetting in SAS
With new students learning SAS on campus, sometimes it is handy to revisit some of the posts we created a few years ago. One such post is Subsetting data with the IF and WHERE statement. In this week's SAS workshop we're looking at Merging data and creating new variables, so revisiting Subsetting is a nice … Continue reading Revisit Subsetting in SAS
Let’s talk SAS Data basics
For this Friday's SASsy session (October 27, 2017) let's talk about some of the basics of the DATA step. DATA statement Since most people use Excel to enter their data I like to draw comparisons between the two programs: Excel and SAS. As many of you know I LOVE examples, and yes, I will take … Continue reading Let’s talk SAS Data basics