Centering a variable means that a constant has been subtracted from every value of a variable. There are several ways that you can center variables. For example, you could center…
Read More
Search Results for: what stat should i use
Why is my character variable getting chopped off? | SAS FAQ
This is added immediately after the set statement, so that it is certain that SAS will encounter the length statement before it encounters any other mention of the variable. The…
Read More
How can I compare regression coefficients between two groups? | SAS FAQ
Sometimes your research may predict that the size of a regression coefficient should be bigger for one group than for another. For example, you might believe that the regression coefficient…
Read More
How can I generate a map in SAS using an external shape file? | SAS FAQ
Given a dataset in which variables are measured within a given area (state, country, zip code, county), the data can be presented in a map. Proc gmap in SAS provides…
Read More
How do I specify types of missing values? | SAS FAQ
When a data file has missing values, sometimes we may want to be able to distinguish between different types of missing values. For example, we can have missing values because…
Read More
How can I move text on a plot? | SAS FAQ
Sometimes part of the text on a plot may be too far from the plot or too close. You can use the move option to move the text around. Below…
Read More
How can I create contrasts with proc logistic? | SAS FAQ
Specifying contrasts in logistic regression can be tricky. The examples below will illustrate how to write contrast statements in proc logistic for increasingly complicated models. All of our examples will…
Read More
From an OLS model to full mixed models using proc nlmixed | SAS FAQ
In order to help show the relationships among an OLS, random intercept, and random slope models this page shows a series of models each of which builds on the previous…
Read More
How do I interpret odds ratios in logistic regression? | SAS FAQ
You may also want to check out, FAQ: How do I use odds ratio to interpret logistic regression?, on our General FAQ page. Introduction Let’s begin with probability. Let’s say…
Read More
In PROC LOGISTIC why aren’t the coefficients consistent with the odds ratios? | SAS FAQ
We will use the hsb2 dataset and start with a logistic regression model predicting the binary outcome variable hiread with the variables write and ses. The variable write is continuous,…
Read More
