Posts Tagged ‘ Getting Started ’

On the assumptions (and misconceptions) of linear regression

August 27, 2018
By
On the assumptions (and misconceptions) of linear regression

A frequent topic on SAS discussion forums is how to check the assumptions of an ordinary least squares linear regression model. Some posts indicate misconceptions about the assumptions of linear regression. In particular, I see incorrect statements such as the following: Help! A histogram of my variables shows that they

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on On the assumptions (and misconceptions) of linear regression

Standardized regression coefficients

August 22, 2018
By
Standardized regression coefficients

A SAS programmer recently asked how to interpret the "standardized regression coefficients" as computed by the STB option on the MODEL statement in PROC REG and other SAS regression procedures. The SAS documentation for the STB option states, "a standardized regression coefficient is computed by dividing a parameter estimate by

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on Standardized regression coefficients

6 ways to use the _NULL_ data set in SAS

June 11, 2018
By

In SAS, the reserved keyword _NULL_ specifies a SAS data set that has no observations and no variables. When you specify _NULL_ as the name of an output data set, the output is not written. The _NULL_ data set is often used when you want to execute DATA step code

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on 6 ways to use the _NULL_ data set in SAS

6 easy ways to specify a list of variables in SAS

May 29, 2018
By
6 easy ways to specify a list of variables in SAS

The SAS language provides syntax that enables you to quickly specify a list of variables. SAS statements that accept variable lists include the KEEP and DROP statements, the ARRAY statement, and the OF operator for comma-separated arguments to some functions. You can also use variable lists on the VAR statements

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on 6 easy ways to specify a list of variables in SAS

Position items in a grid

May 21, 2018
By
Position items in a grid

In a recent blog post, Chris Hemedinger used a scatter plot to show the result of 100 coin tosses. Chris arranged the 100 results in a 10 x 10 grid, where the first 10 results were shown on the first row, the second 10 were shown on the second row, and so

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Position items in a grid

The sweep operator: A fundamental operation in regression

April 18, 2018
By
The sweep operator: A fundamental operation in regression

The sweep operator performs elementary row operations on a system of linear equations. The sweep operator enables you to build regression models by "sweeping in" or "sweeping out" particular rows of the X`X matrix. As you do so, the estimates for the regression coefficients, the error sum of squares, and

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on The sweep operator: A fundamental operation in regression

The chi-square test: An example of working with rows and columns in SAS

April 2, 2018
By
The chi-square test: An example of working with rows and columns in SAS

As a general rule, when SAS programmers want to manipulate data row by row, they reach for the SAS DATA step. When the computation requires column statistics, the SQL procedure is also useful. When both row and column operations are required, the SAS/IML language is a powerful addition to a

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on The chi-square test: An example of working with rows and columns in SAS

How to use FIRST.variable and LAST.variable in a BY-group analysis in SAS

February 26, 2018
By
How to use FIRST.variable and LAST.variable in a BY-group analysis in SAS

My article about the difference between CLASS variables and BY variables in SAS focused on SAS analytical procedures. However, the BY statement is also useful in the SAS DATA step where it is used to merge data sets and to analyze data at the group level. When you use the

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on How to use FIRST.variable and LAST.variable in a BY-group analysis in SAS

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.