rwe_stan: Call STAN models

View source: R/psrwe_powerprior.R

rwe_stanR Documentation

Call STAN models

Description

Call STAN models. Called by psrwe_powerp.

Usage

rwe_stan(
  lst_data,
  stan_mdl = c("powerps", "powerpsbinary", "powerp"),
  chains = 4,
  iter = 2000,
  warmup = 1000,
  control = list(adapt_delta = 0.95),
  ...
)

Arguments

lst_data

List of study data to be passed to STAN

stan_mdl

STAN model including

powerps

PS-power prior model for continuous outcomes

powerpsbinary

PS-power prior model for binary outcomes

powerp

Power prior model

chains

STAN parameter. Number of Markov chainsm

iter

STAN parameter. Number of iterations

warmup

STAN parameter. Number of burnin.

control

STAN parameter. See rstan::stan for details.

...

other options to call STAN sampling such as thin, algorithm. See rstan::sampling for details.#'

Value

Result from STAN sampling


psrwe documentation built on March 18, 2022, 5:33 p.m.