From the course: Business Analytics: Forecasting with Trended Baseline Smoothing

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Using R for SES

Using R for SES

- [Instructor] Let's take a look at how you can accomplish the same sort of result using the statistical platform R. R has a function named ses, you can use it to do simple exponential smoothing. You can find the documentation for the function I'm about to discuss at this website. There are several ways to go about preparing your analysis in R, and I'll show you one here that appeals to me. I start by pulling the function named DescTools into R's workspace using the library function. The name DescTools is short for Descriptive Statistics Tools you'll first need to have downloaded DescTools from a CRAN site and installed it with the library function. Then in Excel I select the first differences from a trended baseline, I'll do that in the differenced value sheet in the exercise file 01_04. Then I'll switch back to R to enter the command that actually pulls the selected data from Excel into R. This is the reason I loaded DescTools from the outset with DescTools loaded you have access to…

Contents