summary.pooledBin | R Documentation |
The functions provide more detail underlying the results from pooledBin/pIR
## S3 method for class 'pooledBin'
summary(object, simple = FALSE, ...)
## S3 method for class 'pIR'
summary(object, simple = FALSE, ...)
## S3 method for class 'summary.pooledBin'
print(x, ...)
## S3 method for class 'summary.pIR'
print(x, ...)
## S3 method for class 'summary.pooledBin'
x[i, j, drop = if (missing(i)) TRUE else length(cols) == 1]
## S3 method for class 'summary.pIR'
x[i, j, drop = if (missing(i)) TRUE else length(cols) == 1]
object |
an object of class |
... |
for additional arguments |
x |
an object of class |
simple |
logical. If TRUE return a data frame with estimates, confidence intervals, total number of individuals, number of positive pools, and scale, by group; if FALSE return a more complete description of the call. |
i,j |
elements to extract or replace. For [ and [[, these are numeric or character or, for [ only, empty or logical. Numeric values are coerced to integer as if by as.integer. |
drop |
logical. If TRUE the result is coerced to the lowest possible dimension. The default is to drop if only one column is left, but not to drop if only one row is left. |
In addition to the estimates and confidence intervals, details including the total number of individuals included, the number of pools, and the number of "positive" pools are given. Printing the result reports these, along with which point and confidence interval methods were used and the call.
The subsetting or extractor functions [.pooledBin
and [.pIR
mimic the same [
behavior as with data frames.
The original pooledBin
or pIR
object with additional list elements
scale |
scale of estimates, with default 1 |
pt.method |
the specified point estimate method to be used |
ci.method |
the specified confidence interval methods to be used |
... |
future arguments |
and attributes class
and call
.
Brad Biggerstaff
See also pooledBin
, pIR
x <- c(1,0,0,0)
m <- c(50,25,10,5)
pb <- pooledBin(x,m)
summary(pb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.