Page 283 The coefficients at the top of the page. data depress; set “c:\cama4\depress”; run; proc logistic data = depress desc; model cases = age income; run; The LOGISTIC Procedure…
Read More
Search Results for: stata
R Web Books Regression with R Chapter 4 – Beyond OLS
Chapter Outline 4.1 Robust Regression Methods 4.1.1 Regression with Robust Standard Errors 4.1.2 Using the Cluster Option 4.1.3 Robust Regression 4.1.4 Quantile Regression…
Read More
What statistical analysis should I use? Statistical analyses using R
Version info: Code for this page was tested in R 2.15.2. Introduction This page shows how to perform a number of statistical tests using R. Each section gives a brief…
Read More
Heckman Selection Model | SAS Code Fragments
This example is taken from Stata’s manual on Heckman model. The data set https://stats.idre.ucla.edu/wp-content/uploads/2016/02/womenwk.sas7bdat is in SAS 8 format and can be accessed following the link. libname in ‘d:datasas’; data…
Read More
Reading Excel Files in SAS Version 8 | SAS Code Fragments
1. If you are using SAS version 8.0, you can read Excel files up to Excel97 (but not Excel 2000). Our experience is that SAS version 8.0 reads Excel files…
Read More
Zero-inflated Poisson and negative binomial using proc nlmixed | SAS Code Fragments
The two examples here use data set fish.sas7bdat. *zero inflated poisson, producing the same result as "zip count child camper persons, inflate(child)" in Stata; proc nlmixed data=fish; parameters b0=0 b1=0…
Read More
Interval Regression | SAS Data Analysis Examples
Version info: Code for this page was tested in SAS 9.3. Interval regression is used to model outcomes that have interval censoring. In other words, you know the ordered category…
Read More
Multinomial Logistic Regression | SAS Data Analysis Examples
Version info: Code for this page was tested in SAS 9.3. Multinomial logistic regression is for modeling nominal outcome variables, in which the log odds of the outcomes are modeled…
Read More
Negative Binomial Regression | SAS Data Analysis Examples
Negative binomial regression is for modeling count variables, usually for over-dispersed count outcome variables. Please note: The purpose of this page is to show how to use various data analysis…
Read More
Ordinal Logistic Regression | SAS Data Analysis Examples
Version info: Code for this page was tested in SAS 9.3. Examples of ordered logistic regression Example 1: A marketing research firm wants to investigate what factors influence the size…
Read More
