resample_hankel | R Documentation |
The bootstrap distribution in the Hankel effective mass can be quite broad due to outliers and long tails. These screw with proper error estimation. Therefore it can be useful to trim these tails. Just trimming a bootstrap distribution would lead to less samples, therefore we do a parametric resampling.
resample_hankel(hankel_effmass, distance = 5)
hankel_effmass |
Hankel effective mass from |
distance |
Numeric, threshold for marking outliers. |
The central values are also inferred from the distribution because they often are outliers themselves. The new central value is the middle between the upper and lower quantile, making the resulting distribution symmetric.
Half the distance between the quantiles is taken to be the error, therefore the quantiles are chosen at 16 and 84 percent to match the standard deviation. All points that are more than “distance” errors away from the new central value are taken to be outliers.
The Hankel effmass object is returned with the same fields, the numbers have been changed.
Additionally there are the followi1ng fields:
cov_full
contains the full covariance matrix as determined from all the
data. This will be skewed by the outliers.
finite_count
gives the number of non-outliers per time slice.
complete_count
gives the numbers of complete cases if all outliers are
taken out. This number is often zero because the late time slices contain
lots of outliers due to the noise.
cov_3sigma_pairwise
is the covariance matrix using only the non-outliers
and removing NAs in a pairwise fashion, using the maximum of the data. This
is the covariance matrix that is used for the resampling.
In case that no time slices had a finite error estimate, this function
returns just NA
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.