fit_model: Fit a stan model with cmdstanr default fitting setup

View source: R/stan_fit.R

fit_modelR Documentation

Fit a stan model with cmdstanr default fitting setup

Description

A wrapper around cmdstanr::cmdstan_model

Usage

fit_model(
  stan_data,
  model_file,
  summary_only = T,
  iter_warmup = 2000,
  iter_sampling = 2000,
  chains = 2,
  parallel_chains = 2,
  refresh = 500,
  seed = 1,
  ...
)

Arguments

stan_data

A list with data, formatted for the stan model

model_file

(char) model path

summary_only

(bool)

iter_warmup

(int) warmup interations

iter_sampling

(int) sampling iterations

chains

(int) number of chains

parallel_chains

(int) how many chains in parallel

refresh

(int) how often to print info

seed

(int) seed


SpTB/wztools documentation built on July 2, 2023, 11:50 a.m.