Learn R Programming

clmstan (version 0.1.1)

new_clmstan: Create a clmstan object (internal constructor)

Description

This is an internal constructor called by clm_stan(). Users should not call this function directly.

Usage

new_clmstan(
  fit,
  formula,
  data,
  link,
  base,
  threshold,
  link_param = NULL,
  full = FALSE,
  K,
  N,
  P
)

Value

An object of class "clmstan"

Arguments

fit

A CmdStanMCMC object

formula

The model formula

data

The original data

link

The link function

base

The base distribution (for SP link)

threshold

The threshold structure

link_param

Link parameter settings

full

Whether full model was used

K

Number of categories

N

Number of observations

P

Number of predictors