Statistical models of biased sampling in the form of univariate and
multivariate noncentral hypergeometric distributions,
including Wallenius' noncentral hypergeometric distribution and
Fisher's noncentral hypergeometric distribution
(also called extended hypergeometric distribution).
These are distributions that you can get when taking colored balls
from an urn without replacement, with bias.
The univariate distributions are used when there are two colors of balls.
The multivariate distributions are used when there are more
than two colors of balls.
The (central) univariate and multivariate hypergeometric distribution
can be obtained by setting odds = 1.
Please see vignette("UrnTheory")
for a definition of these distributions and how
to decide which distribution to use in a specific case.
Details
Package:
BiasedUrn
Type:
Package
Version:
1.06
Date:
2013-11-06
License:
GPL
Univariate functions in this package
Wallenius' noncentral hypergeometric
Fisher's noncentral hypergeometric
Probability mass function
dWNCHypergeo
dFNCHypergeo
Cumulative distribution function
pWNCHypergeo
pFNCHypergeo
Quantile function
qWNCHypergeo
qFNCHypergeo
Random variate generation function
rWNCHypergeo
rFNCHypergeo
Calculate mean
meanWNCHypergeo
meanFNCHypergeo
Calculate variance
varWNCHypergeo
varFNCHypergeo
Calculate mode
modeWNCHypergeo
modeFNCHypergeo
Estimate odds from mean
oddsWNCHypergeo
oddsFNCHypergeo
Estimate number from mean and odds
numWNCHypergeo
numFNCHypergeo
Minimum x
minHypergeo
minHypergeo
Maximum x
maxHypergeo
maxHypergeo
Multivariate functions in this package
Wallenius' noncentral hypergeometric
Fisher's noncentral hypergeometric
Probability mass function
dMWNCHypergeo
dMFNCHypergeo
Random variate generation function
rMWNCHypergeo
rMFNCHypergeo
Calculate mean
meanMWNCHypergeo
meanMFNCHypergeo
Calculate variance
varMWNCHypergeo
varMFNCHypergeo
Calculate mean and variance
momentsMWNCHypergeo
momentsMFNCHypergeo
Estimate odds from mean
oddsMWNCHypergeo
oddsMFNCHypergeo
Estimage number from mean and odds
numMWNCHypergeo
numMFNCHypergeo
Minimum x
minMHypergeo
minMHypergeo
Maximum x
maxMHypergeo
maxMHypergeo
Note
The implementation cannot run safely in multiple threads simultaneously
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(BiasedUrn)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/BiasedUrn/BiasedUrn-1-Package.Rd_%03d_medium.png", width=480, height=480)
> ### Name: BiasedUrn-package
> ### Title: Biased Urn Model Distributions
> ### Aliases: BiasedUrn
> ### Keywords: package distribution univar multivariate
>
> ### ** Examples
>
> dWNCHypergeo(12, 25, 32, 20, 2.5)
[1] 0.2183387
>
>
>
>
>
> dev.off()
null device
1
>