Visualize how changes in degrees of freedom affect the shape of the chi square distribution. Compute & visualize quantiles out of given probability and probability from a given quantile.

dist_chi_plot(df = 3, normal = FALSE)

dist_chi_perc(probs = 0.95, df = 3, type = c("lower", "upper"))

dist_chi_prob(perc, df, type = c("lower", "upper"))

Arguments

df

Degrees of freedom.

normal

If TRUE, normal curve with same mean and sd as the chi square distribution is drawn.

probs

Probability value.

type

Lower tail or upper tail.

perc

Quantile value.

Value

Percentile for the probs based on df and type or probability value for perc based on df and type.

Deprecated functions

chi_plot(), chi_prob() and chi_per() have been deprecated. Instead use dist_chi_plot(), dist_chi_prob() and dist_chi_perc().

See also

Examples

# visualize chi square distribution dist_chi_plot()
#> Warning: `dist_chi_plot()` has been soft deprecated and will be removed in the next version of descriptr. Please use the vistributions package for visualizing probability distributions.
dist_chi_plot(df = 5)
#> Warning: `dist_chi_plot()` has been soft deprecated and will be removed in the next version of descriptr. Please use the vistributions package for visualizing probability distributions.
dist_chi_plot(df = 5, normal = TRUE)
#> Warning: `dist_chi_plot()` has been soft deprecated and will be removed in the next version of descriptr. Please use the vistributions package for visualizing probability distributions.
# visualize quantiles out of given probability dist_chi_perc(0.165, 8, 'upper')
#> Warning: `dist_chi_perc()` has been soft deprecated and will be removed in the next version of descriptr. Please use the vistributions package for visualizing probability distributions.
dist_chi_perc(0.22, 13, 'upper')
#> Warning: `dist_chi_perc()` has been soft deprecated and will be removed in the next version of descriptr. Please use the vistributions package for visualizing probability distributions.
# visualize probability from a given quantile. dist_chi_prob(13.58, 11, 'lower')
#> Warning: `dist_chi_prob()` has been soft deprecated and will be removed in the next version of descriptr. Please use the vistributions package for visualizing probability distributions.
dist_chi_prob(15.72, 13, 'upper')
#> Warning: `dist_chi_prob()` has been soft deprecated and will be removed in the next version of descriptr. Please use the vistributions package for visualizing probability distributions.