confintr

R 패키지 메타데이터와 수집 신호를 모아 봅니다.

Packages / CRAN / confintr

confintr

v1.0.2
confintr
Repository CRANLicense GPL (>= 2)Lifecycle activeNeeds compilation no
DOI
10.32614/CRAN.package.confintr
Reverse imports
118

Core Signals

첫 화면에서 판단해야 할 수집 신호를 먼저 배치합니다.

1
Reverse imports
118

Supported Backends

DESCRIPTION에서 감지한 backend 관련 package입니다.

0
backend package 신호가 없습니다.

Quick Facts

기본 메타데이터를 작은 카드와 토큰으로 압축합니다.

profile
Repository
CRAN
Version
1.0.2
License
GPL (>= 2)
Lifecycle
active
Needs compilation
no
Reverse imports
118
Last observed
2026-05-30
CRAN
cran.r-project.org/package=confintr

수집 소스별 패키지 정보

1개 소스
CRAN
1.0.2
2026-05-30
License
GPL (>= 2)
Depends
R (>= 3.1.0)
Imports
boot, stats
Suggests
knitr, rmarkdown, testthat (>= 3.0.0)
Needs compilation
no
Reverse imports
118
Lifecycle
active
Last observed
2026-05-30 10:45:11

이 패키지가 의존하는 패키지

5개 표시전체 5개
PackageTypeSpec
boot
CRAN · 1.0.2 · 2026-05-30
Importsboot
stats
CRAN · 1.0.2 · 2026-05-30
Importsstats
knitr
CRAN · 1.0.2 · 2026-05-30
Suggestsknitr
rmarkdown
CRAN · 1.0.2 · 2026-05-30
Suggestsrmarkdown
testthat
CRAN · 1.0.2 · 2026-05-30
Suggeststestthat (>= 3.0.0)
1 / 1

이 패키지를 쓰는 패키지

3개 표시전체 3개
PackageTypeSpec
ggpmisc
0.7.0
CRAN · 2026-05-30
Importsconfintr (>= 1.0.2)
metaHelper
1.0.0
CRAN · 2026-05-30
Importsconfintr
metainc
0.2-1
CRAN · 2026-05-30
Importsconfintr
1 / 1

Reverse dependency summary

1 types
TypePackages
Imports3

패키지 페이지

Reverse imports
6
All links
31
Repository
CRAN
Version
1.0.2
Collected
2026-05-22 07:01:29
Package page
https://cran.r-project.org/web/packages/confintr/index.html
DOI
10.32614/CRAN.package.confintr
CRAN checks
https://cran.r-project.org/web/checks/check_results_confintr.html
README
https://cran.r-project.org/web/packages/confintr/readme/README.html
NEWS
https://cran.r-project.org/web/packages/confintr/news/news.html
Reference HTML
https://cran.r-project.org/web/packages/confintr/refman/confintr.html
Reference PDF
https://cran.r-project.org/web/packages/confintr/confintr.pdf
Source package
https://cran.r-project.org/src/contrib/confintr_1.0.2.tar.gz
Archive
https://CRAN.R-project.org/src/contrib/Archive/confintr
Page fields
Author
Michael Mayer [aut, cre]
BugReports
https://github.com/mayer79/confintr/issues
CRAN Checks
confintr results
DOI
10.32614/CRAN.package.confintr
License
GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
Maintainer
Michael Mayer <mayermichael79 at gmail.com>
Materials
README , NEWS
NeedsCompilation
no
Old Sources
confintr archive
Package Source
confintr_1.0.2.tar.gz
Published
2023-06-04
Reference Manual
confintr.html , confintr.pdf
Reverse Imports
ggpmisc , metaHelper , metainc
URL
https://github.com/mayer79/confintr
Version
1.0.2
Vignettes
Using 'confintr' ( source , R code )
Windows Binaries
r-devel: confintr_1.0.2.zip , r-release: confintr_1.0.2.zip , r-oldrel: confintr_1.0.2.zip
MacOS Binaries
r-release (arm64): confintr_1.0.2.tgz , r-oldrel (arm64): confintr_1.0.2.tgz , r-release (x86_64): confintr_1.0.2.tgz , r-oldrel (x86_64): confintr_1.0.2.tgz
Version
1.0.2
Published
2023-06-04
DOI
10.32614/CRAN.package.confintr
Author
Michael Mayer [aut, cre]
Maintainer
Michael Mayer <mayermichael79 at gmail.com>
BugReports
https://github.com/mayer79/confintr/issues
License
GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL
https://github.com/mayer79/confintr
NeedsCompilation
no
Materials
README , NEWS
CRAN Checks
confintr results
Reference Manual
confintr.html , confintr.pdf
Vignettes
Using 'confintr' ( source , R code )
Package Source
confintr_1.0.2.tar.gz
Windows Binaries
r-devel: confintr_1.0.2.zip , r-release: confintr_1.0.2.zip , r-oldrel: confintr_1.0.2.zip
MacOS Binaries
r-release (arm64): confintr_1.0.2.tgz , r-oldrel (arm64): confintr_1.0.2.tgz , r-release (x86_64): confintr_1.0.2.tgz , r-oldrel (x86_64): confintr_1.0.2.tgz
Old Sources
confintr archive
Reverse Imports
ggpmisc , metaHelper , metainc
Page sections 4
Documentation
Heading
Documentation
Links
[{"label":"confintr.html","section":"","type":"","url":"https://cran.r-project.org/web/packages/confintr/refman/confintr.html"},{"label":"confintr.pdf","section":"","type":"","url":"https://cran.r-project.org/web/packages/confintr/confintr.pdf"},{"label":"Using 'confintr'","section":"","type":"","url":"https://cran.r-project.org/web/packages/confintr/vignettes/confintr.html"},{"label":"source","section":"","type":"","url":"https://cran.r-project.org/web/packages/confintr/vignettes/confintr.Rmd"},{"label":"R code","section":"","type":"","url":"https://cran.r-project.org/web/packages/confintr/vignettes/confintr.R"}]
Text
Reference manual: confintr.html , confintr.pdf Vignettes: Using 'confintr' ( source , R code )
Downloads
Heading
Downloads
Links
[{"label":"confintr_1.0.2.tar.gz","section":"","type":"","url":"https://cran.r-project.org/src/contrib/confintr_1.0.2.tar.gz"},{"label":"confintr_1.0.2.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.7/confintr_1.0.2.zip"},{"label":"confintr_1.0.2.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.6/confintr_1.0.2.zip"},{"label":"confintr_1.0.2.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.5/confintr_1.0.2.zip"},{"label":"confintr_1.0.2.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/sonoma-arm64/contrib/4.6/confintr_1.0.2.tgz"},{"label":"confintr_1.0.2.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-arm64/contrib/4.5/confintr_1.0.2.tgz"},{"label":"confintr_1.0.2.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.6/confintr_1.0.2.tgz"},{"label":"confintr_1.0.2.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.5/confintr_1.0.2.tgz"},{"label":"confintr archive","section":"","type":"","url":"https://CRAN.R-project.org/src/contrib/Archive/confintr"}]
Text
Package source: confintr_1.0.2.tar.gz Windows binaries: r-devel: confintr_1.0.2.zip , r-release: confintr_1.0.2.zip , r-oldrel: confintr_1.0.2.zip macOS binaries: r-release (arm64): confintr_1.0.2.tgz , r-oldrel (arm64): confintr_1.0.2.tgz , r-release (x86_64): confintr_1.0.2.tgz , r-oldrel (x86_64): confintr_1.0.2.tgz Old sources: confintr archive
Reverse dependencies
Heading
Reverse dependencies
Links
[{"label":"ggpmisc","section":"","type":"","url":"https://cran.r-project.org/web/packages/ggpmisc/index.html"},{"label":"metaHelper","section":"","type":"","url":"https://cran.r-project.org/web/packages/metaHelper/index.html"},{"label":"metainc","section":"","type":"","url":"https://cran.r-project.org/web/packages/metainc/index.html"}]
Text
Reverse imports: ggpmisc , metaHelper , metainc
Linking
Heading
Linking
Links
[{"label":"https://CRAN.R-project.org/package=confintr","section":"","type":"","url":"https://CRAN.R-project.org/package=confintr"}]
Text
Please use the canonical form https://CRAN.R-project.org/package=confintr to link to this page.
Materials 2
Documentation 5
Vignettes 3
Downloads 9
All page links 31

패키지 문서 원문

4 artifacts
field
NEWS
CRAN · 1.0.2 · Materials · text/html · 3,773 · 2026-05-07
Title
NEWS
Label
NEWS
Text content
Text content
NEWS code{white-space: pre-wrap;} span.smallcaps{font-variant: small-caps;} span.underline{text-decoration: underline;} div.column{display: inline-block; vertical-align: top; width: 50%;} div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} ul.task-list{list-style: none;} confintr 1.0.2 Maintenance Fix Latex problem in MacOS help files. Slight corrections in the documentation. confintr 1.0.1 Maintenance Less redundancies in help files Using Latex formulas in help files confintr 1.0.0 This is a large maintenance update, bumping the package to stable version 1.0.0. User visible changes Replaced the term “symmetric” by the better “equal-tailed”. Similarly, we now output “unequal-tailed” instead of “asymmetric”. By “equal-tailed”, we mean that the upper and lower error probabilies agree, not that the interval is symmetric around the estimate. This has no impact on the resulting numbers, only on the text (if you ever used unequal-tailed intervals). Maintenance Reorganisation of code files More compact help files Greatly improved unit tests Modern code formatting style Using package::function() notation instead of importFrom package function Introduction of Github actions New Gitpage confintr 0.2.0 Bug fix Fixes a mistake in the calculation of studentized bootstrap CIs, impacting ci_mean() , ci_mean_diff() , ci_var() , ci_sd() , and ci_proportion() when used together with the options type = "bootstrap" and boot_type = "stud" . The studentized bootstrap is the default boot_type for ci_mean() and ci_mean_diff() . The mistake happened in calculating the pivotal quantity, not in the statistic itself. Thus, the affected confidence intervals will usually only be slightly off. Explanation “confintr” uses the “boot” package as backend for calculating bootstrap confidence intervals. To calculate studentized confidence bootstrap intervals, boot() requires a function that provides two values: the statistic of interest and its variance . The “confintr” package passed the standard deviation instead of the variance. confintr 0.1.2 This is a maintenance release only, getting rid of the CRAN note on LazyData, updating to testthat v3, and using a more elegant way to generate/update the package. confintr 0.1.1 Added confidence intervals for the odds ratio via stats::fisher.test. Fixed wrong VignetteIndexEntry. confintr 0.1.0 This is the initial CRAN release.
field
README
CRAN · 1.0.2 · Materials · text/html · 17,878 · 2026-05-07
Title
README
Label
README
Text content
Text content
README code{white-space: pre-wrap;} span.smallcaps{font-variant: small-caps;} span.underline{text-decoration: underline;} div.column{display: inline-block; vertical-align: top; width: 50%;} div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} ul.task-list{list-style: none;} pre > code.sourceCode { white-space: pre; position: relative; } pre > code.sourceCode > span { display: inline-block; line-height: 1.25; } pre > code.sourceCode > span:empty { height: 1.2em; } .sourceCode { overflow: visible; } code.sourceCode > span { color: inherit; text-decoration: inherit; } div.sourceCode { margin: 1em 0; } pre.sourceCode { margin: 0; } @media screen { div.sourceCode { overflow: auto; } } @media print { pre > code.sourceCode { white-space: pre-wrap; } pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; } } pre.numberSource code { counter-reset: source-line 0; } pre.numberSource code > span { position: relative; left: -4em; counter-increment: source-line; } pre.numberSource code > span > a:first-child::before { content: counter(source-line); position: relative; left: -1em; text-align: right; vertical-align: baseline; border: none; display: inline-block; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; padding: 0 4px; width: 4em; color: #aaaaaa; } pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; } div.sourceCode { } @media screen { pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; } } code span.al { color: #ff0000; font-weight: bold; } /* Alert */ code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */ code span.at { color: #7d9029; } /* Attribute */ code span.bn { color: #40a070; } /* BaseN */ code span.bu { color: #008000; } /* BuiltIn */ code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */ code span.ch { color: #4070a0; } /* Char */ code span.cn { color: #880000; } /* Constant */ code span.co { color: #60a0b0; font-style: italic; } /* Comment */ code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */ code span.do { color: #ba2121; font-style: italic; } /* Documentation */ code span.dt { color: #902000; } /* DataType */ code span.dv { color: #40a070; } /* DecVal */ code span.er { color: #ff0000; font-weight: bold; } /* Error */ code span.ex { } /* Extension */ code span.fl { color: #40a070; } /* Float */ code span.fu { color: #06287e; } /* Function */ code span.im { color: #008000; font-weight: bold; } /* Import */ code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */ code span.kw { color: #007020; font-weight: bold; } /* Keyword */ code span.op { color: #666666; } /* Operator */ code span.ot { color: #007020; } /* Other */ code span.pp { color: #bc7a00; } /* Preprocessor */ code span.sc { color: #4070a0; } /* SpecialChar */ code span.ss { color: #bb6688; } /* SpecialString */ code span.st { color: #4070a0; } /* String */ code span.va { color: #19177c; } /* Variable */ code span.vs { color: #4070a0; } /* VerbatimString */ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */ {confintr} Overview {confintr} offers classic and/or bootstrap confidence intervals (CI) for the following parameters: mean, quantiles incl. median, proportion, variance and standard deviation, IQR and MAD, skewness and kurtosis, R-squared and the non-centrality parameter of the F distribution, Cramér’s V and the non-centrality parameter of the chi-squared distribution, odds ratio of a 2x2 table, Pearson-, Spearman-, Kendall correlation coefficients, mean differences, quantile and median differences. Both one- and two-sided intervals are supported. Different types of bootstrap intervals are available via {boot}, see vignette. Installation # From CRAN install.packages ( "confintr" ) # Development version devtools :: install_github ( "mayer79/confintr" ) Usage library (confintr) set.seed ( 1 ) # Mean ci_mean ( 1 : 100 ) # Two-sided 95% t confidence interval for the population mean # # Sample estimate: 50.5 # Confidence interval: # 2.5% 97.5% # 44.74349 56.25651 # Mean using the Bootstrap ci_mean ( 1 : 100 , type = "bootstrap" ) # Two-sided 95% bootstrap confidence interval for the population mean # based on 9999 bootstrap replications and the student method # # Sample estimate: 50.5 # Confidence interval: # 2.5% 97.5% # 44.72913 56.34685 # 95% value at risk ci_quantile ( rexp ( 1000 ), q = 0.95 ) # Two-sided 95% binomial confidence interval for the population 95% # quantile # # Sample estimate: 2.954119 # Confidence interval: # 2.5% 97.5% # 2.745526 3.499928 # Mean difference ci_mean_diff ( 1 : 100 , 2 : 101 ) # Two-sided 95% t confidence interval for the population value of mean(x)-mean(y) # # Sample estimate: -1 # Confidence interval: # 2.5% 97.5% # -9.090881 7.090881 ci_mean_diff ( 1 : 100 , 2 : 101 , type = "bootstrap" , seed = 1 ) # Two-sided 95% bootstrap confidence interval for the population value of mean(x)-mean(y) # based on 9999 bootstrap replications and the student method # # Sample estimate: -1 # Confidence interval: # 2.5% 97.5% # -9.057506 7.092050 # Further examples (without output) # Correlation ci_cor (iris[ 1 : 2 ], method = "spearman" , type = "bootstrap" ) # Proportions ci_proportion ( 10 , n = 100 , type = "Wilson" ) ci_proportion ( 10 , n = 100 , type = "Clopper-Pearson" ) # R-squared fit <- lm (Sepal.Length ~ ., data = iris) ci_rsquared (fit, probs = c ( 0.05 , 1 )) # Kurtosis ci_kurtosis ( 1 : 100 ) # Mean difference ci_mean_diff ( 10 : 30 , 1 : 15 ) ci_mean_diff ( 10 : 30 , 1 : 15 , type = "bootstrap" ) # Median difference ci_median_diff ( 10 : 30 , 1 : 15 )
reference_manual_html
Reference manual HTML
CRAN · 1.0.2 · Documentation · text/html · 60,234 · 2026-05-07
Title
Help for package confintr
Label
Reference manual HTML
Text content
Text content
Help for package confintr const macros = { "\\R": "\\textsf{R}", "\\mbox": "\\text", "\\code": "\\texttt"}; function processMathHTML() { var l = document.getElementsByClassName('reqn'); for (let e of l) { katex.render(e.textContent, e, { throwOnError: false, macros }); } return; } Package {confintr} Contents ci_IQR ci_chisq_ncp ci_cor ci_cramersv ci_f_ncp ci_kurtosis ci_mad ci_mean ci_mean_diff ci_median ci_median_diff ci_oddsratio ci_proportion ci_quantile ci_quantile_diff ci_rsquared ci_sd ci_skewness ci_var cramersv is.cint kurtosis moment oddsratio print.cint se skewness Title: Confidence Intervals Version: 1.0.2 Description: Calculates classic and/or bootstrap confidence intervals for many parameters such as the population mean, variance, interquartile range (IQR), median absolute deviation (MAD), skewness, kurtosis, Cramer's V, odds ratio, R-squared, quantiles (incl. median), proportions, different types of correlation measures, difference in means, quantiles and medians. Many of the classic confidence intervals are described in Smithson, M. (2003, ISBN: 978-0761924999). Bootstrap confidence intervals are calculated with the R package 'boot'. Both one- and two-sided intervals are supported. License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] Depends: R (≥ 3.1.0) Encoding: UTF-8 RoxygenNote: 7.2.3 Imports: boot, stats Suggests: knitr, rmarkdown, testthat (≥ 3.0.0) VignetteBuilder: knitr Config/testthat/edition: 3 URL: https://github.com/mayer79/confintr BugReports: https://github.com/mayer79/confintr/issues NeedsCompilation: no Packaged: 2023-06-04 17:59:31 UTC; Michael Author: Michael Mayer [aut, cre] Maintainer: Michael Mayer <mayermichael79@gmail.com> Repository: CRAN Date/Publication: 2023-06-04 18:40:02 UTC CI for the IQR Description This function calculates bootstrap CIs (by default "bca") for the population interquartile range (IQR), i.e., the difference between first and third quartile. Usage ci_IQR( x, probs = c(0.025, 0.975), type = "bootstrap", boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... ) Arguments x A numeric vector. probs Lower and upper probabilities, by default c(0.025, 0.975) . type Type of CI. Currently not used as the only type is "bootstrap" . boot_type Type of bootstrap CI c("bca", "perc", "norm", "basic"). R The number of bootstrap resamples. Only used for type = "bootstrap" . seed An integer random seed. Only used for type = "bootstrap" . ... Further arguments passed to boot::boot() . Value An object of class "cint", see ci_mean() for details. Examples x <- rnorm(100) ci_IQR(x, R = 999) # Use larger R CI for the NCP of the Chi-Squared Distribution Description This function calculates CIs for the non-centrality parameter (NCP) of the \chi^2 -distribution. A positive lower (1 - \alpha) \cdot 100\% -confidence limit for the NCP goes hand-in-hand with a significant association test at level \alpha . Usage ci_chisq_ncp( x, probs = c(0.025, 0.975), correct = TRUE, type = c("chi-squared", "bootstrap"), boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... ) Arguments x The result of stats::chisq.test() , a matrix/table of counts, or a data.frame with exactly two columns representing the two variables. probs Lower and upper probabilities, by default c(0.025, 0.975) . correct Should Yates continuity correction be applied to the 2x2 case? The default is TRUE (also used in the bootstrap), which differs from ci_cramersv() . type Type of CI. One of "chi-squared" (default) or "bootstrap". boot_type Type of bootstrap CI. Only used for type = "bootstrap" . R The number of bootstrap resamples. Only used for type = "bootstrap" . seed An integer random seed. Only used for type = "bootstrap" . ... Further arguments passed to boot::boot() . Details By default, CIs are computed by Chi-squared test inversion. This can be unreliable for very large test statistics. The default bootstrap type is "bca". Value An object of class "cint", see ci_mean() for details. References Smithson, M. (2003). Confidence intervals. Series: Quantitative Applications in the Social Sciences. New York, NY: Sage Publications. See Also ci_cramersv() Examples ci_chisq_ncp(mtcars[c("am", "vs")]) ci_chisq_ncp(mtcars[c("am", "vs")], type = "bootstrap", R = 999) # Use larger R CI for Correlation Coefficients Description This function calculates CIs for a population correlation coefficient. For Pearson correlation, "normal" CIs are available (by stats::cor.test() ). Also bootstrap CIs are supported (by default "bca", and the only option for rank correlations). Usage ci_cor( x, y = NULL, probs = c(0.025, 0.975), method = c("pearson", "kendall", "spearman"), type = c("normal", "bootstrap"), boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... ) Arguments x A numeric vector or a matrix / data.frame with exactly two numeric columns. y A numeric vector (only used if x is a vector). probs Lower and upper probabilities, by default c(0.025, 0.975) . method Type of correlation coefficient, one of "pearson" (default), "kendall", or "spearman". For the latter two, only bootstrap CIs are supported. type Type of CI. One of "normal" (the default) or "bootstrap" (the only option for rank-correlations). boot_type Type of bootstrap CI. Only used for type = "bootstrap" . R The number of bootstrap resamples. Only used for type = "bootstrap" . seed An integer random seed. Only used for type = "bootstrap" . ... Further arguments passed to boot::boot() . Value An object of class "cint", see ci_mean() for details. Examples ci_cor(iris[1:2]) ci_cor(iris[1:2], type = "bootstrap", R = 999) # Use larger R ci_cor(iris[1:2], method = "spearman", type = "bootstrap", R = 999) # Use larger R CI for the Population Cramer's V Description This function calculates CIs for the population Cramer's V. By default, a parametric approach based on the non-centrality parameter (NCP) of the chi-squared distribution is utilized. Alternatively, bootstrap CIs are available (default "bca"), also by boostrapping CIs for the NCP and then mapping the result back to Cramer's V. Usage ci_cramersv( x, probs = c(0.025, 0.975), type = c("chi-squared", "bootstrap"), boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, test_adjustment = TRUE, ... ) Arguments x The result of stats::chisq.test() , a matrix/table of counts, or a data.frame with exactly two columns representing the two variables. probs Lower and upper probabilities, by default c(0.025, 0.975) . type Type of CI. One of "chi-squared" (default) or "bootstrap". boot_type Type of bootstrap CI. Only used for type = "bootstrap" . R The number of bootstrap resamples. Only used for type = "bootstrap" . seed An integer random seed. Only used for type = "bootstrap" . test_adjustment Adjustment to allow for test of association, see Details. The default is TRUE . ... Further arguments passed to boot::boot() . Details A positive lower (1 - \alpha) \cdot 100\% -confidence limit for the NCP goes hand-in-hand with a significant association test at level \alpha . In order to allow such test approach also with Cramer's V, if the lower bound for the NCP is 0, we round down to 0 the lower bound for Cramer's V as well. Without this slightly conservative adjustment, the lower limit for V would always be positive since the CI for V is found by \sqrt{(\textrm{CI for NCP} + \textrm{df})/(n \cdot (k - 1))} , where k is the smaller number of levels in the two variables (see Smithson, p.40). Use test_adjustment = FALSE to switch off this behaviour. Note that this is also a reason to bootstrap V via NCP instead of directly bootstrapping V. Further note that no continuity correction is applied for 2x2 tables, and that large chi-squared test statistics might provide unreliable results with method "chi-squared", see stats::pchisq() . Value An object of class "cint", see ci_mean() for details. References Smithson, M. (2003). Confidence intervals. Series: Quantitative Applications in the Social Sciences. New Yo
section
confintr.pdf
CRAN · 1.0.2 · Documentation · application/pdf · 193,795 · 2026-05-07
Title
confintr.pdf
Label
confintr.pdf

Reference for confintr (1.0.2)

27개 topic
ci_IQR
CI for the IQR
CRAN · 1.0.2 · confintr/man/ci_IQR.Rd · 2026-05-07

This function calculates bootstrap CIs (by default "bca") for the population interquartile range (IQR), i.e., the difference between first and third quartile.

Aliases
ci_IQR
Usage
ci_IQR( x, probs = c(0.025, 0.975), type = "bootstrap", boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
A numeric vector.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
type
Type of CI. Currently not used as the only type is "bootstrap".
boot_type
Type of bootstrap CI c("bca", "perc", "norm", "basic").
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
x <- rnorm(100) ci_IQR(x, R = 999) # Use larger R
ci_chisq_ncp
CI for the NCP of the Chi-Squared Distribution
CRAN · 1.0.2 · confintr/man/ci_chisq_ncp.Rd · 2026-05-07

This function calculates CIs for the non-centrality parameter (NCP) of the ^2-distribution. A positive lower (1 - ) 100%-confidence limit for the NCP goes hand-in-hand with a significant association test at level .

Aliases
ci_chisq_ncp
Usage
ci_chisq_ncp( x, probs = c(0.025, 0.975), correct = TRUE, type = c("chi-squared", "bootstrap"), boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
The result of [stats:chisq.test]stats::chisq.test(), a matrix/table of counts, or a data.frame with exactly two columns representing the two variables.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
correct
Should Yates continuity correction be applied to the 2x2 case? The default is TRUE (also used in the bootstrap), which differs from [=ci_cramersv]ci_cramersv().
type
Type of CI. One of "chi-squared" (default) or "bootstrap".
boot_type
Type of bootstrap CI. Only used for type = "bootstrap".
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Details
By default, CIs are computed by Chi-squared test inversion. This can be unreliable for very large test statistics. The default bootstrap type is "bca".
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
ci_chisq_ncp(mtcars[c("am", "vs")]) ci_chisq_ncp(mtcars[c("am", "vs")], type = "bootstrap", R = 999) # Use larger R
See also
[=ci_cramersv]ci_cramersv()
References
Smithson, M. (2003). Confidence intervals. Series: Quantitative Applications in the Social Sciences. New York, NY: Sage Publications.
ci_cor
CI for Correlation Coefficients
CRAN · 1.0.2 · confintr/man/ci_cor.Rd · 2026-05-07

This function calculates CIs for a population correlation coefficient. For Pearson correlation, "normal" CIs are available (by [stats:cor.test]stats::cor.test()). Also bootstrap CIs are supported (by default "bca", and the only option for rank correlations).

Aliases
ci_cor
Usage
ci_cor( x, y = NULL, probs = c(0.025, 0.975), method = c("pearson", "kendall", "spearman"), type = c("normal", "bootstrap"), boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
A numeric vector or a matrix/data.frame with exactly two numeric columns.
y
A numeric vector (only used if x is a vector).
probs
Lower and upper probabilities, by default c(0.025, 0.975).
method
Type of correlation coefficient, one of "pearson" (default), "kendall", or "spearman". For the latter two, only bootstrap CIs are supported.
type
Type of CI. One of "normal" (the default) or "bootstrap" (the only option for rank-correlations).
boot_type
Type of bootstrap CI. Only used for type = "bootstrap".
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
ci_cor(iris[1:2]) ci_cor(iris[1:2], type = "bootstrap", R = 999) # Use larger R ci_cor(iris[1:2], method = "spearman", type = "bootstrap", R = 999) # Use larger R
ci_cramersv
CI for the Population Cramer's V
CRAN · 1.0.2 · confintr/man/ci_cramersv.Rd · 2026-05-07

This function calculates CIs for the population Cramer's V. By default, a parametric approach based on the non-centrality parameter (NCP) of the chi-squared distribution is utilized. Alternatively, bootstrap CIs are available (default "bca"), also by boostrapping CIs for the NCP and then mapping the result back to Cramer's V.

Aliases
ci_cramersv
Usage
ci_cramersv( x, probs = c(0.025, 0.975), type = c("chi-squared", "bootstrap"), boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, test_adjustment = TRUE, ... )
Arguments
x
The result of [stats:chisq.test]stats::chisq.test(), a matrix/table of counts, or a data.frame with exactly two columns representing the two variables.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
type
Type of CI. One of "chi-squared" (default) or "bootstrap".
boot_type
Type of bootstrap CI. Only used for type = "bootstrap".
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
test_adjustment
Adjustment to allow for test of association, see Details. The default is TRUE.
...
Further arguments passed to [boot:boot]boot::boot().
Details
A positive lower (1 - ) 100%-confidence limit for the NCP goes hand-in-hand with a significant association test at level . In order to allow such test approach also with Cramer's V, if the lower bound for the NCP is 0, we round down to 0 the lower bound for Cramer's V as well. Without this slightly conservative adjustment, the lower limit for V would always be positive since the CI for V is found by (CI for NCP + df)/(n (k - 1)), where k is the smaller number of levels in the two variables (see Smithson, p.40). Use test_adjustment = FALSE to switch off this behaviour. Note that this is also a reason to bootstrap V via NCP instead of directly bootstrapping V. Further note that no continuity correction is applied for 2x2 tables, and that large chi-squared test statistics might provide unreliable results with method "chi-squared", see [stats:Chisquare]stats::pchisq().
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
# Example from Smithson, M., page 41 test_scores <- as.table( rbind( Private = c(6, 14, 17, 9), Public = c(30, 32, 17, 3) ) ) suppressWarnings(X2 <- stats::chisq.test(test_scores)) ci_cramersv(X2)
See also
[=cramersv]cramersv(), [=ci_chisq_ncp]ci_chisq_ncp()
References
Smithson, M. (2003). Confidence intervals. Series: Quantitative Applications in the Social Sciences. New York, NY: Sage Publications.
ci_f_ncp
CI for the Non-Centrality Parameter of the F Distribution
CRAN · 1.0.2 · confintr/man/ci_f_ncp.Rd · 2026-05-07

Based on the inversion principle, parametric CIs for the non-centrality parameter (NCP) Delta of the F distribution are calculated. To keep the input interface simple, we do not provide bootstrap CIs here.

Aliases
ci_f_ncp
Usage
ci_f_ncp(x, df1 = NULL, df2 = NULL, probs = c(0.025, 0.975))
Arguments
x
The result of [stats:lm]stats::lm() or the F test statistic.
df1
The numerator df. Only used if x is a test statistic.
df2
The denominator df. Only used if x is a test statistic.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
Details
A positive lower (1 - ) 100%-confidence limit for the NCP goes hand-in-hand with a significant F test at level . According to [stats:Fdist]stats::pf(), the results might be unreliable for very large F values.
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
fit <- lm(Sepal.Length ~ ., data = iris) ci_f_ncp(fit) ci_f_ncp(fit, probs = c(0.05, 1))
See also
[=ci_rsquared]ci_rsquared()
References
Smithson, M. (2003). Confidence intervals. Series: Quantitative Applications in the Social Sciences. New York, NY: Sage Publications.
ci_kurtosis
CI for the Kurtosis
CRAN · 1.0.2 · confintr/man/ci_kurtosis.Rd · 2026-05-07

This function calculates bootstrap CIs for the population kurtosis. Note that we use the version of the kurtosis that equals 3 under a normal distribution, i.e., we are not calculating the excess kurtosis. By default, bootstrap type "bca" is used.

Aliases
ci_kurtosis
Usage
ci_kurtosis( x, probs = c(0.025, 0.975), type = "bootstrap", boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
A numeric vector.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
type
Type of CI. Currently not used as the only type is "bootstrap".
boot_type
Type of bootstrap CI. Only used for type = "bootstrap".
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
x <- 1:20 ci_kurtosis(x, R = 999) # Use larger R
See also
[=kurtosis]kurtosis(), [=ci_skewness]ci_skewness()
ci_mad
CI for the MAD
CRAN · 1.0.2 · confintr/man/ci_mad.Rd · 2026-05-07

This function calculates bootstrap CIs (default: "bca") for the population median absolute deviation (MAD), see [stats:mad]stats::mad() for more information.

Aliases
ci_mad
Usage
ci_mad( x, probs = c(0.025, 0.975), constant = 1.4826, type = "bootstrap", boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
A numeric vector.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
constant
Scaling factor applied. The default (1.4826) ensures that the MAD equals the standard deviation for a theoretical normal distribution.
type
Type of CI. Currently not used as the only type is "bootstrap".
boot_type
Type of bootstrap CI c("bca", "perc", "norm", "basic").
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
x <- rnorm(100) ci_mad(x, R = 999) # Use larger R
ci_mean
CI for the Population Mean
CRAN · 1.0.2 · confintr/man/ci_mean.Rd · 2026-05-07

This function calculates CIs for the population mean. By default, Student's t method is used. Alternatively, Wald and bootstrap CIs are available.

Aliases
ci_mean
Usage
ci_mean( x, probs = c(0.025, 0.975), type = c("t", "Wald", "bootstrap"), boot_type = c("stud", "bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
A numeric vector.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
type
Type of CI. One of "t" (default), "Wald", or "bootstrap".
boot_type
Type of bootstrap CI. Only used for type = "bootstrap".
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Details
The default bootstrap type for the mean is "stud" (bootstrap t) as it enjoys the property of being second order accurate and has a stable variance estimator (see Efron, p. 188).
Value
An object of class "cint" containing these components: parameter: Parameter specification. interval: CI for the parameter. estimate: Parameter estimate. probs: Lower and upper probabilities. type: Type of interval. info: Additional description.
Examples
x <- 1:100 ci_mean(x) ci_mean(x, type = "bootstrap", R = 999, seed = 1) # Use larger R
References
Smithson, M. (2003). Confidence intervals. Series: Quantitative Applications in the Social Sciences. New York, NY: Sage Publications. Efron, B. and Tibshirani R. J. (1994). An Introduction to the Bootstrap. Chapman & Hall/CRC.
ci_mean_diff
CI for the Population Mean Difference
CRAN · 1.0.2 · confintr/man/ci_mean_diff.Rd · 2026-05-07

This function calculates CIs for the population value of mean(x) - mean(y). The default is Student's method with Welch's correction for unequal variances, but also bootstrap CIs are available.

Aliases
ci_mean_diff
Usage
ci_mean_diff( x, y, probs = c(0.025, 0.975), var.equal = FALSE, type = c("t", "bootstrap"), boot_type = c("stud", "bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
A numeric vector.
y
A numeric vector.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
var.equal
Should the two variances be treated as being equal? The default is FALSE. If TRUE, the pooled variance is used to estimate the variance of the mean difference. Otherweise, Welch's approach is used. This also applies to the "stud" bootstrap.
type
Type of CI. One of "t" (default), or "bootstrap".
boot_type
Type of bootstrap CI. Only used for type = "bootstrap".
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Details
The default bootstrap type is "stud" (bootstrap t) as it has a stable variance estimator (see Efron, p. 188). Resampling is done within sample. When boot_type = "stud", the standard error is estimated by Welch's method if var.equal = FALSE (the default), and by pooling otherwise. Thus, var.equal not only has an effect for the classic Student approach (type = "t") but also for boot_type = "stud".
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
x <- 10:30 y <- 1:30 ci_mean_diff(x, y) t.test(x, y)$conf.int ci_mean_diff(x, y, type = "bootstrap", R = 999) # Use larger R
References
Efron, B. and Tibshirani R. J. (1994). An Introduction to the Bootstrap. Chapman & Hall/CRC.
ci_median
CI for the Population Median
CRAN · 1.0.2 · confintr/man/ci_median.Rd · 2026-05-07

This function calculates CIs for the population median by calling [=ci_quantile]ci_quantile().

Aliases
ci_median
Usage
ci_median( x, probs = c(0.025, 0.975), type = c("binomial", "bootstrap"), boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
A numeric vector.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
type
Type of CI. One of "binomial" (default), or "bootstrap".
boot_type
Type of bootstrap CI. Only used for type = "bootstrap".
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
ci_median(1:100)
See also
[=ci_quantile]ci_quantile()
ci_median_diff
CI for the Population Median Difference of two Samples
CRAN · 1.0.2 · confintr/man/ci_median_diff.Rd · 2026-05-07

This function calculates bootstrap CIs for the population value of median(x) - median(y) by calling [=ci_quantile_diff]ci_quantile_diff().

Aliases
ci_median_diff
Usage
ci_median_diff( x, y, probs = c(0.025, 0.975), type = "bootstrap", boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
A numeric vector.
y
A numeric vector.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
type
Type of CI. Currently, "bootstrap" is the only option.
boot_type
Type of bootstrap CI. Only used for type = "bootstrap".
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
x <- 10:30 y <- 1:30 ci_median_diff(x, y, R = 999) # Use larger value for R
See also
[=ci_quantile_diff]ci_quantile_diff()
ci_oddsratio
CI for the Odds Ratio
CRAN · 1.0.2 · confintr/man/ci_oddsratio.Rd · 2026-05-07

This function calculates a CI for the odds ratio in a 2x2 table/matrix or a data frame with two columns. The CI is obtained through [stats:fisher.test]stats::fisher.test(). Bootstrap CIs are not available.

Aliases
ci_oddsratio
Usage
ci_oddsratio(x, probs = c(0.025, 0.975))
Arguments
x
A 2x2 matrix/table of counts, or a data.frame with exactly two columns representing the two binary variables.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
x <- cbind(c(10, 5), c(4, 4)) ci_oddsratio(x)
See also
[=oddsratio]oddsratio().
ci_proportion
CI for a Population Proportion
CRAN · 1.0.2 · confintr/man/ci_proportion.Rd · 2026-05-07

This function calculates CIs for a population proportion. By default, "Clopper-Pearson" CIs are calculated (via [stats:binom.test]stats::binom.test()). Further possibilities are "Wilson" (without continuity correction), "Agresti-Coull" (using normal quantile instead of +2 correction), and "bootstrap" (by default "bca").

Aliases
ci_proportion
Usage
ci_proportion( x, n = NULL, probs = c(0.025, 0.975), type = c("Clopper-Pearson", "Agresti-Coull", "Wilson", "bootstrap"), boot_type = c("bca", "perc", "stud", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
A numeric vector with one value (0/1) per observation, or the number of successes.
n
The sample size. Only needed if x is a vector of length 1.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
type
Type of CI. One of "Clopper-Pearson" (the default), "Agresti–Coull", "Wilson", "bootstrap".
boot_type
Type of bootstrap CI. Only used for type = "bootstrap".
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Details
Note that we use the formulas for the Wilson and Agresti-Coull intervals in https://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval. They agree with binom::binom.confint(x, n, method = "ac"/"wilson").
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
x <- rep(0:1, times = c(50, 100)) ci_proportion(x) ci_proportion(x, type = "Wilson") ci_proportion(x, type = "Agresti-Coull")
References
Clopper, C. and Pearson, E. S. (1934). The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika. 26 (4). Wilson, E. B. (1927). Probable inference, the law of succession, and statistical inference. Journal of the American Statistical Association, 22 (158). Agresti, A. and Coull, B. A. (1998). Approximate is better than 'exact' for interval estimation of binomial proportions. The American Statistician, 52 (2).
ci_quantile
CI for a Population Quantile
CRAN · 1.0.2 · confintr/man/ci_quantile.Rd · 2026-05-07

This function calculates CIs for a population quantile. By default, distribution-free CIs based on the binomial distribution are calculated, see Hahn and Meeker. Alternatively, bootstrap CIs are available (default "bca").

Aliases
ci_quantile
Usage
ci_quantile( x, q = 0.5, probs = c(0.025, 0.975), type = c("binomial", "bootstrap"), boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
A numeric vector.
q
A single probability value determining the quantile (0.5 for median).
probs
Lower and upper probabilities, by default c(0.025, 0.975).
type
Type of CI. One of "binomial" (default), or "bootstrap".
boot_type
Type of bootstrap CI. Only used for type = "bootstrap".
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
x <- 1:100 ci_quantile(x, q = 0.25)
See also
[=ci_median]ci_median()
References
Hahn, G. and Meeker, W. (1991). Statistical Intervals. Wiley 1991.
ci_quantile_diff
CI for the Population Quantile Difference of two Samples
CRAN · 1.0.2 · confintr/man/ci_quantile_diff.Rd · 2026-05-07

This function calculates bootstrap CIs for the population value of q-quantile(x) - q-quantile(y), by default using "bca" bootstrap. Resampling is done within sample.

Aliases
ci_quantile_diff
Usage
ci_quantile_diff( x, y, q = 0.5, probs = c(0.025, 0.975), type = "bootstrap", boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
A numeric vector.
y
A numeric vector.
q
A single probability value determining the quantile (0.5 for median).
probs
Lower and upper probabilities, by default c(0.025, 0.975).
type
Type of CI. Currently, "bootstrap" is the only option.
boot_type
Type of bootstrap CI. Only used for type = "bootstrap".
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
x <- 10:30 y <- 1:30 ci_quantile_diff(x, y, R = 999) # Use larger R
See also
[=ci_median_diff]ci_median_diff()
ci_rsquared
CI for the Population R-Squared
CRAN · 1.0.2 · confintr/man/ci_rsquared.Rd · 2026-05-07

This function calculates parametric CIs for the population R^2. It is based on CIs for the non-centrality parameter of the F distribution found by test inversion. Values of are mapped to R^2 by R^2 = / ( + df_1 + df_2 + 1), where the df_j are the degrees of freedom of the F test statistic. A positive lower (1 - ) 100%-confidence limit for the R^2 goes hand-in-hand with a significant F test at level .

Aliases
ci_rsquared
Usage
ci_rsquared(x, df1 = NULL, df2 = NULL, probs = c(0.025, 0.975))
Arguments
x
The result of [stats:lm]stats::lm() or the F test statistic.
df1
The numerator df. Only used if x is a test statistic.
df2
The denominator df. Only used if x is a test statistic.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
Details
According to [stats:Fdist]stats::pf(), the results might be unreliable for very large F values. Note that we do not provide bootstrap CIs here to keep the input interface simple.
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
fit <- lm(Sepal.Length ~ ., data = iris) summary(fit)$r.squared ci_rsquared(fit) ci_rsquared(fit, probs = c(0.05, 1))
See also
[=ci_f_ncp]ci_f_ncp()
References
Smithson, M. (2003). Confidence intervals. Series: Quantitative Applications in the Social Sciences. New York, NY: Sage Publications.
ci_sd
CI for the Population Std
CRAN · 1.0.2 · confintr/man/ci_sd.Rd · 2026-05-07

This function calculates CIs for the population standard deviation. They are derived from CIs for the variance by taking the square-root, see [=ci_var]ci_var().

Aliases
ci_sd
Usage
ci_sd( x, probs = c(0.025, 0.975), type = c("chi-squared", "bootstrap"), boot_type = c("bca", "perc", "stud", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
A numeric vector.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
type
Type of CI. One of "chi-squared" (default) or "bootstrap".
boot_type
Type of bootstrap CI. Only used for type = "bootstrap".
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
x <- 1:100 ci_sd(x) ci_sd(x, type = "bootstrap", R = 999) # Use larger R
See also
[=ci_var]ci_var()
ci_skewness
CI for the Skewness
CRAN · 1.0.2 · confintr/man/ci_skewness.Rd · 2026-05-07

This function calculates bootstrap CIs for the population skewness. By default, bootstrap type "bca" is used.

Aliases
ci_skewness
Usage
ci_skewness( x, probs = c(0.025, 0.975), type = "bootstrap", boot_type = c("bca", "perc", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
A numeric vector.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
type
Type of CI. Currently not used as the only type is "bootstrap".
boot_type
Type of bootstrap CI. Only used for type = "bootstrap".
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
x <- 1:20 ci_skewness(x, R = 999) # Use larger R
See also
[=skewness]skewness(), [=ci_kurtosis]ci_kurtosis()
ci_var
CI for the Population Variance
CRAN · 1.0.2 · confintr/man/ci_var.Rd · 2026-05-07

This function calculates CIs for the population variance.

Aliases
ci_var
Usage
ci_var( x, probs = c(0.025, 0.975), type = c("chi-squared", "bootstrap"), boot_type = c("bca", "perc", "stud", "norm", "basic"), R = 9999L, seed = NULL, ... )
Arguments
x
A numeric vector.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
type
Type of CI. One of "chi-squared" (default) or "bootstrap".
boot_type
Type of bootstrap CI. Only used for type = "bootstrap".
R
The number of bootstrap resamples. Only used for type = "bootstrap".
seed
An integer random seed. Only used for type = "bootstrap".
...
Further arguments passed to [boot:boot]boot::boot().
Details
By default, classic CIs are calculated based on the chi-squared distribution, assuming normal distribution (see Smithson). Bootstrap CIs are also available (default: "bca"). We recommend them for the non-normal case. The stud (bootstrap t) bootstrap uses the standard error of the sample variance given in Wilks.
Value
An object of class "cint", see [=ci_mean]ci_mean() for details.
Examples
x <- 1:100 ci_var(x) ci_var(x, type = "bootstrap", R = 999) # Use larger R
See also
[=ci_sd]ci_sd()
References
Smithson, M. (2003). Confidence intervals. Series: Quantitative Applications in the Social Sciences. New York, NY: Sage Publications. S.S. Wilks (1962), Mathematical Statistics, Wiley & Sons.
cramersv
Cramer's V
CRAN · 1.0.2 · confintr/man/cramersv.Rd · 2026-05-07

This function calculates Cramer's V, a measure of association between two categorical variables.

Aliases
cramersv
Usage
cramersv(x)
Arguments
x
The result of [stats:chisq.test]stats::chisq.test(), a matrix/table of counts, or a data.frame with exactly two columns representing the two variables.
Details
Cramer's V is a scaled version of the chi-squared test statistic ^2 and takes values in [0, 1]. It is calculated as ^2 / (n (k - 1)), where n is the number of observations, and k is the smaller of the number of levels of the two variables. Yates continuity correction is never applied. So in the 2x2 case, if x is the result of [stats:chisq.test]stats::chisq.test(), make sure no continuity correction was applied. Otherwise, results can be inconsistent.
Value
A numeric vector of length one.
Examples
cramersv(mtcars[c("am", "vs")])
See also
[=ci_cramersv]ci_cramersv()
References
Cramer, Harald. 1946. Mathematical Methods of Statistics. Princeton: Princeton University Press, page 282 (Chapter 21. The two-dimensional case).
is.cint
Type Check
CRAN · 1.0.2 · confintr/man/is.cint.Rd · 2026-05-07

Checks if an object inherits class "cint".

Aliases
is.cint
Usage
is.cint(x)
Arguments
x
Any object.
Value
A logical vector of length one.
Examples
is.cint(ci_proportion(5, 20)) is.cint(c(1, 2))
kurtosis
Pearson's Measure of Kurtosis
CRAN · 1.0.2 · confintr/man/kurtosis.Rd · 2026-05-07

Defined as the ratio of the 4th central moment and the squared second central moment. Under perfect normality, the kurtosis equals 3. Put differently, we do not show "excess kurtosis" but rather kurtosis.

Aliases
kurtosis
Usage
kurtosis(z, na.rm = TRUE)
Arguments
z
A numeric vector.
na.rm
Logical flag indicating whether to remove missing values or not. Default is TRUE.
Value
Numeric vector of length 1.
Examples
kurtosis(1:10) kurtosis(rnorm(1000))
See also
[=moment]moment(), [=skewness]skewness()
moment
Sample Moments
CRAN · 1.0.2 · confintr/man/moment.Rd · 2026-05-07

Calculates central or non-central sample moments.

Aliases
moment
Usage
moment(z, p = 1, central = TRUE, na.rm = TRUE)
Arguments
z
A numeric vector.
p
Order of moment.
central
Should central moment be calculated? Default is TRUE.
na.rm
Logical flag indicating whether to remove missing values or not. Default is TRUE.
Value
Numeric vector of length 1.
Examples
moment(1:10, p = 1) moment(1:10, p = 1, central = FALSE) moment(1:10, p = 2) / stats::var(1:10)
See also
[=skewness]skewness(), [=kurtosis]kurtosis()
oddsratio
Odds Ratio
CRAN · 1.0.2 · confintr/man/oddsratio.Rd · 2026-05-07

This function calculates the odds ratio of a 2x2 table/matrix, or a data frame with two columns.

Aliases
oddsratio
Usage
oddsratio(x)
Arguments
x
A 2x2 matrix/table of counts, or a data.frame with exactly two columns representing the two binary variables.
Details
The numerator equals the ratio of the top left entry and the bottom left entry of the 2x2 table, while the denominator equals the ratio of the top right entry and the bottom right entry. The result is usually slightly different from the one of [stats:fisher.test]stats::fisher.test(), which is based on the ML estimate of the odds ratio.
Value
A numeric vector of length one.
Examples
tab <- cbind(c(10, 5), c(4, 4)) oddsratio(tab)
See also
[=ci_oddsratio]ci_oddsratio()
print.cint
Print "cint" Object
CRAN · 1.0.2 · confintr/man/print.cint.Rd · 2026-05-07

Print method for an object of class "cint".

Aliases
print.cint
Usage
printcint(x, digits = getOption("digits"), ...)
Arguments
x
A on object of class "cint".
digits
Number of digits used to format numbers.
...
Further arguments passed from other methods.
Value
Invisibly, the input is returned.
Examples
ci_mean(1:100)
se
Standard errors
CRAN · 1.0.2 · confintr/man/se.Rd · 2026-05-07

Functions to calculate standard errors of different statistics. The availability of a standard error (or statistic proportional to it) allows to apply "stud" (bootstrap t) bootstrap.

Aliases
sese_meanse_mean_diffse_varse_proportion
Usage
se_mean(z, na.rm = TRUE, ...) se_mean_diff(z, y, na.rm = TRUE, var.equal = FALSE, ...) se_var(z, na.rm = TRUE, ...) se_proportion(z, na.rm = TRUE, ...)
Arguments
z
Numeric vector.
na.rm
Should missing values be removed before calculation? Default is TRUE.
...
Further arguments to be passed from other methods.
y
Numeric vector.
var.equal
Should the variances be treated as being equal? Default is FALSE.
Value
A numeric vector of length one.
Examples
se_mean(1:100)
skewness
Sample Skewness
CRAN · 1.0.2 · confintr/man/skewness.Rd · 2026-05-07

Calculates sample skewness. A value of 0 refers to a perfectly symmetric distribution.

Aliases
skewness
Usage
skewness(z, na.rm = TRUE)
Arguments
z
A numeric vector.
na.rm
Logical flag indicating whether to remove missing values or not. Default is TRUE.
Value
Numeric vector of length 1.
Examples
skewness(1:10) skewness(rexp(100))
See also
[=moment]moment(), [=kurtosis]kurtosis()

버전 이력

RepositoryVersionPublishedFirst seenLast seenDocs
CRAN1.0.22026-05-292026-05-30

보안

표시할 OSV 데이터가 없습니다.

문헌 신호

표시할 OpenAlex 데이터가 없습니다.