Estimates values for a QQ plot of Empirical values against Theoretical values from a normal distribution, for either the chain points or the distances between successive points. Optionally, returns a plot as well as the values.
Usage
calc_qqplot(chain, change = TRUE, plot = FALSE)
Value
A list with the theoretical and empirical quantiles, and the intercept and slope of the line connecting the points
Arguments
chain
Vector of n length, where n is the number of trials or sampler iterations
change
Boolean. If false, it calculates a qqplot of the given chain. If true, it creates a chain of step sizes.
plot
Boolean. Whether to plot the QQ plot or just return the values.