Corey S. Sparks' Blog

DEM 7283 - Splines and Generalized Additive Models

Applied statistics
Survey data
BRFSS data

In this example, we will describe how to use splines to model nonlinearities in predictor variables.

Mapping DHS Survey Estimates to ADM Level 2 Geographies

Spatial Analysis
Survey data
DHS data

In this brief example, I show how to use the GPS coordinates from the DHS data and merge them to the ADM2 subnational geographic level for the country of Ethopia.

Using IPUMS USA for Estimation of Population Characteristics in Various Geographic Areas

Spatial Analysis
Survey data
Census data

Using IPUMS USA data to produce survey-based estimates for geographic levels present in the IPUMS.

Using `tidyr` to reshape longitudinal data - a success story

This post shows how to use tidyr to reshape multiple variables at the same time.

Basic Classification Methods

Machine learning

An introduction to basic methods of classification and prediction.

Introduction to Cluster analysis

Machine Learning

A short introduction to various clustering methods.

Point Pattern Analysis using R and QGIS

Spatial Analysis

This example shows how to use R and QGIS from within R to perform a series of common point pattern analysis techniques.

Raster Analysis using R - Some social science applications

Spatial Analysis

Using R for some fundamental raster analyses.

Welcome to Corey S. Sparks's Blog

Welcome to my new blog. Here I will regularly post examples from my courses, and other content in the areas of demography, statistics and data science. I hope you enjoy reading what I have to say, and please contact me with any questions or feedback! - Regularly contributing to [R-Bloggers](

More articles »

Corey S. Sparks’ Blog