chisq.simu.plot {clttools} | R Documentation |
Histogram and Q-Q plot of simulated Chi-Squared distribution
chisq.simu.plot(n, df, times, ylim = NULL, qqplot = FALSE)
n |
number of trials in one simulation |
df |
degrees of freedom (non-negative, but can be non-integer) |
times |
number of simulations |
ylim |
range of y-axis |
qqplot |
an argument to output Q-Q plot or not, can be TRUE or FALSE |
Histogram and Q-Q plot of simulated Chi-Squared distribution, red curve represents theoretical density
chisq.simu.plot(n = 5, df = 4, times = 100)