Fit a CmdStan model using NUTS

i2p_sample(data, model = i2p_model(), diagnostics = TRUE, ...)

Arguments

data

A list of data as produced by enw_as_data_list().

model

A cmdstanr model object as loaded by enw_model().

diagnostics

Logical, defaults to TRUE. Should fitting diagnostics be returned as a data.frame.

...

Additional parameters passed to the sample method of cmdstanr.

Value

A data.frame containing the cmdstanr fit, the input data, the fitting arguments, and optionally summary diagnostics.

See also

Other model: i2p_model()