Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Data Analysis with STATA

You're reading from   Data Analysis with STATA Explore the big data field and learn how to perform data analytics and predictive modelling in STATA

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher Packt
ISBN-13 9781782173175
Length 176 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (11) Chapters Close

Preface 1. Introduction to Stata and Data Analytics FREE CHAPTER 2. Stata Programming and Data Management 3. Data Visualization 4. Important Statistical Tests in Stata 5. Linear Regression in Stata 6. Logistic Regression in Stata 7. Survey Analysis in Stata 8. Time Series Analysis in Stata 9. Survival Analysis in Stata Index

The logistic regression concept


Let's discuss some random data of rainfall from 2000 to 2011. In 2010, there was rainfall, and we have to find out about the probability of rainfall in 2011. So, logistic regression will predict whether the rainfall will happen or not, and OLS will predict the amount of rainfall in that year.

The data we'll look at in this example will tell us more about the dissimilarity between OLS and logistic regression. We will take the rainfall data for 2011 in this case.

To understand the exact difference between linear and logistic regression, let's see what happens if the data that has a binary outcome variable (event will happen = 1 and event will not happen = 0) is analyzed by leveraging linear regression. Let's take the dataset where you need to predict whether the fridge model will be sold above the cutoff or not. In this case, the dependent variable is called fridge_sales. This variable is created from the fridge_actual_sales variable, which is a continuous variable...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime