Checks if thin is conistent with nTotalSamples samples and if not corrects it.
correctThin(nTotalSamples, thin, autoThinFraction = 0.001)
nTotalSamples | total number of rows/samples |
---|---|
thin | thinning |
autoThinFraction | fraction of the data that will be sampled when thin is set to "auto". E.g. 0.5 means thin will be nTotalSamples * 0.5. The resulting thin value is rounded down to the next integer. |
Checks if the thin argument is consistent with the data consisting of nTotalSamples samples/rows and corrects thin if not.