Extract the number of chains M.

extract_n_chains(stanfit)

Arguments

stanfit

An object returned by either fit or draw_samples.

Value

The number of chains M used to fit the model.