Checks if thin is consistent with nTotalSamples samples and if not corrects it.
correctThin(nTotalSamples, thin, autoThinFraction = 0.001)
total number of rows/samples
thinning
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.
Tankred Ott
Checks if the thin argument is consistent with the data consisting of nTotalSamples samples/rows and corrects thin if not.