MyNixOS website logo
Description

Integration of 'Blimp' Software into R.

Provides an interface to 'Blimp' software for Bayesian latent variable modeling, missing data analysis, and multiple imputation. The package generates 'Blimp' syntax, executes 'Blimp' models, and imports results back into 'R' as structured objects with methods for visualization and analysis. Requires 'Blimp' software (freely available at <https://www.appliedmissingdata.com/blimp>) to be installed separately.

rblimp

R interface to Blimp for Bayesian latent variable modeling, missing data analysis, and multiple imputation.

Overview

rblimp provides a seamless interface to integrate Blimp software into R workflows. Blimp offers general-purpose Bayesian estimation for a wide range of single-level and multilevel structural equation models with two or three levels, with or without missing data.

Key Features

  • Flexible Model Specification: Use R formula syntax or raw Blimp syntax
  • Multiple Imputation: Built-in support for Fully Conditional Specification (FCS)
  • Convergence Diagnostics: PSR values, trace plots, and posterior distributions
  • Visualization Tools: Residual plots, simple slopes, Johnson-Neyman regions
  • Integration: Convert results to mitml format for pooling analyses
  • Data Simulation: Generate simulated datasets for power analysis and methods research
  • Special Variable Types: Support for binary, ordinal, nominal, and count outcomes
  • Interactive Effects: Estimation routines for interactions and polynomial effects

Installation

Step 1: Install Blimp Software

Before installing rblimp, you must download and install Blimp (freely available):

  1. Visit https://www.appliedmissingdata.com/blimp
  2. Download the version for your operating system
  3. Follow the installation instructions

Step 2: Install rblimp

Install from CRAN:

install.packages("rblimp")

Or install the development version from GitHub:

# install.packages("remotes")
remotes::install_github("blimp-stats/rblimp")

Step 3: Configure Blimp

After installation, configure the path to Blimp:

library(rblimp)

# Automatic detection
detect_blimp()

# Or set manually
set_blimp("/path/to/blimp")

# Verify
has_blimp()

Getting Started

View the getting started guide:

?rblimp_getting_started

Explore function documentation:

?rblimp          # Fit Bayesian models
?rblimp_fcs      # Multiple imputation
?rblimp_sim      # Data simulation
help(package = "rblimp")

Quick Example

library(rblimp)

# Generate data with latent factor
mydata <- rblimp_sim(
  c(
    'f ~ normal(0, 1)',
    'x1:x5 ~ normal(f, 1)',
    'y ~ normal(10 + 0.3*f, 1 - .3^2)'
  ),
  n = 500,
  seed = 19723,
  variables = c('y', 'x1:x5')
)

# Fit SEM model
model <- rblimp(
  list(
    structure = 'y ~ f',
    measurement = 'f -> x1:x5'
  ),
  mydata,
  seed = 3927,
  latent = ~ f
)

# View results
summary(model)

# Check convergence
trace_plot(model)

Resources

Citation

If you use rblimp in your research, please cite both the package and Blimp software. Use citation("rblimp") for citation information.

License

GPL-3

Metadata

Version

1.0.0

License

Unknown

Platforms (78)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows