Posts Tagged ‘ Statistical Programming ’

Simultaneous confidence intervals for multinomial proportions

February 15, 2017
By
Simultaneous confidence intervals for multinomial proportions

A categorical response variable can take on k different values. If you have a random sample from a multinomial response, the sample proportions estimate the proportion of each category in the population. This article describes how to construct simultaneous confidence intervals for the proportions as described in the 1997 paper

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Simultaneous confidence intervals for multinomial proportions

An easy way to run thousands of regressions in SAS

February 13, 2017
By
An easy way to run thousands of regressions in SAS

A common question on SAS discussion forums is how to repeat an analysis multiple times. Most programmers know that the most efficient way to analyze one model across many subsets of the data (perhaps each country or each state) is to sort the data and use a BY statement to

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on An easy way to run thousands of regressions in SAS

Winsorization: The good, the bad, and the ugly

February 8, 2017
By
Winsorization: The good, the bad, and the ugly

On discussion forums, I often see questions that ask how to Winsorize variables in SAS. For example, here are some typical questions from the SAS Support Community: I want an efficient way of replacing (upper) extreme values with (95th) percentile. I have a data set with around 600 variables and

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Winsorization: The good, the bad, and the ugly

Simulate many samples from a linear regression model

February 1, 2017
By
Simulate many samples from a linear regression model

In a previous article, I showed how to simulate data for a linear regression model with an arbitrary number of continuous explanatory variables. To keep the discussion simple, I simulated a single sample with N observations and p variables. However, to use Monte Carlo methods to approximate the sampling distribution

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Simulate many samples from a linear regression model

Automate the creation of a discrete attribute map

January 30, 2017
By
Automate the creation of a discrete attribute map

If you are a SAS programmer and use the GROUP= option in PROC SGPLOT, you might have encountered a thorny issue: if you use a WHERE clause to omit certain observations, then the marker colors for groups might change from one plot to another. This happens because the marker colors

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Automate the creation of a discrete attribute map

Simultaneous confidence intervals for a multivariate mean

December 7, 2016
By
Simultaneous confidence intervals for a multivariate mean

Many SAS procedure compute statistics and also compute confidence intervals for the associated parameters. For example, PROC MEANS can compute the estimate of a univariate mean, and you can use the CLM option to get a confidence interval for the population mean. Many parametric regression procedures (such as PROC GLM)

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Simultaneous confidence intervals for a multivariate mean

Loess regression in SAS/IML

October 19, 2016
By
Loess regression in SAS/IML

A previous post discusses how the loess regression algorithm is implemented in SAS. The LOESS procedure in SAS/STAT software provides the data analyst with options to control the loess algorithm and fit nonparametric smoothing curves through points in a scatter plot. Although PROC LOESS satisfies 99.99% of SAS users who

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Loess regression in SAS/IML

Compute nearest neighbors in SAS

September 14, 2016
By
Compute nearest neighbors in SAS

Finding nearest neighbors is an important step in many statistical computations such as local regression, clustering, and the analysis of spatial point patterns. Several SAS procedures find nearest neighbors as part of an analysis, including as PROC LOESS, PROC CLUSTER, PROC MODECLUS, and PROC SPP. This article shows how to

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on Compute nearest neighbors 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.