stan-dev / stan-dev/rstanarm

feature/car

Open
#207 38 comments 0 reactions 1 assignee View on GitHub

@imadmali is already working on this.

Since Jul 17, 2017.

feature
Dominant language
R
Stars
401
Forks
136
PR merge metrics
No merged PRs in 30d

Description

Starting an issue to track the feature/car branch which introduces the conditional autoregressive (CAR) class of spatial models into rstanarm.

Currently it looks like,

            ┌─── stan_besag.R ────┐
user ───────┤─── stan_bym.R  ─────├──── stan_spatial.fit.R ──── spatial.stan
            └─── stan_bym2.R ─────┘
  • stan_besag.R is the intrinsic conditional autoregressive (ICAR) model (i.e. just a GMRF with a sum-to-zero constraint.)
  • stan_bym.R is a CAR model which involves a convolution between the GMRF and noise.

Stuff to implement for the models above,

  • Stan model
  • QR Decomposition
  • Centering covariates
  • Optimize/VB
  • Print/Summary
  • Methods
  • Likelihoods (gauss/binom/pois/neg_binom/gamma)
  • Priors
  • Prior summary
  • Stanreg
  • Posterior predict and pp_check
  • Loo
  • Documentation
  • Vignette(s)
  • Tests
  • All sparse matrix operations should use the Matrix package
  • Drop INLA dependency (currently required to compute scaling_factor in stan_bym with INLA::inla.qinv)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.