Learn R Programming

clmstan (version 0.1.1)

prepare_stan_data_dispatch: Dispatch to appropriate data preparation function

Description

Routes to the correct prepare function based on threshold structure and whether link parameters are being estimated.

Usage

prepare_stan_data_dispatch(
  formula,
  data,
  link,
  base,
  link_param,
  threshold,
  full,
  prior
)

Value

A list suitable for passing to CmdStan

Arguments

formula

A formula specifying the model

data

A data frame containing the variables

link

Link function name

base

Base distribution for SP link

link_param

A list of link parameters

threshold

Threshold structure

full

Whether to use full model (estimate link parameters)

prior

A clm_prior object or NULL for default priors