Extract the number of iterations kept after warmup.

extract_sample_size(stanfit)

Arguments

stanfit

An object returned by either fit or draw_samples.

Value

The number of iterations kept after warmup.