list2gemm: Collapse a uniform list of 'gemm' objects.

Description Usage Arguments Details Value See Also Examples

View source: R/gemmquick.R

Description

list2gemm is used to generate a normal gemm object from a list of gemm objects with identical input options and n.chains = 1.

Usage

1
  list2gemm(gemm.list)

Arguments

gemm.list

a uniform list of gemm objects, as generated by a parallelizing function.

Details

Will generally only be used in conjunction with a parallel processing package, otherwise equivalent to specifying higher n.chains argument in gemm.

Value

Output is a standard gemm object.

See Also

gemm

Examples

1
2
3
4
5
6
7
8
  library(gemmR)
  data(mtcars)
  fit <- list()
  for (i in 1:3) {
      fit[[i]] <- gemm(mpg ~ disp + cyl, data = mtcars, n.chains = 1, n.gens = 3, n.beta = 200)
  }
  gemm.model <- list2gemm(fit)
  summary(gemm.model)

jchrszcz/gemmR documentation built on May 18, 2019, 10:24 p.m.