项目作者: dirmeier

项目描述 :
a greta extension for hierarchical models
高级语言: R
项目地址: git://github.com/dirmeier/greta.lme.git
创建时间: 2018-06-21T18:22:38Z
项目社区:https://github.com/dirmeier/greta.lme

开源协议:Other

下载


greta.lme

Project Status
Project Life
codecov
CRAN

a greta extension for hierarchical models

About

greta.lme is an extension package for greta to allow easier building of hierarchical models, such as mixed effect models.
For example, a normal hierarchical model using random intercepts for the iris data set in lme4 formula style:

  1. mod <- greta.glmer(Sepal.Length ~ Sepal.Width + (1 | Species), iris)
  2. sd <- inverse_gamma(1, 1)
  3. distribution(iris$Sepal.Length) <- normal(mod$predictor, sd)
  4. m <- model(mod$coef, mod$gamma)
  5. d <- mcmc(m)

Installation

  1. devtools::install_github("greta-dev/greta")
  2. devtools::install_github("dirmeier/greta.lme")

The current greta.lme release uses the same version numbers as the current greta release, such that it’s easier to see what works together, e.g.

  1. devtools::install_github("greta-dev/greta@0.3.0")
  2. devtools::install_github("dirmeier/greta.lme@0.3.0")

Author