plot_qqplot: QQ-Plotter

Description Usage Arguments Value Examples

View source: R/plotters.R

Description

Plots a QQ plot of Empirical values against Theoretical values from a normal distribution. Can plot the chain points or the distances between successive points

Usage

1
plot_qqplot(chain, change = TRUE)

Arguments

chain

Vector of n length, where n is the number of trials or sampler iterations

change

Boolean. If false, it plots a qqplot of the given chain. If true, it creates a chain of step sizes (using change_1d)

Value

QQ plot of Theoretical vs Empirical values

Examples

1
2
3
4
target <- distr::Norm()
pd_func <- make_distr_pdf(target)
chain1 <- sampler_mcmc(pd_func, 0, sigma_prop = 1)
plot_qqplot(chain1[[1]])

lucas-castillo/SampleR documentation built on Jan. 1, 2021, 8:25 a.m.