MyNixOS website logo
Description

Variability Analysis in R.

Uses a Bayesian model to estimate the variability in a repeated measure outcome and use that as an outcome or a predictor in a second stage model.

varian logo

varian is a free, open source R package for variability analysis using Bayesian inference.

It provides a formula interface in R to define a multilevel model for a variable with repeated measures, in addition to standard multilevel features such as fixed effects and a random intercepts/slopes, the residual variance is a random variable by ID. The latent residual variance estimates are then used as predictors in a regression of another outcome.

CRAN_Status_Badge

Getting Started

At its core, varian uses Stan to estimate the models.

Prerequisites

R

R version 3.1.1 or later is required. You can download the latest version of R here:

http://www.r-project.org/

Tools

Stan and the varian package rely on being able to compile C++ code.

  • For Windows, download and install Rtools at http://cran.r-project.org/bin/windows/Rtools/
  • For Mac, make sure you have the latest version of Xcode installed. The installation instructions for rstan provide more details.
  • For Linux, make sure you have a recent version of ge++ or clang++.

RStan

Install the latest version of the rstan package, which you can do from CRAN now. That page also lists more detailed directions for getting the necessary tools installed.

```R
install.packages("rstan", dependencies = TRUE)
```

Install varian

You can install:

  • the latest stable release (0.2.2) from CRAN

    install.packages("varian", dependencies = TRUE)
    
  • the latest development version from github

    install.packages("devtools")
    devtools::install_github("ElkhartGroup/varian")
    

Learn about the theory

See our open access pre-print on the arXiv http://arxiv.org/abs/1411.2961.

More

Metadata

Version

0.2.2

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • 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-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-windows