The simple block bootstrap for time series in SAS

January 6, 2021
By
The simple block bootstrap for time series in SAS

For ordinary least squares (OLS) regression, you can use a basic bootstrap of the residuals (called residual resampling) to perform a bootstrap analysis of the parameter estimates. This is possible because an assumption of OLS regression is that the residuals are independent. Therefore, you can reshuffle the residuals to get

The post Read more »

Top posts from The DO Loop in 2020

January 4, 2021
By
Top posts from The DO Loop in 2020

Last year, I wrote more than 100 posts for The DO Loop blog. In previous years, the most popular articles were about SAS programming tips, statistical analysis, and data visualization. But not in 2020. In 2020, when the world was ravaged by the coronavirus pandemic, the most-read articles were related

The post Read more »

Create a response variable that has a specified R-square value

December 21, 2020
By
Create a response variable that has a specified R-square value

When you perform a linear regression, you can examine the R-square value, which is a goodness-of-fit statistic that indicates how well the response variable can be represented as a linear combination of the explanatory variables. But did you know that you can also go the other direction? Given a set

The post Read more »

Find a vector that has a specified correlation with another vector

December 17, 2020
By
Find a vector that has a specified correlation with another vector

Do you know that you can create a vector that has a specific correlation with another vector? That is, given a vector, x, and a correlation coefficient, ρ, you can find a vector, y, such that corr(x, y) = ρ. The vectors x and y can have an arbitrary number

The post Read more »

2020 roundup: SAS Users YouTube channel how to tutorials

December 17, 2020
By
2020 roundup: SAS Users YouTube channel how to tutorials

Find out the most popular SAS Users YouTube channel how to tutorials, and learn a thing or two!

2020 roundup: SAS Users YouTube channel how to tutorials was published on SAS Users.


Read more »

How to create a Napoleon plot with Graph Template Language (GTL)

December 14, 2020
By
How to create a Napoleon plot with Graph Template Language (GTL)

Do you need to see how long patients have been treated for? Would you like to know if a patient’s dose has changed, or if the patient experienced any dose interruptions? If so, you can use a Napoleon plot, also known as a swimmer plot, in conjunction with your exposure

How to...
Read more »

Segmented regression models in SAS

December 14, 2020
By
Segmented regression models in SAS

A segmented regression model is a piecewise regression model that has two or more sub-models, each defined on a separate domain for the explanatory variables. For simplicity, assume the model has one continuous explanatory variable, X. The simplest segmented regression model assumes that the response is modeled by one parametric

The post Read more »

Estimating birth date from age

December 11, 2020
By
Estimating birth date from age

This code demonstrates an algorithm for estimating birth date from age. We cannot know the exact birth date, but we can get close: the maximum error is half a year, and the typical error is one quarter of a year.



/* The %age macro was taken from the Internet---maybe from here http://support.sas.com/kb/24/808.html ? */
%macro...
Read more »

Meet My SAS

December 9, 2020
By
Meet My SAS

My SAS is a brand-new customer experience page. This new location takes a variety of customer service places and puts them in one interface. The goal of My SAS is to ensure all SAS customers have the best possible experience available in the marketplace.

Meet My SAS was published on SAS...
Read more »

Welcome!

SAS-X.com offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.

Sponsors







Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at: tal.galili@gmail.com
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.