display.dconf: A Wrapper Function for Plotting Confidence Densities

Description Usage Arguments Value References Examples

View source: R/plot.R

Description

A wrapper for plotting confidence densities using confidence objects returned by *.conf() functions from clp.

Usage

1
display.dconf(obj, xlim = NULL, xlab = NULL, col = "black", n.points = 2001)

Arguments

obj

a list of confidence functions returned by a *.conf() function

xlim

the horizontal limits for the plot. If NULL, taken as a 99.8% confidence interval.

xlab

the label for the horizontal axis

col

the color to plot the confidence curve

n.points

the number of points to plot for the confidence curve

Value

a plot of the confidence curve from obj

References

Tore Schweder and Nils Lid Hjort. Confidence, likelihood, probability. Vol. 41. Cambridge University Press, 2016.

Examples

1
2
3
4
5
6
7
data(dietstudy)

x <- dietstudy$weightchange[dietstudy$diet == 'Low Carb']

out <- t_test.conf(x, plot = FALSE)

display.dconf(out, xlab = 'Average Weight Loss in Low Carb Group (lbs)')

ddarmon/clp documentation built on Jan. 25, 2021, 6:22 p.m.