Niels Ohlsen
  • Home
  • Blog
  • Dataviz
  • Photography
  • EN
  • DE
Categories
All (10)
data wrangling (2)
dataviz (5)
ggplot2 (4)
latent class analysis (2)
missing data (1)
rstats (10)
SEM (3)
Zum Inhalt springen / Skip to content

Blog

Statistics, R & data visualisation

These articles were originally published on the WordPress blog „ahoi data”. They keep their original URLs so existing references and citations stay valid.

Multiple Imputation in R. How to impute data with MICE for lavaan.

rstats
missing data
SEM

Background on missing-data mechanisms, how to inspect missingness in R, and how to pass multiply imputed datasets from the mice package into a lavaan SEM.

Jan 14, 2017

Whereabouts of observations between multiple latent class models. Supplementary plot for LCA with poLCA.

rstats
latent class analysis
dataviz

A DiagrammeR plot that traces how observations are reassigned across a sequence of latent class models with a growing number of classes.

Aug 18, 2015

Example for a latent class analysis with the poLCA-package in R

rstats
latent class analysis
ggplot2

A worked example of polytomous latent class analysis with the poLCA package: fitting the models, comparing model fit, and plotting the classes with ggplot2.

Aug 13, 2015

How to plot correlations of rating items with R

rstats
ggplot2
dataviz

Inspecting the correlations between observed rating items before a SEM analysis — with the corrplot package and a ggplot2 alternative.

Jul 14, 2015

Plot with background in ggplot2: Visualising line-ups from Hurricane-festival 1997 – 2015

rstats
ggplot2
dataviz

Using a photo as the background of a ggplot2 barplot, with custom fonts and alpha blending — plotted on Hurricane Festival line-ups from 1997 to 2015.

Jun 4, 2015

Drawing path diagrams of structural equation models (SEM) for publication

rstats
SEM
dataviz

How to draw publication-quality path diagrams for structural equation models — comparing semPlot, pathdiagram and manual approaches.

Mar 20, 2015

How to apply survey weights in structural equation modeling (SEM) with lavaan.

rstats
SEM

Fitting structural equation models with lavaan and applying survey weights via the survey and lavaan.survey packages.

Mar 17, 2015

Recoding all vectors in a dataframe at once (R)

rstats
data wrangling

Two short patterns for applying the same recoding to every vector in a data frame at once.

Mar 11, 2015

Diverging stacked barchart for plotting likert Items

rstats
ggplot2
dataviz

Building a diverging stacked barchart for likert items directly in ggplot2, working from aggregated data instead of raw responses.

Mar 9, 2015

R-Tipps: Dplyr in Funktionen nutzen

rstats
data wrangling

Wrapping dplyr calls in your own functions to avoid repeating the same transformation for many variables. (This post is in German.)

Jan 27, 2015
No matching items

© 2026 Niels Ohlsen

Keine Cookies · keine Drittinhalte · anonyme Statistik

  • Impressum

  • Datenschutz