McmcdbWide-methods: Create 'McmcdbWide' objects

Description Arguments Value Examples

Description

Create McmcdbWide objects from stanfit objects produced by stan.

Arguments

object

An object for which a method is available.

Value

An object of class McmcdbWide.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
# Convert stanfit object
library(rstan)
scode <- "
     parameters {
       real y[2];
     }
     model {
       y[1] ~ normal(0, 1);
       y[2] ~ double_exponential(0, 2);
     }
     "
fit1 <- stan(model_code = scode, iter = 10, verbose = FALSE)
fit2 <- McmcdbWide(fit1)

## End(Not run)

jrnold/mcmcdbStan documentation built on May 20, 2019, 1:04 a.m.