Inputting Snoring and Heart Disease data, table 4.1, p. 75. data glm; input snoring disease total; cards; 0 24 1379 2 35 638 4 21 213 5 30 254 ;…
Read More
Search Results for: what stat should i use
An Introduction to Categorical Analysis by Alan Agresti Chapter 7 – Building and Applying Logit and Log-linear Models | SAS Textbook Examples
We will present both the SAS proc catmod and proc genmod code in this chapter most of the time. Table 7.2 based on the drug data set, table 7.1 on…
Read More
Multilevel Analysis Techniques and Applications by Joop Hox Chapter 5: Analyzing Longitudinal Data | SAS Textbook Examples
Table 5.1 on page 78, Table 5.2 on page 79 using data file gpa. proc glm data = gpa; class sex; model gpa1-gpa6 = sex highgpa /nouni ; repeated gpa…
Read More
Regression with Graphics by Lawrence Hamilton
Download SAS Data Files This page contains the data files for the book Regression with Graphics- A Second Course in Applied Statistics. We are very grateful to Professor Hamilton for…
Read More
Applied Survival Analysis by Hosmer and Lemeshow Chapter 1: Introduction | SAS Textbook Examples
For textbook examples, we will follow the convention. That is to indent the general text and to leave the software code and output un-indented. Time signature. Don’t forget to put…
Read More
Visualizing Data by William S. Cleveland Chapter 1: Introduction | SAS Textbook Examples
Figure 1.1 on page 4 using barley data set. Using the by statement in proc gplot, SAS automatically creates all the subplots. We then use proc greplay to put them…
Read More
How can I merge two files on address? | SAS FAQ
Given two data sets containing different pieces of information for an overlapping set of addresses, you may be interested in merging your datasets by address. Different data sources can represent…
Read More
How can I bootstrap estimates in SAS? | SAS FAQ
Bootstrapping allows for estimation of statistics through the repeated resampling of data. In this page, we will demonstrate several methods of bootstrapping a confidence interval about an R-squared statistic in SAS….
Read More
How can I do estimation using a cell-means model? | SAS FAQ
We will use a data set called https://stats.idre.ucla.edu/wp-content/uploads/2016/02/elemapi2.sas7bdat to demonstrate. Variables mealcat and collcat are two categorical variables, both with three levels. The dependent variable is school’s API index. We…
Read More
How do I run a random effect tobit model using nlmixed? | SAS FAQ
For this example, we use a simulated dataset. The SAS program containing all the code for this page may be downloaded here. You can download the data for this example…
Read More
