README.md

confdist is an R package for performing inference using confidence functions.

Catalog of Functions

Installation

To install confdist, run

install.packages('devtools') # Only if you haven't installed devtools already

devtools::install_github(ddarmon/confdist)

Usage

The functions in confdist are modeled after base R functions like t.test(), prop.test(), etc.

library(confdist)

# Construct confidence functions for a population mean.

conf <- t.conf(x = c(-2, -1, 0, 1, 2))

conf$pconf(0) # Right-sided P-value for mu = 0

1 - conf$pconf(0) # Left-sided P-value for mu = 0

1 - conf$cconf(0) # Two-sided P-value for mu = 0

conf$qconf(c(0.025, 0.975)) # 95% confidence interval for mu

References



ddarmon/confdist documentation built on Aug. 8, 2020, 4:44 p.m.