Learn R Programming

dupiR (version 1.2)

newCounts: Construct an object of class Counts

Description

Construct an object of class Counts

Usage

newCounts(counts, fractions)

Arguments

counts
An integer vector of positive numbers (counts). Mandatory for object initialization.
fractions
A numeric vector of the corresponding sampling fractions (real numbers in (0,1]). Mandatory for object initialization.

Value

Returns an object of class Counts.

References

Comoglio F, Fracchia L and Rinaldi M (2013) Bayesian inference from count data using discrete uniform priors. PLOS ONE, to appear

See Also

Counts

Examples

Run this code
K <- newCounts( counts = c(20,30), fractions = c(0.075, 0.10))
K
#or (a little bit more informative):
summary(K)

Run the code above in your browser using DataLab