How to skip the iterations samples in rstan programming code?

I think you mean to specify `refresh = 0`

when you call `stan`

.

Thanks. Can you explain what it means?

It means don’t output all the stuff like

```
starting worker pid=15930 on localhost:11660 at 01:59:33.961
starting worker pid=15939 on localhost:11660 at 01:59:34.221
starting worker pid=15948 on localhost:11660 at 01:59:34.549
starting worker pid=15957 on localhost:11660 at 01:59:34.837
SAMPLING FOR MODEL 'lm' NOW (CHAIN 1).
Chain 1:
Chain 1: Gradient evaluation took 2.2e-05 seconds
Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.22 seconds.
Chain 1: Adjust your expectations accordingly!
Chain 1:
Chain 1:
Chain 1: Iteration: 1 / 2000 [ 0%] (Warmup)
Chain 1: Iteration: 200 / 2000 [ 10%] (Warmup)
SAMPLING FOR MODEL 'lm' NOW (CHAIN 2).
Chain 2:
Chain 2: Gradient evaluation took 3e-05 seconds
Chain 2: 1000 transitions using 10 leapfrog steps per transition would take 0.3 seconds.
Chain 2: Adjust your expectations accordingly!
Chain 2:
Chain 2:
Chain 2: Iteration: 1 / 2000 [ 0%] (Warmup)
Chain 2: Iteration: 200 / 2000 [ 10%] (Warmup)
SAMPLING FOR MODEL 'lm' NOW (CHAIN 3).
Chain 3:
Chain 3: Gradient evaluation took 2.9e-05 seconds
Chain 3: 1000 transitions using 10 leapfrog steps per transition would take 0.29 seconds.
Chain 3: Adjust your expectations accordingly!
Chain 3:
Chain 3:
Chain 3: Iteration: 1 / 2000 [ 0%] (Warmup)
Chain 3: Iteration: 200 / 2000 [ 10%] (Warmup)
...
```

Thanks. But I need to skip the steps in iteration for rstan?

If you mean “thinning” the Markov Chains, then you almost certainly do not need to thin the output of Markov Chains produced by Stan. It tends to make the effective sample size worse, so it is only necessary in extreme situations where there is not enough RAM.