R/make_rstan_fit.R

Defines functions rstan_make_fit

Documented in rstan_make_fit

#' Build an rstan fit object from a modelfile and a data list
#'
#' @export
#' @param modelfile A stan model file
#' @param data Data for stan model
#' @return An rstan fit object
rstan_make_fit <- function(modelfile, data) {
  rstan::stan(modelfile, data = data, cores = 1, iter = 1)
}
jtimonen/stanbreaker documentation built on Jan. 20, 2021, 12:34 a.m.